/* 人员登录账号（campaigns.js 最后那一页）还用的老样式，别删。 */
.cp-detail,.cp-form{max-width:830px;border:1px solid #e1e5ed;border-radius:16px;background:white;padding:26px 30px}.cp-detail header,.cp-detail footer{display:flex;gap:20px;align-items:center;color:#63718a;font-size:13px}.cp-detail header{border-bottom:1px solid #e1e5ed;padding-bottom:16px}.cp-type{color:#10628c;background:#e2f7ff;padding:6px 10px;border-radius:6px}.cp-detail section{margin:24px 0}.cp-detail h2{font-size:16px;margin:0 0 8px}.cp-detail p{line-height:1.75;white-space:pre-line;margin:0}.cp-detail footer{border-top:1px solid #e1e5ed;padding-top:16px}.cp-form{display:grid;gap:16px}.cp-form label{display:grid;gap:6px;font-size:14px;font-weight:600}.cp-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.cp-form input,.cp-form select,.cp-form textarea,.cp-filter input,.cp-filter select{font:inherit;color:#202737;border:1px solid #d6dce6;border-radius:8px;background:white;padding:9px 12px;min-width:0}.cp-form textarea{resize:vertical}.cp-form .cp-check{display:flex;align-items:center;gap:9px}.cp-footer,.cp-filter,.cp-pager{display:flex;align-items:center;gap:12px}.cp-filter{padding:18px 0}.cp-filter input{width:265px}.cp-footer [role=alert]{color:#ae3037}.cp-page a.cp-title,.cp-footer a{color:#10638c;text-decoration:none}.cp-title:hover,.cp-footer a:hover{text-decoration:underline}.cp-pager{justify-content:flex-end;margin:14px}.cp-page .tool-btn.primary{background:#1271a0;color:white;border-color:#1271a0}.cp-page .ftable td{max-width:30em;white-space:normal}
.cp-note{margin:0;color:#63718a;font-size:13px;line-height:1.75}

/* ========== 活动与项目（2026-12-03 重做，campaigns.js）==========
   负责人要的：大气、美观、简约、高端、好交互，带一点 SVG 动效。照平台已经定下的规矩：
   颜色只用 logo 的蓝（#30ACD8 / 品牌深蓝 #1274A5）和金（#EA9838），促销类的图标用金、其余用蓝；字一律深色，主次靠字号和粗细，
   标签单位 13px 以上；一行里的字落在同一条线上；控件 40px 高；不用药丸、不套卡片；系统设了「减少动态效果」时全部静止。 */
.cg-page { --cg-line: #eef0f3; --cg-soft: #f6f8fa; --cg-r: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cg-page .workspace { margin: 0; }
.cg-page svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cg-page .ha { stroke: none; }

/* 按钮：40px 高；主按钮品牌蓝渐变，AI 的按钮金色描边带星标 */
.cg-btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 18px; border: 1px solid #dde1e7; border-radius: 11px;
  color: var(--text); background: #fff; font: inherit; font-size: 14px; font-weight: 550; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .2s var(--ease), transform .16s var(--ease); }
.cg-btn svg { width: 17px; height: 17px; stroke-width: 1.9; }
.workpage a.cg-btn { color: var(--text); }
.cg-btn:hover:not(:disabled) { border-color: #c8cdd5; background: #f8f9fb; }
.cg-btn:active:not(:disabled) { transform: translateY(1px); }
.cg-btn.primary, .workpage a.cg-btn.primary { border-color: var(--blue); color: #fff; background: var(--blue); }
.cg-btn.primary:hover:not(:disabled) { border-color: var(--blue-hover); background: var(--blue-hover); }
.cg-btn.ai { border-color: var(--accent-line); color: #7a4504; background: linear-gradient(135deg, #fffaf1, #fff2dc); }
.cg-btn.ai svg { color: var(--accent); }
.cg-btn.ai:hover:not(:disabled) { border-color: #f0c88a; background: linear-gradient(135deg, #fff6e6, #ffe9c7); box-shadow: 0 8px 18px -10px rgb(234 152 56 / 70%); }
.cg-btn.ai.busy svg { animation: cg-twinkle 1s ease-in-out infinite; }
.cg-btn.icon { width: 40px; padding: 0; }
.cg-btn.big { height: 46px; font-size: 15px; border-radius: 12px; }
.cg-btn:disabled { color: #a9adb5; background: #f4f5f7; border-color: #e8eaee; box-shadow: none; cursor: not-allowed; }
@keyframes cg-twinkle { 0%, 100% { transform: scale(.85) rotate(0deg); } 50% { transform: scale(1.15) rotate(20deg); } }
.cg-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: var(--blue); background: none; font: inherit; font-size: 14px; font-weight: 550; text-decoration: none; cursor: pointer; }
.cg-link svg { width: 15px; height: 15px; stroke-width: 2; }
.cg-link:hover { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 3px; }
.cg-link.danger { color: var(--danger); }
.cg-icon { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: 9px; color: var(--text-regular); background: none; cursor: pointer; transition: background .14s, color .14s; }
.cg-icon svg { width: 17px; height: 17px; }
.cg-icon:hover { color: var(--ink); background: #f1f3f6; }

/* 一排四个数（ovKit 的那一套），图标换成活动自己的 */
.cg-strip .so-ico svg { width: 23px; height: 23px; }

/* ---------- 列表 ---------- */
.cg-board { padding: 6px 0 10px; }
.cg-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 24px 14px; }
.cg-search { width: 270px; }
.cg-tools select, .cg-tools .xs-trigger, .cg-ttools select, .cg-ttools .xs-trigger { flex: none; width: 150px; min-width: 0; height: 40px; border-radius: 11px; }
.cg-seg { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; background: #eef0f3; }
.cg-seg button { flex: none; min-width: 58px; height: 32px; padding: 0 12px; white-space: nowrap; border: 0; border-radius: 9px; color: var(--text-regular); background: none; font: inherit; font-size: 14px; cursor: pointer; transition: color .16s, background .2s, box-shadow .2s; }
.cg-seg button:hover { color: var(--ink); }
.cg-seg button.on { color: var(--blue); background: #fff; font-weight: 600; box-shadow: 0 1px 2px rgb(16 24 40 / 8%), 0 4px 12px -6px rgb(16 24 40 / 22%); }
.cg-seg button b { margin-left: 6px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cg-seg.wide { display: flex; }
.cg-seg.wide button { flex: 1; }
.cg-group { padding: 0 12px 6px; }
.cg-group + .cg-group { margin-top: 4px; }
.cg-group-head { margin: 0; padding: 10px 12px 6px; }
.cg-group-head button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; color: var(--ink); background: none; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.cg-group-head b { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 13px; font-weight: 650; }
.cg-group-head svg { width: 15px; height: 15px; color: var(--text-regular); transition: transform .2s var(--ease); }
.cg-group.folded .cg-rows { display: none; }
.cg-group:not(.folded) .cg-group-head svg { transform: rotate(90deg); }
.cg-row { position: relative; display: grid; grid-template-columns: minmax(190px, 1.9fr) 96px minmax(56px, .6fr) 150px 160px minmax(170px, 1.1fr) 44px 18px;
  align-items: center; gap: 18px; min-height: 72px; padding: 10px 14px; border-radius: 14px; color: var(--text); text-decoration: none; transition: background .16s var(--ease), box-shadow .2s var(--ease); }
.cg-row + .cg-row::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: var(--cg-line); }
.cg-row:hover { background: #f7f9fb; }
.cg-row:hover::before, .cg-row:hover + .cg-row::before { opacity: 0; }
.cg-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.cg-c-name { min-width: 0; display: flex; align-items: center; gap: 8px; }
.cg-c-name b { overflow: hidden; color: var(--ink); font-size: 15.5px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.cg-ex { flex: none; color: var(--accent-deep); font-size: 13px; font-style: normal; }
.cg-c-type, .cg-c-brand { overflow: hidden; color: var(--text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.cg-c-range { overflow: hidden; color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.cg-c-when { min-width: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.cg-c-when em { font-style: normal; font-weight: 550; color: var(--text); }
.cg-c-when em.ph-live { color: var(--blue); }
.cg-tbar { flex: none; width: 60px; height: 6px; }
.cg-tbar .t { fill: #e9edf2; stroke: none; }
.cg-tbar .v { fill: var(--brand); stroke: none; }
.cg-tbar.ended .v { fill: #b9c3cf; }
.cg-c-prog { min-width: 0; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.cg-pipe { flex: none; width: 72px; height: 8px; display: flex; gap: 2px; overflow: hidden; border-radius: 4px; background: #eef1f4; }
.cg-pipe i { min-width: 3px; }
.cg-pipe .j { background: #1274a5; }
.cg-pipe .i { background: #30acd8; }
.cg-pipe .p { background: #9fdcf2; }
.cg-pipe .w { background: #dfe5ec; }
.cg-pipe .x { background: repeating-linear-gradient(135deg, #cfd5dd 0 2px, transparent 2px 4px); }
.cg-pipe-n { color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.cg-pipe-n b { margin-left: 2px; color: var(--ink); font-size: 16px; font-weight: 680; }
.cg-pipe-n small { margin-left: 3px; color: var(--text-regular); font-size: 13px; }
.cg-pipe-n.none { color: var(--text-regular); }
.cg-c-files { display: inline-flex; align-items: center; gap: 3px; color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.cg-c-files svg { width: 16px; height: 16px; color: var(--text-regular); }
.cg-go { color: #b3b9c3; transition: color .16s, transform .2s var(--ease); }
.cg-go svg { width: 18px; height: 18px; stroke-width: 2; }
.cg-row:hover .cg-go { color: var(--blue); transform: translateX(2px); }

/* 空着的时候 */
.cg-empty { display: grid; justify-items: center; gap: 10px; padding: 56px 24px 64px; text-align: center; }
.cg-empty h3 { margin: 4px 0 0; color: var(--ink); font-size: 18px; font-weight: 650; }
.cg-empty p { max-width: 440px; margin: 0; color: var(--text-regular); font-size: 14.5px; line-height: 1.7; }
.cg-empty .cg-btn { margin-top: 8px; }
.cg-empty.small { padding: 36px 24px; }
.cg-empty.small > svg { width: 28px; height: 28px; color: #b5bcc6; }
.cg-empty-ops { display: flex; gap: 12px; margin-top: 6px; }
.cg-empty-art { width: 170px; height: auto; }
.cg-empty-art .a { fill: #eef5f9; stroke: none; }
.cg-empty-art .b { fill: #e1f1f8; stroke: none; }
.cg-empty-art .c { fill: #fff; stroke: #cfe7f2; stroke-width: 1.5; }
.cg-empty-art .d { stroke: #b9dcec; stroke-width: 5; }
.cg-empty-art .e { stroke: #8fa3b4; stroke-width: 2.2; }
.cg-empty-art .f { fill: var(--accent); stroke: none; }
.cg-flag { transform-box: fill-box; transform-origin: 0 100%; animation: cg-flag 3.2s ease-in-out infinite; }
@keyframes cg-flag { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-5deg); } }

/* ---------- 详情 ---------- */
.cg-crumbs { margin: 0 0 -4px; gap: 8px; color: var(--text-regular); font-size: 13.5px; }
.cg-crumbs a { display: inline-flex; align-items: center; gap: 2px; color: var(--text-regular); text-decoration: none; }
.cg-crumbs a:hover { color: var(--blue); }
.cg-crumbs svg { width: 15px; height: 15px; }
.cg-id { padding: 26px 30px 22px; }
.cg-id-top { display: flex; align-items: flex-start; gap: 20px; }
/* 有效期的小日历（详情页头上、编辑页的预览）：上面一条品牌蓝写月份，中间大号的日子，底下写截止还是开始 */
.cg-cal { flex: none; width: 78px; height: 86px; display: grid; grid-template-rows: 26px 1fr auto; overflow: hidden; border-radius: 16px; background: #fff; text-align: center;
  box-shadow: 0 0 0 1px #dfeef5, 0 12px 26px -16px rgb(18 116 165 / 60%); }
.cg-cal em { display: grid; place-items: center; color: #fff; font-size: 13px; font-style: normal; font-weight: 650; letter-spacing: .06em; background: linear-gradient(135deg, #3bb6e4, #1274a5); }
.cg-cal b { align-self: center; color: var(--ink); font-size: 32px; font-weight: 720; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cg-cal span { padding-bottom: 9px; color: var(--text); font-size: 12.5px; }
.cg-cal.long b { font-size: 22px; letter-spacing: .04em; }
.cg-cal.sm { width: 60px; height: 66px; border-radius: 13px; grid-template-rows: 21px 1fr auto; }
.cg-cal.sm em { font-size: 11.5px; }
.cg-cal.sm b { font-size: 24px; }
.cg-cal.sm.long b { font-size: 17px; }
.cg-cal.sm span { padding-bottom: 6px; font-size: 11.5px; }
.cg-id-text { min-width: 0; flex: 1; padding-top: 2px; }
.cg-id-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cg-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid #e3e7ec; border-radius: 8px; color: var(--text); background: #fbfcfd; font-size: 13.5px; }
.cg-phase { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 9px; border-radius: 8px; color: var(--text); background: #f1f3f6; font-size: 13.5px; font-weight: 600; }
.cg-phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #aab3bf; }
.cg-phase.ph-live { color: var(--blue); background: var(--blue-soft); }
.cg-phase.ph-live::before { background: var(--brand); box-shadow: 0 0 0 0 rgb(48 172 216 / 50%); animation: cg-pulse 2s ease-out infinite; }
.cg-phase.ph-upcoming { color: #8a4b06; background: var(--accent-soft); }
.cg-phase.ph-upcoming::before { background: var(--accent); }
@keyframes cg-pulse { 0% { box-shadow: 0 0 0 0 rgb(48 172 216 / 55%); } 70%, 100% { box-shadow: 0 0 0 7px rgb(48 172 216 / 0%); } }
.cg-id h1 { margin: 10px 0 0; color: var(--ink); font-size: 26px; font-weight: 680; line-height: 1.3; letter-spacing: .01em; }
.cg-id-sum { margin: 8px 0 0; color: var(--text); font-size: 15px; line-height: 1.7; }
.cg-id-ops { flex: none; display: flex; align-items: center; gap: 10px; }
.cg-more { position: relative; }
.cg-menu { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; min-width: 210px; padding: 6px; border: 1px solid #e6e8ec; border-radius: 13px; background: #fff; box-shadow: var(--shadow-md); animation: cg-in .16s var(--ease); }
.cg-menu button { width: 100%; height: 38px; display: flex; align-items: center; padding: 0 12px; border: 0; border-radius: 9px; color: var(--text); background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.cg-menu button:hover { background: #f4f6f8; }
.cg-menu button.danger { color: var(--danger); }
@keyframes cg-in { from { opacity: 0; transform: translateY(-4px); } }
.cg-id-time { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--cg-line); }
.cg-d { flex: none; color: var(--text); font-size: 14px; font-variant-numeric: tabular-nums; }
.cg-left { flex: none; min-width: 92px; color: var(--text); font-size: 14.5px; font-weight: 650; text-align: right; }
.cg-left.ph-live { color: var(--blue); }
.cg-tl { flex: 1; min-width: 80px; }
.cg-tl-track { position: relative; height: 8px; border-radius: 4px; background: #edf1f5; }
.cg-tl-fill { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #8fdcf6 0%, #30acd8 55%, #1274a5 100%);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.cg-tl.go .cg-tl-fill { transform: scaleX(var(--k)); }
.cg-tl.ended .cg-tl-fill { background: #c3ccd6; }
.cg-tl-now { position: absolute; top: 50%; left: calc(var(--k) * 100%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 3px solid #fff; border-radius: 50%; background: #1274a5;
  box-shadow: 0 2px 8px rgb(18 116 165 / 45%); opacity: 0; transition: opacity .3s .9s; }
.cg-tl.go .cg-tl-now { opacity: 1; animation: cg-pulse 2.4s 1.2s ease-out infinite; }
.cg-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 0; }
.cg-num { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; align-content: start; align-items: baseline; column-gap: 6px; padding: 18px 26px;
  border: 0; color: var(--text); background: none; font: inherit; text-align: left; cursor: pointer; transition: background .16s; }
.cg-num + .cg-num { box-shadow: inset 1px 0 0 var(--cg-line); }
.cg-num:hover { background: #f8fafc; }
.cg-num > span { grid-column: 1 / -1; color: var(--text); font-size: 14.5px; }
.cg-num b { color: var(--ink); font-size: 30px; font-weight: 680; line-height: 40px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cg-num em { color: var(--text); font-size: 14.5px; font-style: normal; }
.cg-num small { grid-column: 1 / -1; color: var(--text-regular); font-size: 13px; }
.cg-tabs { position: relative; display: flex; gap: 6px; margin: 2px 0 -4px; border-bottom: 1px solid #e7eaee; }
.cg-tabs button { position: relative; height: 46px; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; border: 0; color: var(--text-regular); background: none; font: inherit; font-size: 15px; cursor: pointer; transition: color .16s; }
.cg-tabs button:hover { color: var(--ink); }
.cg-tabs button.on { color: var(--ink); font-weight: 650; }
.cg-tabs button b { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 6px; color: var(--text); background: #eef1f4; font-size: 12.5px; font-weight: 650; }
.cg-tabs button.on b { color: var(--blue); background: var(--blue-soft); }
.cg-tab-ink { position: absolute; bottom: -1px; left: 0; height: 2.5px; border-radius: 2px; background: linear-gradient(90deg, #30acd8, #1274a5); }
.cg-tab-ink.ready { transition: transform .32s cubic-bezier(.3, .8, .25, 1), width .32s cubic-bezier(.3, .8, .25, 1); }
.cg-panel { animation: cg-fade .26s var(--ease); }
@keyframes cg-fade { from { opacity: 0; transform: translateY(4px); } }
.cg-loading { height: 160px; border-radius: var(--cg-r); background: linear-gradient(90deg, #f3f5f7 0%, #fafbfc 50%, #f3f5f7 100%) 0 0 / 200% 100%; animation: cg-shimmer 1.2s linear infinite; }
@keyframes cg-shimmer { to { background-position: -200% 0; } }
.cg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.cg-card { padding: 22px 26px 24px; }
.cg-card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cg-card h2 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); font-size: 17px; font-weight: 650; }
.cg-prose { margin: 0; color: var(--text); font-size: 15px; line-height: 1.8; white-space: pre-line; }
.cg-none { margin: 0; color: var(--text-faint); font-size: 14.5px; }
.cg-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: cg; }
.cg-list li { position: relative; padding-left: 20px; color: var(--text); font-size: 15px; line-height: 1.7; }
.cg-list li::before { content: ""; position: absolute; top: .72em; left: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.cg-list.num li { padding-left: 34px; counter-increment: cg; }
.cg-list.num li::before { content: counter(cg); top: .12em; left: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 13px; font-weight: 700; }
.cg-conds { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cg-conds li { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 11px; color: var(--text); font-size: 15px; line-height: 1.6; }
.cg-conds li:nth-child(odd) { background: var(--cg-soft); }
.cg-cdot { flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-radius: 50%; background: var(--brand); }
.cg-conds li span { flex: 1; min-width: 0; }
.cg-conds li em { flex: none; height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid var(--accent-line); border-radius: 7px; color: #8a4b06; background: var(--accent-soft); font-size: 13px; font-style: normal; }
.cg-conds li.k-note .cg-cdot { background: var(--accent); }
.cg-hint { margin: 2px 0 0; color: var(--text); font-size: 14.5px; }

/* ---------- 参与客户 ---------- */
.cg-funnel { display: flex; align-items: stretch; gap: 8px; margin-bottom: 14px; }
.cg-stage { position: relative; flex: 1; min-width: 0; display: grid; gap: 2px; padding: 14px 16px 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s, box-shadow .2s, transform .16s; }
.cg-stage span { font-size: 14px; }
.cg-stage b { color: var(--ink); font-size: 26px; font-weight: 680; line-height: 34px; font-variant-numeric: tabular-nums; }
.cg-stage i { position: absolute; left: 16px; right: 16px; bottom: 10px; height: 4px; border-radius: 2px; background: #eef1f4; }
.cg-stage i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 2px; background: linear-gradient(90deg, #30acd8, #1274a5); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.cg-stage.off i::after { background: repeating-linear-gradient(135deg, #c4cbd4 0 3px, #e3e7ec 3px 6px); }
.cg-stage:hover { border-color: #cfe7f2; box-shadow: 0 8px 20px -14px rgb(18 116 165 / 55%); }
.cg-stage.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(48 172 216 / 14%); }
.cg-stage.on span { color: var(--blue); font-weight: 600; }
.cg-arrow { flex: none; align-self: center; color: #c2c8d1; }
.cg-arrow svg { width: 16px; height: 16px; stroke-width: 2; }
.cg-gap { flex: none; width: 6px; }
.cg-ttools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.cg-ttools select, .cg-ttools .xs-trigger { min-width: 140px; height: 40px; }
.cg-spacer { flex: 1; }
.cg-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; cursor: pointer; user-select: none; }
.cg-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.cg-table { overflow: hidden; border: 1px solid var(--border); border-radius: var(--cg-r); background: #fff; }
.cg-tr { display: grid; grid-template-columns: minmax(180px, 2.2fr) minmax(70px, .7fr) minmax(70px, .7fr) minmax(110px, 1fr) 150px minmax(140px, 1.8fr) 70px; align-items: center; gap: 14px;
  min-height: 60px; padding: 0 20px; border-top: 1px solid var(--cg-line); font-size: 14.5px; }
.cg-tr.head { min-height: 46px; border-top: 0; color: var(--text); background: #fafbfc; font-size: 13.5px; font-weight: 600; }
.cg-tr.head span { display: inline-flex; align-items: center; gap: 4px; }
.cg-tr:not(.head):hover { background: #fafcfd; }
.cg-tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-t-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cg-t-name a:hover { color: var(--blue); }
.cg-t-when { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.cg-verdict { display: inline-flex; align-items: center; gap: 5px; color: var(--text); cursor: default; }
.cg-verdict svg { width: 15px; height: 15px; stroke-width: 2.2; color: var(--blue); }
.cg-verdict.v-ok { color: var(--blue); font-weight: 600; }
.cg-verdict.v-near { color: #8a4b06; font-weight: 600; }
.cg-verdict.v-check, .cg-verdict.v-no, .cg-verdict.v-out { color: var(--text-regular); }
.cg-verdict.v-check { text-decoration: underline dotted #b9c1cc; text-underline-offset: 4px; }
.cg-t-stage { height: 36px; display: inline-flex; align-items: center; gap: 9px; padding: 0 10px 0 8px; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: none; font: inherit; font-size: 14.5px; cursor: pointer; transition: border-color .16s, background .16s; }
.cg-t-stage:hover, .cg-t-stage:focus-visible { border-color: #dbe2ea; background: #fff; }
.cg-caret { width: 14px; height: 14px; color: var(--text-regular); opacity: 0; transition: opacity .14s; }
.cg-tr:hover .cg-caret, .cg-t-stage:focus-visible .cg-caret { opacity: 1; }
.cg-steps { display: inline-flex; gap: 3px; }
.cg-steps i { width: 9px; height: 6px; border-radius: 2px; background: #e2e7ed; transition: background .3s; }
.cg-steps i.on { background: linear-gradient(90deg, #30acd8, #1274a5); }
.cg-steps.no i { background: repeating-linear-gradient(135deg, #c4cbd4 0 2px, #eef1f4 2px 4px); }
.cg-note { color: var(--text); }
.cg-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 4px 0; color: var(--text); font-size: 14px; }
.cg-pager .cd-btn { width: 34px; padding: 0; justify-content: center; }
.cg-pager b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cg-fc { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cg-fc li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.6; }
.cg-fc li b { flex: none; min-width: 44px; font-weight: 650; }
.cg-fc li.y b { color: var(--blue); }
.cg-fc li.n b { color: #8a4b06; }
.cg-fc li.u b { color: var(--text-regular); }

/* 改进度的小浮窗 */
.cg-pop { position: fixed; z-index: 90; width: 340px; padding: 14px 16px 16px; border: 1px solid #e3e7ec; border-radius: 16px; background: #fff; box-shadow: 0 18px 42px -18px rgb(20 21 28 / 35%);
  opacity: 0; transform: translateY(4px); transition: opacity .16s var(--ease), transform .18s var(--ease); }
.cg-pop.on { opacity: 1; transform: none; }
.cg-pop svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cg-pop header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cg-pop header b { flex: 1; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.cg-pop-stages { display: grid; gap: 4px; }
.cg-pop-stages button { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid transparent; border-radius: 11px; color: var(--text); background: #f7f8fa; font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; transition: background .14s, border-color .14s; }
.cg-pop-stages button:hover { background: #f0f3f6; }
.cg-pop-stages button.on { border-color: var(--brand); color: var(--blue); background: var(--blue-tint); font-weight: 600; }
.cg-pop-stages button.off span { margin-left: 50px; }
.cg-pop-note { display: grid; gap: 6px; margin-top: 12px; color: var(--text); font-size: 13.5px; }
.cg-pop-note textarea { padding: 9px 11px; border: 1px solid #dfe3e8; border-radius: 11px; color: var(--text); font: inherit; font-size: 14px; resize: vertical; }
.cg-pop-note textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(18 116 165 / 12%); }
.cg-pop-will { min-height: 20px; margin: 8px 0 0; color: var(--blue); font-size: 13.5px; }
.cg-pop-ops { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cg-pop-ops span { flex: 1; }
.cg-pop-log h4 { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid var(--cg-line); color: var(--ink); font-size: 13.5px; font-weight: 650; }
.cg-pop-log ol { display: grid; gap: 7px; max-height: 160px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.cg-pop-log li { display: grid; grid-template-columns: 82px 1fr; gap: 2px 8px; color: var(--text); font-size: 13px; line-height: 1.5; }
.cg-pop-log time { font-variant-numeric: tabular-nums; }
.cg-pop-log em { grid-column: 2; font-style: normal; color: var(--text-regular); }

/* 右边滑出的抽屉：添加客户、AI 帮选 */
.cg-shade { position: fixed; inset: 0; z-index: 70; background: rgb(15 23 32 / 26%); opacity: 0; transition: opacity .24s var(--ease); }
.cg-shade.on { opacity: 1; }
.cg-drawer { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(680px, 100vw); display: flex; flex-direction: column; background: #fff; box-shadow: -24px 0 60px -30px rgb(20 21 28 / 45%);
  transform: translateX(104%); transition: transform .3s cubic-bezier(.3, .8, .25, 1); outline: 0; }
.cg-drawer.on { transform: none; }
.cg-drawer svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cg-drawer > header { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 14px; }
.cg-drawer > header div { flex: 1; }
.cg-drawer h3 { margin: 0; color: var(--ink); font-size: 19px; font-weight: 680; }
.cg-drawer > header p { margin: 6px 0 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.cg-dbody { flex: 1; overflow: auto; padding: 4px 24px 16px; }
.cg-drawer > footer { display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--cg-line); }
.cg-drawer > footer:empty { display: none; }
.cg-picked { flex: 1; color: var(--text); font-size: 14.5px; }
.cg-picked b { color: var(--blue); font-size: 17px; font-variant-numeric: tabular-nums; }
.cg-csearch { margin: 12px 0 4px; }
.cg-csearch .cg-search { width: 100%; }
.cg-cnote { margin: 8px 0 4px; color: var(--text-regular); font-size: 13.5px; }
.cg-cands { display: grid; margin-top: 6px; }
.cg-cand { display: grid; grid-template-columns: 22px minmax(0, 1fr) 64px 56px 96px 60px; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 12px; color: var(--text); font-size: 14.5px; cursor: pointer; transition: background .14s; }
.cg-cand + .cg-cand { box-shadow: inset 0 1px 0 var(--cg-line); }
.cg-cand:hover { background: #f7f9fb; }
.cg-cand input { position: absolute; opacity: 0; pointer-events: none; }
.cg-box { width: 20px; height: 20px; display: grid; place-items: center; border: 1.5px solid #c9cfd8; border-radius: 6px; color: transparent; background: #fff; transition: all .14s; }
.cg-box svg { width: 14px; height: 14px; stroke-width: 2.6; }
.cg-cand input:checked + .cg-box { border-color: var(--blue); color: #fff; background: var(--blue); }
.cg-cand input:focus-visible + .cg-box { box-shadow: 0 0 0 3px rgb(48 172 216 / 25%); }
.cg-cand.in { cursor: default; opacity: .62; }
.cg-cand-name { overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cg-cand-region, .cg-cand-owner { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cg-inlist { color: var(--text-regular); font-size: 13px; font-style: normal; text-align: right; white-space: nowrap; }
.cg-cand.ai { grid-template-columns: 22px minmax(150px, 1fr) minmax(0, 1.3fr) 60px; }
.cg-cand-why { color: var(--text); font-size: 14px; line-height: 1.5; }
.cg-fit { margin-top: 10px; border: 1px solid var(--border); border-radius: 14px; }
.cg-fit summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.cg-fit summary::-webkit-details-marker { display: none; }
.cg-fit summary b { color: var(--ink); font-size: 15px; }
.cg-fit summary span { color: var(--text); font-size: 14px; }
.cg-fit summary::before { content: ""; width: 9px; height: 9px; border-radius: 3px; }
.cg-fit.f-a summary::before { background: var(--blue); }
.cg-fit.f-b summary::before { background: var(--accent); }
.cg-fit.f-c summary::before { background: #c3cad3; }
.cg-fit[open] summary { border-bottom: 1px solid var(--cg-line); }
.cg-fit .cg-cand { margin: 0 4px; }
.cg-aisum { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); font-size: 14px; }
.cg-scan { display: grid; place-items: center; padding: 26px 0 12px; }
.cg-scan svg { width: 150px; height: auto; overflow: visible; }
.cg-scan .s0 { fill: #f2f9fc; stroke: #cde8f3; stroke-width: 1.5; }
.cg-scan .s1 { stroke: #bfe2f0; stroke-width: 5; }
.cg-scan .s2 { fill: rgb(48 172 216 / 22%); stroke: none; animation: cg-scan 2.2s ease-in-out infinite; }
@keyframes cg-scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(52px); opacity: 0; } }
.cg-aiplan { display: grid; gap: 8px; padding: 0 6px; color: var(--text); font-size: 15px; line-height: 1.75; }
.cg-aiplan p { margin: 0; }
.cg-aiplan b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cg-aiplan .bad { color: var(--danger); }
.cg-aiops { display: flex; justify-content: center; margin-top: 22px; }
.cg-airun { display: grid; justify-items: center; gap: 12px; padding: 4px 0 10px; color: var(--text); font-size: 15px; }
.cg-airun p { margin: 0; }
.cg-aibar { width: min(360px, 100%); height: 8px; overflow: hidden; border-radius: 4px; background: #eef1f4; }
.cg-aibar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #f2a84e, #30acd8, #1274a5); background-size: 200% 100%; animation: cg-flow 1.6s linear infinite; transition: width .5s var(--ease); }
@keyframes cg-flow { to { background-position: -200% 0; } }
.cg-aicount { display: flex; gap: 26px; margin: 4px 0 0; padding: 0; list-style: none; }
.cg-aicount li { display: grid; justify-items: center; color: var(--text); font-size: 14px; }
.cg-aicount b { color: var(--ink); font-size: 24px; font-weight: 680; font-variant-numeric: tabular-nums; }

/* ---------- 资料 ---------- */
.cg-drop { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 1.5px dashed #c8dfea; border-radius: var(--cg-r); color: var(--text); background: linear-gradient(135deg, #f7fcfe, #fbfdfe); cursor: pointer; transition: border-color .16s, background .2s, box-shadow .2s; }
.cg-drop > svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 11px; color: var(--blue); background: #fff; box-shadow: 0 4px 12px -6px rgb(18 116 165 / 40%); box-sizing: content-box; }
.cg-drop b { display: block; color: var(--ink); font-size: 15px; font-weight: 620; }
.cg-drop span { display: block; margin-top: 3px; color: var(--text); font-size: 13.5px; }
.cg-drop:hover, .cg-drop:focus-visible { border-color: var(--brand); background: #f2fafd; outline: 0; }
.cg-drop.over { border-color: var(--brand); background: #eaf7fc; box-shadow: 0 0 0 4px rgb(48 172 216 / 14%); }
.cg-drop.over > svg { animation: cg-bob .8s var(--ease) infinite; }
.cg-drop.slim { padding: 16px 18px; }
.cg-uploads { display: grid; gap: 6px; margin-top: 10px; }
.cg-uploads:empty { display: none; }
.cg-up { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--cg-soft); font-size: 14px; }
.cg-up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.cg-up-bar { height: 6px; overflow: hidden; border-radius: 3px; background: #e6ebf0; }
.cg-up-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--brand); transition: width .2s; }
.cg-up.done .cg-up-bar i { width: 100% !important; background: var(--blue); }
.cg-up.bad { color: var(--danger); }
.cg-up.bad .cg-up-state { color: var(--danger); }
.cg-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; margin-top: 16px; }
.cg-fcard { overflow: hidden; border: 1px solid var(--border); border-radius: var(--cg-r); background: #fff; transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .16s; }
.cg-fcard:hover { border-color: #dbe6ee; box-shadow: 0 16px 32px -20px rgb(20 40 60 / 35%); transform: translateY(-2px); }
.cg-fcover { position: relative; width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 0; overflow: hidden; border: 0; border-bottom: 1px solid var(--cg-line); background: #f3f6f9; cursor: zoom-in; }
.cg-fcover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cg-fcard:hover .cg-fcover img { transform: scale(1.035); }
.cg-fplay { position: absolute; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgb(15 23 32 / 45%); backdrop-filter: blur(4px); }
.cg-fplay svg { width: 26px; height: 26px; }
.cg-fbadge { display: grid; justify-items: center; gap: 6px; color: var(--blue); }
.cg-fbadge svg { width: 38px; height: 38px; stroke-width: 1.4; }
.cg-fbadge b { font-size: 13px; letter-spacing: .06em; }
.cg-fbadge.k-ppt, .cg-fbadge.k-image { color: #b86418; }
.cg-fbody { display: grid; gap: 4px; padding: 12px 14px 12px; }
.cg-fname { overflow: hidden; color: var(--ink); font-size: 14.5px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.cg-fmeta { color: var(--text); font-size: 13px; }
.cg-frow { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cg-fstate { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-size: 13px; }
.cg-fstate svg { width: 14px; height: 14px; stroke-width: 2.4; }
.cg-fstate.ok { color: var(--blue); }
.cg-fstate.bad { color: #8a4b06; cursor: help; }
.cg-fops { display: flex; gap: 2px; }
.cg-spin { width: 12px; height: 12px; border: 2px solid #cfe5ef; border-top-color: var(--brand); border-radius: 50%; animation: cg-rot .8s linear infinite; }
@keyframes cg-rot { to { transform: rotate(360deg); } }

/* 看资料：深色全屏，一页一页翻 */
.cg-viewer { position: fixed; inset: 0; z-index: 95; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgb(12 17 24 / 97%); backdrop-filter: blur(6px); color: #fff; opacity: 0; transition: opacity .2s var(--ease); outline: 0; }
.cg-viewer.on { opacity: 1; }
.cg-viewer svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cg-viewer > header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; }
.cg-vtitle { flex: 1; min-width: 0; display: grid; }
.cg-vtitle b { overflow: hidden; font-size: 15.5px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.cg-vtitle span { color: rgb(255 255 255 / 78%); font-size: 13.5px; }
.cg-vbtn { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 10px; color: #fff; background: rgb(255 255 255 / 6%); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.cg-vbtn svg { width: 17px; height: 17px; }
.cg-vbtn:hover { background: rgb(255 255 255 / 14%); }
.cg-vbtn.icon { width: 38px; padding: 0; justify-content: center; }
.cg-vstage { position: relative; display: grid; place-items: center; min-height: 0; padding: 8px 72px; }
.cg-vimg { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 24px 60px -20px rgb(0 0 0 / 60%); animation: cg-fade .25s var(--ease); background: #fff; }
.cg-vvideo { max-width: 100%; max-height: 100%; border-radius: 10px; }
.cg-vnone { display: grid; justify-items: center; gap: 12px; color: rgb(255 255 255 / 85%); font-size: 15px; }
.cg-vnone svg { width: 46px; height: 46px; stroke-width: 1.3; }
.cg-vnav { position: absolute; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; margin-top: -24px; border: 0; border-radius: 50%; color: #fff; background: rgb(255 255 255 / 10%); cursor: pointer; transition: background .16s; }
.cg-vnav:hover { background: rgb(255 255 255 / 22%); }
.cg-vnav svg { width: 24px; height: 24px; stroke-width: 2; }
.cg-vnav.l { left: 16px; }
.cg-vnav.r { right: 16px; }
.cg-vthumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 20px 18px; scrollbar-width: thin; }
.cg-vthumbs button { position: relative; flex: none; width: 104px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: rgb(255 255 255 / 8%); cursor: pointer; opacity: .62; transition: opacity .16s, border-color .16s; }
.cg-vthumbs button:hover { opacity: 1; }
.cg-vthumbs button.on { border-color: var(--brand); opacity: 1; }
.cg-vthumbs img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #fff; }
.cg-vthumbs span { position: absolute; right: 5px; bottom: 4px; padding: 0 5px; border-radius: 5px; background: rgb(0 0 0 / 55%); font-size: 12px; }

/* ---------- 新建、编辑（2026-12-03 第二版）----------
   负责人：「新建活动里的前端再优化下，总感觉不够高端，录入页还不够漂亮。」卡片里一行一项（名称在左、填的在右），行与行之间一条连着的细线；
   输入框是浅灰底、没有框线，点进去变白、亮一圈品牌蓝；选项多的是能打字筛的下拉；活动内容一条一行；右边一直跟着预览和「几家满足」。 */
.cg-ed-head { margin: -2px 0 -2px; }
.cg-ed-head h1 { margin: 0; color: var(--ink); font-size: 26px; font-weight: 680; letter-spacing: .01em; }
.cg-ed-head p { margin: 6px 0 0; color: var(--text); font-size: 14px; }
.cg-ed { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.cg-ed-main { display: grid; gap: 18px; min-width: 0; }
.cg-ecard { padding: 4px 30px 10px; border-radius: 20px; }
.cg-ecard > header { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.cg-ecard > header h2 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); font-size: 18px; font-weight: 680; letter-spacing: .01em; white-space: nowrap; flex: none; }
.cg-ecard > header .cg-btn { margin-left: auto; }
.cg-ehint { color: var(--text); font-size: 13.5px; }
.cg-frow { position: relative; display: grid; grid-template-columns: 158px minmax(0, 1fr); align-items: center; gap: 18px; padding: 15px 0; border-top: 1px solid var(--cg-line); transition: background .4s var(--ease); }
.cg-frow.top { align-items: start; }
.cg-frow.top .cg-fl { padding-top: 11px; }
.cg-fl { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.cg-fc2 { min-width: 0; }
/* AI 填过的那一行：淡淡的金色底，名称后面一个「AI 填的」 */
.cg-frow.ai { margin: 0 -30px; padding-left: 30px; padding-right: 30px; background: linear-gradient(90deg, rgb(255 244 227 / 85%), rgb(255 244 227 / 0) 75%); }
.cg-frow.ai .cg-fl::after { content: "AI 填的"; height: 22px; display: inline-flex; align-items: center; padding: 0 7px; border-radius: 6px; color: #8a4b06; background: #fde9c8; font-size: 12px; font-weight: 600; }
/* 输入框 */
.cg-in { width: 100%; height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; color: var(--ink); background: #f3f5f8; font: inherit; font-size: 15px; box-sizing: border-box;
  transition: background .16s var(--ease), border-color .16s var(--ease), box-shadow .2s var(--ease); }
.cg-in:hover { background: #edf0f4; }
.cg-in:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgb(48 172 216 / 14%); }
.cg-in::placeholder { color: #a2a8b1; }
textarea.cg-in { height: auto; min-height: 44px; padding: 10px 14px; line-height: 1.6; resize: none; overflow: hidden; }
.cg-in.num { width: 132px; font-variant-numeric: tabular-nums; }
.cg-unit { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14.5px; }
.cg-dates { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 14.5px; }
.cg-dates .cg-in { width: 200px; }
.cg-editor .cg-seg { padding: 4px; }
.cg-editor .cg-seg button { height: 36px; padding: 0 16px; font-size: 14.5px; }
.cg-editor .cg-seg.multi button { min-width: 64px; }
/* 能打字的下拉：单选（类型、厂家）和多选（区域、客户类型） */
.cg-combo, .cg-multi { position: relative; }
.cg-combo .cg-in { padding-right: 40px; }
.cg-caret2 { position: absolute; top: 50%; right: 12px; width: 18px; height: 18px; margin-top: -9px; color: #8a919c; pointer-events: none; transition: transform .2s var(--ease), color .16s; }
.cg-combo.open .cg-caret2, .cg-multi.open .cg-caret2 { color: var(--blue); transform: rotate(180deg); }
.cg-multi { min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 40px 6px 8px; border: 1px solid transparent; border-radius: 12px; background: #f3f5f8; box-sizing: border-box; cursor: text;
  transition: background .16s var(--ease), border-color .16s var(--ease), box-shadow .2s var(--ease); }
.cg-multi:hover { background: #edf0f4; }
.cg-multi.open, .cg-multi:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgb(48 172 216 / 14%); }
.cg-multi-in { flex: 1; min-width: 140px; height: 30px; padding: 0 6px; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 15px; }
.cg-multi-in, .cg-multi-in:hover, .cg-multi-in:focus, .cg-multi-in:focus-visible { -webkit-appearance: none; appearance: none; border: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent; }
.cg-multi-in::placeholder { color: #a2a8b1; }
.cg-tag2 { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 4px 0 11px; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 0 0 1px #dde4ec; font-size: 14px; white-space: nowrap; }
.cg-multi.open .cg-tag2, .cg-multi:focus-within .cg-tag2 { background: #eff8fc; box-shadow: 0 0 0 1px #c6e4f1; }
.cg-tag2 button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: #8a919c; background: none; cursor: pointer; }
.cg-tag2 button:hover { color: var(--ink); background: rgb(20 21 28 / 7%); }
.cg-tag2 svg { width: 13px; height: 13px; stroke-width: 2.2; }
.cg-xs { max-width: min(420px, calc(100vw - 16px)); }
.cg-xs svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cg-xs .xs-option > svg { flex: none; width: 16px; height: 16px; color: var(--blue); }
.cg-xs .xs-option.selected { color: var(--blue); font-weight: 600; }
.cg-xs .xs-option.cg-new span { color: var(--blue); font-weight: 600; }
.cg-xs .cg-box.sm { flex: none; width: 18px; height: 18px; border-radius: 5px; }
.cg-xs .cg-box.sm svg { width: 12px; height: 12px; stroke-width: 2.8; }
.cg-xs .xs-option.selected .cg-box { border-color: var(--blue); color: #fff; background: var(--blue); }
.cg-xs-none { padding: 10px 12px; color: var(--text-regular); font-size: 14px; }
/* 一条一行的活动内容：整块浅灰底，一条一行，前面一个点（销售怎么推是编号）；回车加一条、删空了往回退，贴一段进来自动分条 */
/* 活动内容三格：大框，浅底、点进去变白出品牌蓝的圈（和别的格子一样），跟着字数长高 */
.cg-in.cg-area { height: auto; min-height: 128px; padding: 12px 14px; line-height: 1.75; resize: none; overflow: hidden; }
.cg-buys { display: grid; gap: 10px; margin-bottom: 10px; }
.cg-buys:empty { display: none; }
.cg-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cg-buy + .cg-buy { padding-top: 12px; border-top: 1px solid var(--cg-line); }
.cg-buy-a { flex: 1 1 400px; min-width: 0; display: flex; align-items: center; gap: 8px; }
.cg-buy-b { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.cg-buy-a > select + .xs-trigger { flex: 0 0 116px; }
.cg-buy-a > .cg-combo.brand { flex: 1 1 100px; min-width: 92px; }
.cg-buy-a > .cg-combo.kw { flex: 1.4 1 130px; min-width: 110px; }
.cg-buy-b > .cg-in.num { width: 92px; }
.cg-buy-b > select + .xs-trigger { flex: 0 0 82px; }
.cg-buy-b > .cg-icon { flex: none; }
.cg-buy .cg-w { color: var(--text); font-size: 14.5px; white-space: nowrap; }
.cg-buy select { height: 44px; min-width: 0; padding: 0 34px 0 14px; border: 1px solid transparent; border-radius: 12px; color: var(--ink); -webkit-appearance: none; appearance: none; font: inherit; font-size: 15px;
  background: #f3f5f8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386909c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 16px 16px; }
.cg-buy select:focus { outline: 0; border-color: var(--brand); background-color: #fff; box-shadow: 0 0 0 4px rgb(48 172 216 / 14%); }
.cg-buy-a > select { flex: 0 0 116px; }
.cg-buy-b > select { flex: 0 0 82px; }
.cg-buy .xs-trigger { width: 100%; min-width: 0; height: 44px; border-color: transparent; border-radius: 12px; background: #f3f5f8; font-size: 15px; }
.cg-buy .xs-trigger:hover:not(:disabled) { border-color: transparent; background: #edf0f4; }
.cg-buy .xs-trigger.open, .cg-buy .xs-trigger:focus-visible { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgb(48 172 216 / 14%); }
/* 资料：一行一份 */
.cg-mats .cg-drop.slim { padding: 18px 20px; }
.cg-mlist { display: grid; margin-top: 10px; }
.cg-mlist:empty { display: none; }
/* 活动资料：一份一行，封面小图、文件名、类型页数大小和谁哪天存的、AI 读得了吗、看 下载 移出 */
.cg-mrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 66px; padding: 8px 2px; border-top: 1px solid var(--cg-line); }
.cg-mthumb { position: relative; width: 64px; height: 46px; padding: 0; overflow: hidden; border: 1px solid #e1e6ec; border-radius: 8px; background: #f5f7f9; cursor: zoom-in; }
.cg-mthumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cg-mthumb.plain { display: grid; place-items: center; border-color: transparent; background: none; }
.cg-mthumb.plain .cg-mext { width: 54px; }
.cg-mplay { position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgb(20 21 28 / 50%); }
.cg-mplay svg { width: 10px; height: 10px; }
.cg-mtext { min-width: 0; display: grid; gap: 4px; }
.cg-mops { display: inline-flex; gap: 2px; }
.cg-removed { margin-top: 2px; border-top: 1px solid var(--cg-line); }
/* 盖过 workspace.css 里 .workpage details > summary 那条（灰字、箭头靠最右、展开转 180 度） */
.workpage .cg-removed > summary { display: inline-flex; align-items: center; gap: 4px; padding: 12px 2px 6px; color: var(--ink); font-size: 14px; font-weight: 550; cursor: pointer; list-style: none; }
.workpage .cg-removed > summary::-webkit-details-marker { display: none; }
.workpage .cg-removed > summary svg { width: 15px; height: 15px; margin-left: 0; transition: transform .2s var(--ease); }
.workpage .cg-removed[open] > summary svg { transform: rotate(90deg); }
.cg-rrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 18px; min-height: 40px; padding: 0 2px; color: var(--text); font-size: 14px; }
.cg-rrow b { overflow: hidden; color: var(--ink); font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.cg-mrow:first-child { border-top: 0; }
.cg-mext { height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.cg-mext.k-ppt, .cg-mext.k-image, .cg-mext.k-video { color: #9a560f; background: var(--accent-soft); }
.cg-mname { overflow: hidden; color: var(--ink); font-size: 14.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cg-mmeta { overflow: hidden; color: var(--text); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.cg-mmeta em { margin-left: 12px; font-style: normal; }
.cg-fst { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; white-space: nowrap; }
.cg-fst svg { width: 14px; height: 14px; stroke-width: 2.4; }
.cg-fst.ok { color: var(--blue); }
.cg-fst.bad { color: #8a4b06; cursor: help; }
.cg-fst.reading { color: var(--text); }
/* AI 智能分析：一张资料一道光扫过去的玻璃图形，跑的时候三步依次亮 */
.cg-ai { position: relative; display: flex; align-items: center; gap: 16px; margin: 18px 0 4px; padding: 18px 0 12px; border-top: 1px solid var(--cg-line); }
.cg-ai-art { position: relative; flex: none; width: 54px; height: 54px; }
.cg-ai-art .ha { width: 54px; height: 54px; filter: drop-shadow(0 8px 14px rgb(18 116 165 / 26%)); }
.cg-ai.running .ha-scan { animation-duration: 1.3s; }
.cg-ai-text { position: relative; flex: 1; min-width: 0; display: grid; gap: 4px; }
.cg-ai-text b { color: var(--ink); font-size: 16px; font-weight: 700; }
.cg-ai-text > span { color: var(--text); font-size: 14px; line-height: 1.65; }
.cg-ai-text .cg-link { margin-left: 8px; font-size: 14px; }
.cg-ai > .cg-btn { position: relative; flex: none; }
.cg-ai-steps { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
.cg-ai-steps i { display: inline-flex; align-items: center; gap: 6px; color: var(--text-regular); font-style: normal; }
.cg-ai-steps i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d3dae3; }
.cg-ai-steps i.on { color: var(--blue); font-weight: 600; }
.cg-ai-steps i.on::before { background: var(--brand); box-shadow: 0 0 0 0 rgb(48 172 216 / 50%); animation: cg-pulse 1.4s ease-out infinite; }
.cg-ai-steps i.done { color: var(--text); }
.cg-ai-steps i.done::before { background: var(--blue); }
.cg-ai-skip { margin-left: 8px; color: #8a4b06; text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
/* 分析中：进度条、读到哪一步、走了几秒（2026-12-03 晚：「怎么没有反应和进度条？」）；按钮写「分析中…」、星标闪 */
.cg-ai-bar { height: 6px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: #e9eef3; }
.cg-ai-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--blue); transition: width .45s var(--ease); }
.cg-ai-bar.full i { transition-duration: .25s; }
.cg-ai-time { margin-left: 14px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.cg-ai-wait { color: var(--blue); font-weight: 600; }
.cg-ai-err { color: var(--danger); font-weight: 550; }
.cg-ai.bad .cg-ai-text .cg-link { margin-left: 10px; }
.cg-btn.ai.busy { cursor: progress; border-color: #f0c88a; }
.cg-drop.nudge { animation: cg-nudge 1.1s var(--ease) 2; }
@keyframes cg-nudge { 0%, 100% { border-color: #c9dcea; box-shadow: none; } 40% { border-color: var(--brand); box-shadow: 0 0 0 4px rgb(48 172 216 / 18%); } }
.cg-btn.sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; }
.cg-btn.sm svg { width: 15px; height: 15px; }
/* 右边一直跟着：预览、参与客户、保存（2026-12-03 晚第二版：「右边这坨前端丑死了」）。
   两张一样的卡：标题 15px 深色、右边一个数或标签；不放灰字、不放一排 0；保存两个按钮并排、高 42，整栏矮，右下角的助手按钮挡不着。 */
.cg-ed-side { position: sticky; top: 16px; display: grid; gap: 12px; }
.cg-side { padding: 16px 18px 18px; border-radius: 16px; }
.cg-side-h { display: flex; align-items: center; gap: 10px; min-height: 26px; margin-bottom: 10px; }
.cg-side-h h3 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; }
.cg-pv-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-left: auto; }
.cg-pv-tags span { height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 7px; color: var(--ink); background: #eef3f7; font-size: 13px; font-weight: 550; }
.cg-pv-title { display: block; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.cg-pv-sum { margin: 6px 0 0; color: var(--text); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.cg-pv-facts { display: grid; gap: 6px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--cg-line); }
.cg-pv-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cg-pv-facts dt { color: var(--text); }
.cg-pv-facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cg-side-n { margin-left: auto; color: var(--text); font-size: 14px; }
.cg-side-n b { color: var(--ink); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cg-reach-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--text); font-size: 14px; }
.cg-reach-line b { color: var(--blue); font-size: 22px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cg-reach-line .cpc-tip { align-self: center; }
.cg-reach-line .pulse { display: inline-block; animation: cg-pop .4s var(--ease); }
@keyframes cg-pop { 40% { transform: scale(1.1); } }
.cg-reach-more { margin: 4px 0 0; color: var(--text); font-size: 13.5px; line-height: 1.6; }
.cg-reach-more:empty { display: none; }
.cg-side-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cg-side-acts .cg-btn { height: 38px; padding: 0 10px; font-size: 14px; }
.cg-frow .cg-link[data-add-buy] { height: 44px; }
.cg-ed-ops { display: flex; gap: 10px; }
.cg-ed-ops .cg-btn { flex: 1; height: 42px; font-size: 15px; }
.cg-err { margin: -4px 0 0; color: var(--danger); font-size: 14px; line-height: 1.5; text-align: center; }
.cg-err:empty { display: none; }
/* 页底留出右下角助手按钮那一块，表单最下面的东西能滚到它上面去；屏幕矮的，右边这一栏不跟着走 */
.cg-editor { padding-bottom: 100px; }
@media (max-height: 640px) { .cg-ed-side { position: static; } }

/* ---------- 窄屏 ---------- */
@media (max-width: 1439px) {
  .cg-row { grid-template-columns: minmax(160px, 1.7fr) 84px minmax(52px, .6fr) 140px 150px minmax(150px, 1fr) 40px 16px; gap: 14px; }
  .cg-num { padding: 16px 20px; }
  .cg-tr { grid-template-columns: minmax(160px, 2fr) minmax(64px, .7fr) minmax(64px, .7fr) minmax(100px, 1fr) 140px minmax(120px, 1.5fr) 64px; gap: 12px; padding: 0 16px; }
}
@media (max-width: 1320px) {
  .cg-row { grid-template-columns: minmax(160px, 1.7fr) 80px 140px 140px minmax(140px, 1fr) 40px 16px; }
  .cg-c-brand { display: none; }
  .cg-ed { grid-template-columns: minmax(0, 1fr) 290px; }
}
@media (max-width: 1100px) {
  .cg-grid { grid-template-columns: minmax(0, 1fr); }
  .cg-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cg-ed { grid-template-columns: minmax(0, 1fr); }
  .cg-ed-side { position: static; }
  .cg-tr { grid-template-columns: minmax(150px, 2fr) minmax(90px, 1fr) 140px minmax(110px, 1.2fr); }
  .cg-t-region, .cg-t-owner, .cg-t-when { display: none; }
}
@media (max-width: 760px) {
  .cg-page .crm-actions .cg-btn { height: 38px; padding: 0 12px; }
  .cg-search { width: 100%; }
  .cg-tools { padding: 14px 14px 10px; }
  .cg-tools .cg-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .cg-tools select, .cg-tools .xs-trigger { width: calc(50% - 6px); }
  .cg-row { grid-template-columns: minmax(0, 1fr) 16px; grid-template-areas: "name go" "when go" "prog go"; gap: 4px 12px; padding: 12px; }
  .cg-c-range { display: none; }
  .cg-c-name { grid-area: name; }
  .cg-c-when { grid-area: when; }
  .cg-c-prog { grid-area: prog; }
  .cg-go { grid-area: go; }
  .cg-c-type, .cg-c-brand, .cg-c-files { display: none; }
  .cg-row + .cg-row::before { left: 12px; }
  .cg-id { padding: 18px; }
  .cg-id-top { flex-wrap: wrap; }
  .cg-id-ops { width: 100%; flex-wrap: wrap; }
  .cg-id h1 { font-size: 21px; }
  .cg-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-funnel { flex-wrap: wrap; }
  .cg-funnel .cg-arrow, .cg-funnel .cg-gap { display: none; }
  .cg-stage { flex: 1 1 30%; }
  .cg-tr { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 14px; }
  .cg-t-cond, .cg-t-note { display: none; }
  .cg-tr.head { display: none; }
  .cg-frow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cg-frow.top .cg-fl { padding-top: 0; }
  .cg-ecard { padding: 4px 18px 8px; }
  .cg-ecard > header { flex-wrap: wrap; row-gap: 2px; padding: 14px 0 12px; }
  .cg-ecard > header .cg-ehint { flex-basis: 100%; }
  .cg-frow.ai { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .cg-ai { margin: 14px 0 4px; flex-wrap: wrap; }
  .cg-buy .cg-w { display: none; }
  .cg-dates .cg-in { width: auto; min-width: 0; flex: 1; }
  .cg-editor .cg-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .cg-editor .cg-seg[data-scope] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; width: 100%; overflow: visible; }
  .cg-editor .cg-seg[data-scope] button { height: auto; min-height: 40px; padding: 5px 10px; line-height: 1.3; }
  .cg-seg-sub { display: block; font-size: 13px; }
  .cg-buy-a { flex-wrap: wrap; }
  .cg-mrow { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .cg-mrow .cg-fst { grid-column: 2; grid-row: 2; justify-self: start; margin-top: -6px; }
  .cg-mops { grid-column: 3; grid-row: 1 / span 2; }
  .cg-mmeta { white-space: normal; }
  .cg-mmeta em { display: block; margin: 2px 0 0; }
  .cg-rrow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 6px 2px; }
  .cg-rrow span:nth-of-type(1) { display: none; }
  .cg-vstage { padding: 8px 12px; }
  .cg-vnav { display: none; }
  .cg-cand { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
  .cg-cand-region, .cg-cand-owner { display: none; }
  .cg-cand.ai { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .cg-cand.ai .cg-cand-why { grid-column: 2 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .cg-page *, .cg-pop, .cg-drawer, .cg-viewer, .cg-drawer *, .cg-viewer * { animation: none !important; transition: none !important; }
  .cg-tl .cg-tl-fill { transform: scaleX(var(--k)); }
  .cg-tl .cg-tl-now { opacity: 1; }
}

/* 对话里助手发来的活动资料卡片（chat.js 的 materialCard）：别的格式用品牌蓝 */
.file-card.material { text-decoration: none; }
.file-icon.file-other { background: linear-gradient(160deg, #5fc2e6, #1274a5); box-shadow: 0 6px 14px -8px rgb(18 116 165 / 70%); }

/* 活动列表（2026-12-03 晚，负责人：「你这个前端也太奇怪了吧，跟客户档案那边的对齐一下。」）：筛选区、工具栏、表格、手机卡片都用客户档案那一套
   （cd-filter、cd-toolbar、cd-table、cd-cards），这里只定各栏多宽、状态那一格的字。状态的意思写在字里，不靠颜色。 */
.cg-table col.cw-title { width: 25%; }
.cg-table col.cw-type, .cg-table col.cw-brand { width: 9%; }
.cg-table col.cw-range { width: 16%; }
.cg-table col.cw-state { width: 15%; }
.cg-table col.cw-who { width: 14%; }
.cg-table col.cw-files { width: 8%; }
.cg-table col.cw-go { width: 44px; }
.workpage .ftable.cg-table th.r, .workpage .ftable.cg-table td.r { text-align: right; }
.cg-table td.r b { color: var(--ink); font-weight: 650; }
.cg-table .cg-ex { display: inline-block; margin-top: 4px; height: 22px; padding: 0 7px; border-radius: 6px; color: #8a4b06; background: #fde9c8; font-size: 12px; font-style: normal; font-weight: 600; line-height: 22px; }
.cg-state { color: var(--ink); font-weight: 550; }
.cg-state.ph-live { color: var(--blue); }
.cg-state.ph-ended, .cg-state.ph-archived { color: var(--text); font-weight: 500; }
.cg-lcard { display: block; color: inherit; text-decoration: none; }
.cg-lcard header .cg-state { flex: none; font-size: 13.5px; }
/* 列表外框和客户档案一样：不用活动页那套网格间距（标题到筛选区多出来的 16px） */
.cg-page.cg-index { display: block; }

/* 活动内容卡片标题右边的「语音输入」（全站一套 voice.js）：和「AI 智能分析」并排、一样高 */
.cg-ecard > header .cg-voice { margin-left: auto; }
.cg-ecard > header .cg-voice:not([hidden]) + .cg-btn { margin-left: 0; }
.cg-ecard > header .cg-voice .xv-toggle { height: 36px; border-radius: 10px; }
