/* 业务布局扩展；字体、按钮、表单、弹层和图表继承公共组件。 */
:root{--cps-gap:16px}body{color:var(--text);font-size:var(--ui-font-size)}button,input,select,textarea{font-family:inherit}button,a,input,select,textarea{touch-action:manipulation}.cps-toolbar{padding:20px 24px 14px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}.cps-heading{padding:20px 24px 0;display:flex;align-items:center;gap:12px}.cps-heading h1{margin:0}.cps-heading p{margin:4px 0 0}.cps-heading .cps-spacer{flex:1}.cps-chipbar{display:flex;gap:8px;align-items:center}.cps-table td,.cps-content{overflow:auto;flex:1;padding:8px 12px 20px}.cps-dashboard{padding:24px;display:grid;gap:20px}.cps-two{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}.cps-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cps-panel{border:1px solid var(--line);border-radius:8px;padding:20px;background:white;min-width:0}.cps-panel h2{margin:0 0 16px}.cps-subtabs{padding:12px 24px 0;background:#f8f9fb;display:flex;gap:4px;overflow:auto;border-bottom:1px solid var(--line)}.cps-subtabs .brand-tab{white-space:nowrap;flex-shrink:0;padding:10px 16px}.cps-subtabs .brand-tab-active{border-bottom-color:white}.cps-link{color:var(--blue);background:transparent;border:0;cursor:pointer;padding:0}.cps-tag{display:inline-flex;background:#eaf4ff;color:#1682e8;border-radius:3px;padding:3px 8px;font-size:12px}.cps-tag.green{background:#eaf8ef;color:#22945e}.cps-tag.red{background:#fff0ee;color:#d94b43}.cps-tag.orange{background:#fff7e7;color:#bf851c}.cps-muted{color:var(--muted)}.cps-info{padding:12px 16px;background:#f1f7ff;border-radius:8px;color:#516b89;line-height:1.7}.cps-empty{text-align:center;padding:64px 20px;color:var(--muted)}.cps-fields{display:grid;grid-template-columns:128px minmax(0,1fr);gap:16px 12px;margin:0}.cps-fields dt{text-align:right;color:var(--muted)}.cps-fields dd{margin:0;overflow-wrap:anywhere}.cps-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.cps-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-form-row-gap) var(--ui-form-column-gap)}.cps-form .d-field{margin:0}.cps-form .full{grid-column:1/-1}.cps-error{color:#d03050;line-height:1.6;margin:12px 0}.cps-flow{display:flex;flex-direction:column;gap:12px}.cps-flow-row{display:flex;align-items:center;gap:12px;padding:10px 0}.cps-flow-row strong{margin-left:auto;font-variant-numeric:tabular-nums}.cps-bar{height:8px;background:#eaf2ff;border-radius:6px;flex:1;overflow:hidden}.cps-bar i{height:100%;display:block;background:#4d98ed;border-radius:6px}.cps-entry{height:100%;overflow:auto;padding:40px;background:#f4f5f7}.cps-entry>main{max-width:1100px;margin:auto}.cps-entry a{display:flex;gap:10px;padding:12px;border-radius:8px;color:var(--text);text-decoration:none}.cps-entry a:hover{background:#edf5ff;color:var(--blue)}.cps-entry header{margin-bottom:28px}.cps-entry .cps-panel{margin-bottom:16px}.cps-quick{display:flex;gap:10px;flex-wrap:wrap}.cps-quick a{padding:12px 16px;border:1px solid var(--line);border-radius:8px;color:var(--blue)}.sidebar-brand{padding-top:24px;padding-bottom:18px}.cps-table .cps-detail-preview{max-width:280px;overflow:hidden;text-overflow:ellipsis}.cps-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:#1682e8}.cps-failed{padding:24px;background:#fff1f0;border:1px solid #ffccc7;border-radius:8px}.cps-check{width:14px;height:14px;accent-color:#1890ff}.cps-timeline{padding:0;list-style:none}.cps-timeline li{padding:12px 0 12px 18px;border-left:2px solid #d6e8ff;position:relative}.cps-timeline li:before{content:'';width:8px;height:8px;background:#1890ff;border-radius:50%;position:absolute;left:-5px;top:18px}.cps-timeline p{margin:4px 0}.cps-tree{padding:18px 24px;border-left:2px solid #d6e8ff;margin:12px 0 12px 20px}.cps-help-fab{position:fixed;right:20px;bottom:20px;z-index:20}.cps-card-link{border:0;text-align:left;cursor:pointer}.cps-panel .cps-small-select{width:150px}.cps-max{width:calc(100vw - 48px)!important}.cps-banner{display:flex;align-items:center;justify-content:space-between;gap:12px}.cps-dashboard .ui-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cps-unit{color:#98a2b1;font-size:12px}.cps-options{margin-left:auto;display:flex;gap:8px}.cps-panel .ui-section-title{margin-bottom:16px}@media(max-width:1280px){.cps-form{grid-template-columns:1fr}.cps-three{grid-template-columns:repeat(2,minmax(0,1fr))}.cps-dashboard{padding:16px}.cps-two{grid-template-columns:1fr 1fr}}@media(max-width:900px){.cps-two,.cps-three{grid-template-columns:1fr}.cps-dashboard .ui-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cps-panel a,.cps-dashboard a{color:var(--blue)}.cps-list{gap:0}.cps-subtabs button:focus-visible{outline:2px solid #91caff;outline-offset:-2px}#btn-sidebar-collapse{font-size:0}

/* 仅设置业务区布局；搜索、表格、分页、表单与弹层视觉来自 ui/index.css。 */
.cps-toolbar{padding:16px 12px;gap:12px}.cps-table-scroll{flex:1;min-height:0}.d-table tbody tr[data-row]{cursor:pointer}.d-table tbody tr:not([data-row]){cursor:default}.d-table thead th{position:sticky;top:0;z-index:1}.cps-page-layout{justify-content:space-between;flex-shrink:0}.cps-page-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cps-drawer-body{flex:1;min-height:0}.cps-form .d-field>span:first-child{white-space:normal}.overlay .live-drawer>header>div{display:flex;align-items:center;gap:8px}.overlay .live-drawer>header>div>.d-btn{width:auto;padding:0 12px}.cps-filter-fields{display:grid;gap:var(--ui-form-row-gap)}.cps-help-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.cps-help-fab{display:none}

/* CPS：顶栏 / 多页签条不覆盖 _app.js 的 mx-4 · mb-4 · rounded-b-lg · items-end（与 SharkAdmin 同源壳一致） */
.system-cps .cps-page-toolbar{border-bottom:1px solid var(--office-border,#edf0f5)}

/* 主控台 KPI 可点击卡片：与静态卡片左对齐一致 */
.system-cps .cps-dashboard .ui-kpi-card.cps-card-link{text-align:left}

/* 快捷入口：用规范色与圆角，避免像纯链接块 */
.system-cps .cps-quick a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:8px;font-size:13px;font-weight:600;text-decoration:none;background:#f6f8fb;border:1px solid transparent;color:#1890ff}
.cps-limit-banner .cps-info{margin:8px 0;background:#f6f9ff;border:1px solid #e6f0ff}
.cps-limit-cap-block .drawer-demo-section-title{margin:0 0 12px}
.cps-limit-cap-block .cps-limit-intro{margin:0 0 12px;background:#f6f9ff;border:1px solid #e6f0ff}
.cps-limit-cap-block .cps-cap-form-wrap{margin:12px 0 0}
.cps-partner-related-block{margin-top:8px}
.cps-partner-related-block .cps-drawer-related-block:first-child{margin-top:12px}
.cps-limit-cap-block .cps-cap-form-wrap .cps-form{margin-top:0}
.system-cps .cps-quick a:hover{background:#eef4ff;border-color:#d8eaff;color:#1890ff}

/* 列表白卡壳：与 backend-ui 列表区块（浅线 + 轻阴影）一致 */
.system-cps .page-list-shell.cps-page-shell{
  border:1px solid #edf0f5!important;
  border-radius:8px;
  box-shadow:0 8px 22px rgba(28,40,56,.04)!important;
  overflow:hidden;
}
.system-cps .cps-panel{box-shadow:0 8px 22px rgba(28,40,56,.04)}
/* 仪表盘/双栏卡片：标题与「查看 →」链接同一行 */
.system-cps .cps-panel .cps-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 16px;flex-wrap:wrap}
.system-cps .cps-panel .cps-panel-heading .ui-section-title{margin:0;flex:1;min-width:0}
.system-cps .cps-panel .cps-panel-heading>a{align-self:center;flex-shrink:0;font-size:13px;font-weight:600;white-space:nowrap;text-decoration:none}
.system-cps .cps-panel .cps-panel-heading>a:hover{text-decoration:underline}
.system-cps .cps-dashboard .ui-kpi-card,
.system-cps .cps-dashboard .ui-chart{box-shadow:0 8px 22px rgba(28,40,56,.04)}

/* 主控台 · 转介绍漏斗：梯形 SVG + 右侧图例 */
.system-cps .cps-funnel-panel .cps-funnel-wrap{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px;margin-top:4px}
.system-cps .cps-funnel-svg{flex:1 1 220px;min-width:200px;max-width:100%;height:auto;display:block;filter:drop-shadow(0 6px 14px rgba(28,40,56,.08))}
.system-cps .cps-funnel-legend{flex:1 1 180px;min-width:160px;margin:0;padding:0;list-style:none;display:grid;gap:8px;font-size:13px}
.system-cps .cps-funnel-legend li{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;padding:10px 12px;border:1px solid #edf0f5;border-radius:8px;background:#f8fafc}
.system-cps .cps-funnel-legend-name{color:#516b89;flex:1 1 auto;min-width:0}
.system-cps .cps-funnel-legend strong{font-variant-numeric:tabular-nums;color:#1f2937}
.system-cps .cps-funnel-legend-rate{margin-left:auto;color:#1890ff;font-size:12px;font-weight:600;white-space:nowrap}
.system-cps .cps-dashboard .cps-dash-scroll{padding:12px 16px;box-sizing:border-box}

/* 右下角问号：与 SharkAdmin system-sharkadmin 一致约 70% */
.system-cps .page-help-fab{
  width:calc(44px * .7);
  height:calc(44px * .7);
  box-shadow:0 7px 18px rgba(24,144,255,.32);
}
.system-cps .page-help-fab:hover{box-shadow:0 8px 21px rgba(24,144,255,.38)}
.system-cps .page-help-fab svg{width:calc(21px * .7);height:calc(21px * .7)}

/* 详情抽屉内页签：与 backend-ui drawer-nav-wrap 一致 */
.system-cps .live-drawer .drawer-nav-wrap{background:#fff}

/* 抽屉字段：overlay 挂到 body，选择器不依赖 #app-root 上的 .system-cps；压过 tabs.css 的 110px 两列规则 */
.cps-drawer-detail-block{margin-top:4px}
.cps-drawer-detail-block .cps-drawer-section-head{border-bottom:1px solid #edf0f5;padding-bottom:12px;margin:0 0 16px}
.cps-drawer-detail-block .cps-drawer-section-head .drawer-demo-section-title{margin:0}
.overlay .live-dialog .drawer-fields.cps-drawer-fields-two-col,
.overlay .live-dialog .drawer-fields:has(>.cps-drawer-field-item){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui-form-row-gap,14px) var(--ui-form-column-gap,20px);padding:0;align-items:start}
.overlay .live-dialog .cps-drawer-field-item{display:grid;grid-template-columns:var(--ui-form-label-width,128px) minmax(0,1fr);column-gap:var(--ui-form-field-gap,12px);align-items:center;min-width:0}
.overlay .live-dialog .cps-drawer-field-item>span{box-sizing:border-box;width:var(--ui-form-label-width,128px);text-align:right;color:#667282;font-size:13px;line-height:1.4;font-weight:500;white-space:nowrap}
.overlay .live-dialog .cps-drawer-field-item>b,
.overlay .live-dialog .drawer-fields>b{display:flex;align-items:center;box-sizing:border-box;width:100%;min-height:var(--ui-input-height,36px);font-weight:500;padding:0 10px;border:1px solid var(--line,#edf0f5);border-radius:var(--ui-input-radius,8px);background:#fafbfc;min-width:0;overflow-wrap:break-word;word-break:normal;line-height:1.5;color:#364150}
.overlay .live-dialog .cps-drawer-field-item>b:has(.d-tag),
.overlay .live-dialog .cps-drawer-field-item>b.cps-field-money{font-weight:600;font-variant-numeric:tabular-nums}
@media(max-width:720px){.overlay .live-dialog .drawer-fields.cps-drawer-fields-two-col,.overlay .live-dialog .drawer-fields:has(>.cps-drawer-field-item){grid-template-columns:1fr}}
.overlay .live-drawer>footer.drawer-footer{flex-shrink:0;display:flex;justify-content:flex-end;align-items:center;gap:12px}
.cps-scope-note{margin:0 12px 12px}
.cps-sku-table thead th.cps-sku-group{text-align:center;background:#f6f8fb;font-weight:600;color:#1f2733}
.cps-sku-table thead th.cps-sku-group-partner{background:#eef6ff}
.cps-sku-table thead th.cps-sku-group-referral{background:#f3fbf6}
.cps-sku-table thead tr:nth-child(2) th{font-weight:500;color:#526071}
.system-cps .cps-drawer-related-block{margin-top:16px}
.system-cps .cps-drawer-related-block:first-of-type{margin-top:8px}
.system-cps .cps-drawer-related-block .drawer-demo-section-title{margin-bottom:10px}
.system-cps .cps-drawer-related-block .d-table-wrap{margin-top:0}

/* 转介绍顾客 · 推荐好友记录（抽屉内列表与线索/订单页一致） */
.system-cps .live-drawer .cps-customer-referral-tab{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
}
.system-cps .live-drawer .cps-referral-tab-hint{
  margin:0;
  line-height:1.65;
}
.system-cps .live-drawer .cps-referral-tab-hint a{
  margin-left:10px;
  font-size:13px;
  font-weight:600;
}
.system-cps .live-drawer .cps-drawer-list-block{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.system-cps .live-drawer .cps-drawer-list-block .drawer-demo-section-title{
  margin:0;
}
.system-cps .live-drawer .cps-drawer-list-empty{
  margin:0;
  padding:32px 16px;
  border:1px dashed #e8ecf2;
  border-radius:8px;
  background:#fafbfc;
}
.system-cps .live-drawer .cps-drawer-inline-list{
  margin:0;
  display:flex;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
}
.system-cps .live-drawer .cps-drawer-inline-list .d-table-wrap{
  flex:1;
  min-height:0;
  max-height:min(280px,40vh);
  overflow:auto;
  border-top:1px solid #edf0f5;
}
.system-cps .live-drawer .cps-drawer-inline-list .cps-pagination-bar{
  flex-shrink:0;
  margin:0;
  border-top:1px solid #edf0f5;
  border-radius:0;
  background:#fff;
}

/* 列表二级 Tab（cps-subtabs-wrap）：与母版 renderSubTabs 同一结构，白卡顶角与底分隔沿用母版 */

/* 统计页（合伙人业绩 / 分享数据）：顶部 KPI 与「转介绍数据」主控台一致 — 独立卡片 + 轻阴影 */
.system-cps .cps-stat-kpi-row{display:grid;gap:12px}
.system-cps .cps-stat-kpi-head .ui-section-title{margin:0}
.system-cps .cps-stat-kpi-row .ui-kpi-grid{margin:0}
.system-cps .cps-stat-kpi-row .ui-kpi-card{box-shadow:0 8px 22px rgba(28,40,56,.04)}

/* 合伙人业绩（id 3）：概览 KPI 行 + 趋势白卡 + 明细白卡 */
.system-cps .cps-partner-perf-layout{display:flex;flex-direction:column;gap:16px;padding-bottom:4px}
.system-cps .cps-partner-perf-overview{display:flex;flex-direction:column;gap:16px}
.system-cps .cps-partner-perf-chart-panel{padding:16px 20px}
.system-cps .cps-partner-perf-chart-panel .ui-chart{margin:0;box-shadow:none}
.system-cps .cps-partner-perf-hint{margin:0 0 4px;padding:0 2px}
.system-cps .cps-partner-perf-detail{display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden}
.system-cps .cps-partner-perf-detail>.ui-section-title{flex-shrink:0;padding:16px 16px 12px;margin:0}
.system-cps .cps-partner-perf-detail .d-batch{flex-shrink:0;margin:0;padding:10px 16px;border-bottom:1px solid #edf0f5}
.system-cps .cps-partner-perf-detail .cps-info{margin:0 16px 8px}
.system-cps .cps-partner-perf-detail .d-table-wrap{flex:1;min-height:0;border-top:1px solid #edf0f5}
.system-cps .cps-partner-perf-detail .cps-pagination-bar{flex-shrink:0;margin-top:0;border-top:1px solid #edf0f5;border-radius:0}

/* 分享数据（id 4）：与合伙人业绩同一信息层级 */
.system-cps .cps-share-stat-layout{display:flex;flex-direction:column;gap:16px;padding-bottom:4px}
.system-cps .cps-share-stat-chart-panel{padding:16px 20px}
.system-cps .cps-share-stat-chart-panel .ui-chart{margin:0;box-shadow:none}
.system-cps .cps-share-stat-detail{display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden}
.system-cps .cps-share-stat-detail>.ui-section-title{flex-shrink:0;padding:16px 16px 12px;margin:0}
.system-cps .cps-share-stat-detail .d-batch{flex-shrink:0;margin:0;padding:10px 16px;border-bottom:1px solid #edf0f5}
.system-cps .cps-share-stat-detail .cps-info{margin:0 16px 8px}
.system-cps .cps-share-stat-detail .d-table-wrap{flex:1;min-height:0;border-top:1px solid #edf0f5}
.system-cps .cps-share-stat-detail .cps-pagination-bar{flex-shrink:0;margin-top:0;border-top:1px solid #edf0f5;border-radius:0}

/* 抵扣金账户位于窄面板，四项采用两列，避免金额挤出卡片。 */
.cps-dashboard .cps-account-panel .ui-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.cps-account-panel .ui-kpi-value{overflow-wrap:anywhere}
@media(max-width:480px){.cps-dashboard .cps-account-panel .ui-kpi-grid{grid-template-columns:1fr}}

/* 详情抽屉按母版双列展示只读字段。 */
.live-drawer .cps-fields{grid-template-columns:128px minmax(0,1fr) 128px minmax(0,1fr);align-items:center;gap:12px}
.live-drawer .cps-fields dd{min-width:0;min-height:36px;padding:8px 12px;border:1px solid #edf0f5;border-radius:6px;background:#f8fafc}
@media(max-width:900px){.live-drawer .cps-fields{grid-template-columns:128px minmax(0,1fr)}}

/* 当前页面帮助：说明、口径和演示步骤在问号内直接展示。 */
.cps-help-content{display:grid;gap:24px;color:#303846;font-size:13px;line-height:1.7}
.cps-help-section h3{margin:0 0 10px;font-size:14px;line-height:1.5;font-weight:600;color:#1f2733}
.cps-help-section h3::before{content:"";display:inline-block;width:3px;height:14px;border-radius:2px;background:#1890ff;margin-right:8px;vertical-align:-2px}
.cps-help-section p{margin:0;color:#526071}
.cps-help-section ol{margin:0;padding-left:20px;list-style:decimal;color:#526071}
.cps-help-section li+li{margin-top:8px}
.cps-help-definitions{margin:0;border:1px solid #edf0f5;border-radius:8px;overflow:hidden}
.cps-help-definitions>div{display:grid;grid-template-columns:108px minmax(0,1fr);gap:12px;padding:10px 12px}
.cps-help-definitions>div+div{border-top:1px solid #edf0f5}
.cps-help-definitions dt{color:#697386}.cps-help-definitions dd{margin:0;overflow-wrap:anywhere}
.cps-help-section .cps-help-note{margin-top:10px;color:#8a93a3;font-size:12px}

/* 弹层标题栏 / 底栏 / 表单：用足够特异度拉回后台 UI 规范，避免白底让 1px 分割线显得过重 */
.overlay.system-cps .live-dialog > header,
.overlay.system-cps .live-dialog > footer,
.overlay.system-cps .live-dialog > footer.drawer-footer{
  background:var(--ui-overlay-header-bg,#f4f6f9);
  box-shadow:none;
}
.overlay.system-cps .live-dialog > header{
  height:var(--ui-overlay-header-height,56px);
  min-height:var(--ui-overlay-header-height,56px);
  padding:0 24px;
  border-bottom:1px solid var(--line,#edf0f5);
  font-size:var(--ui-overlay-title-size,17px);
  font-weight:var(--ui-overlay-title-weight,700);
  color:var(--title,#1f2733);
}
.overlay.system-cps .live-dialog > header > .overlay-title{
  background:transparent;
  font-size:var(--ui-overlay-title-size,17px);
  font-weight:var(--ui-overlay-title-weight,700);
  color:var(--title,#1f2733);
}
.overlay.system-cps .live-dialog > footer,
.overlay.system-cps .live-dialog > footer.drawer-footer{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  padding:14px 24px;
  border-top:1px solid var(--line,#edf0f5);
  flex-shrink:0;
}
.overlay.system-cps .live-dialog:not(.live-drawer) > footer.drawer-footer{
  justify-content:center;
}
.overlay.system-cps .live-dialog:not(.live-drawer) .cps-segment-control{
  flex:1 1 auto;
  max-width:100%;
}
.overlay.system-cps .live-dialog:not(.live-drawer) .cps-segment-control .d-segment{
  width:100%;
  max-width:100%;
}
.overlay.system-cps .live-drawer .cps-sku-basic-drawer .cps-sku-basic-form{
  margin-top:4px;
}
.overlay.system-cps .cps-sku-basic-form{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
}
.overlay.system-cps .cps-sku-basic-form__core.d-form-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px var(--ui-form-column-gap,20px);
  align-items:start;
}
.overlay.system-cps .cps-sku-basic-form__core .d-field:not(.full){
  align-items:flex-start;
  min-width:0;
}
.overlay.system-cps .cps-sku-basic-form__core .d-field > span:first-child{
  padding-top:8px;
}
.overlay.system-cps .cps-sku-basic-form__core .cps-segment-control{
  width:100%;
}
.overlay.system-cps .cps-sku-basic-form__core .d-segment{
  width:100%;
  max-width:280px;
}
.overlay.system-cps .cps-sku-basic-form__media{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-top:0;
  border:0;
}
.overlay.system-cps .cps-sku-basic-form__uploads{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--ui-form-row-gap,16px) var(--ui-form-column-gap,20px);
  align-items:start;
}
.overlay.system-cps .cps-sku-basic-form__uploads .cps-sku-upload-field{
  display:flex;
  flex-direction:row;
  align-items:flex-start;
  gap:var(--ui-form-field-gap,12px);
  min-width:0;
}
.overlay.system-cps .cps-sku-basic-form__uploads .cps-sku-upload-field>span:first-child{
  flex:0 0 var(--ui-form-label-width);
  width:var(--ui-form-label-width);
  text-align:right;
  padding-top:8px;
  line-height:1.4;
}
.overlay.system-cps .cps-sku-basic-form__uploads .cps-sku-upload-field>.d-control{
  flex:1;
  min-width:0;
  width:auto;
}
.overlay.system-cps .cps-sku-desc-field textarea.d-input{
  min-height:90px;
  padding-top:10px;
  resize:vertical;
}
.overlay.system-cps .live-dialog:not(.live-drawer) .cps-sku-basic-form__core.d-form-grid{
  grid-template-columns:1fr;
}
@media(max-width:900px){
  .overlay.system-cps .cps-sku-basic-form__core.d-form-grid,
  .overlay.system-cps .cps-sku-basic-form__uploads{
    grid-template-columns:1fr;
  }
}
.overlay.system-cps .live-dialog > .live-body{padding:16px 20px}
.overlay.system-cps .live-dialog:not(.live-drawer){width:min(640px,96vw);max-height:90vh}
.overlay.system-cps .drawer-demo-section-title{
  font-size:var(--ui-section-title-size,15px);
  font-weight:var(--ui-section-title-weight,700);
  color:var(--title,#1f2733);
}
.overlay.system-cps .cps-dialog-stack{
  display:flex;
  flex-direction:column;
  gap:var(--ui-form-row-gap,14px);
  min-width:0;
}
.overlay.system-cps .cps-dialog-stack > .cps-info,
.overlay.system-cps .cps-info{margin:0}
.overlay.system-cps .cps-dialog-form{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin:0;
  min-width:0;
}
.overlay.system-cps .cps-dialog-form-grid,
.overlay.system-cps .live-dialog:not(.live-drawer) .d-form-grid.cps-dialog-form-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--ui-form-row-gap,14px) var(--ui-form-column-gap,20px);
  margin:0;
}
.overlay.system-cps .live-dialog:not(.live-drawer):not(.filter-dialog) .d-field:not(.full) > .d-control{
  flex:0 1 var(--ui-dialog-control-max-width,260px);
  max-width:var(--ui-dialog-control-max-width,260px);
  min-width:0;
}
.overlay.system-cps .live-dialog:not(.live-drawer):not(.filter-dialog) .d-field:not(.full) > .d-control > .d-input{
  width:100%;
  max-width:100%;
  height:var(--ui-input-height,36px);
}

/* 分佣 SKU · 基础信息图片上传 */
.overlay.system-cps .cps-sku-upload-field > .d-control.cps-sku-upload-control{
  flex:0 0 auto;
  max-width:none;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.overlay.system-cps .cps-sku-upload-zone{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:104px;
  height:104px;
  margin:0;
  padding:8px;
  box-sizing:border-box;
  border:1px dashed var(--ui-border-color,#d9d9d9);
  border-radius:8px;
  background:var(--ui-fill-tertiary,#fafafa);
  cursor:pointer;
  color:var(--ui-text-tertiary,#8c8c8c);
  font-size:12px;
  line-height:1.35;
  text-align:center;
  transition:border-color .15s,background .15s;
}
.overlay.system-cps .cps-sku-upload-zone:hover{border-color:var(--ui-primary,#1677ff);color:var(--ui-text-secondary,#595959)}
.overlay.system-cps .cps-sku-upload-zone input[type="file"]{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.overlay.system-cps .cps-sku-upload-plus{
  font-size:22px;
  line-height:1;
  font-weight:300;
  color:var(--ui-text-quaternary,#bfbfbf);
}
.overlay.system-cps .cps-sku-upload-hint{font-size:12px}
.overlay.system-cps .cps-sku-upload-preview{font-size:12px;color:var(--ui-text-secondary,#595959);max-width:280px;word-break:break-all}

/* 详情内功能操作面板：复用外账 drawer-audit-panel，只补抽屉内间距与隐藏态 */
.overlay.system-cps .cps-drawer-func{margin:20px 0 0}
.overlay.system-cps .cps-drawer-func .drawer-audit-panel{margin:0}
.overlay.system-cps .cps-drawer-func .drawer-audit-panel > .drawer-audit-compose{margin-left:0;width:100%}
.overlay.system-cps .cps-drawer-func .drawer-audit-panel > .drawer-audit-compose > .drawer-func-body,
.overlay.system-cps .cps-drawer-func .drawer-audit-panel > .drawer-audit-compose > .drawer-func-form{margin-left:0;width:100%}
.overlay.system-cps .drawer-func-body.hidden{display:none!important}
.overlay.system-cps .cps-drawer-func .cps-dialog-stack{gap:var(--ui-form-row-gap,14px)}
.overlay.system-cps .cps-drawer-func .d-form-grid,
.overlay.system-cps .cps-drawer-func .cps-form{margin:0}
.overlay.system-cps .live-drawer .drawer-section-title{font-size:var(--ui-section-title-size,15px);font-weight:var(--ui-section-title-weight,700)}

/* 列表快捷筛选：分组名称，避免两组「全部」并排无法区分 */
.system-cps .page-toolbar-left{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;min-width:0}
.system-cps .cps-chip-block{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.system-cps .cps-chip-block + .cps-chip-block{padding-left:12px;border-left:1px solid var(--line,#edf0f5)}
.system-cps .chip-group-label{display:none}

/* 分佣 SKU 模式标签、全局设置与抽屉佣金表单 */
.cps-tag.gray{background:#eef1f5;color:#5b6570}
.cps-mode-referral{background:#eaf8ef;color:#22945e}
.cps-mode-partner{background:#eaf4ff;color:#1682e8}
.cps-type-staff{background:#f3efff;color:#7353d9}
.cps-type-master{background:#fff4e8;color:#d97a12}
.system-cps .cps-sku-table thead th.cps-sku-group{display:none}

.cps-global-settings{padding:8px 4px 24px;display:flex;flex-direction:column;gap:16px}
.cps-global-settings > .cps-info{margin:0}
.cps-gs-block{background:#fff;border:1px solid var(--line,#edf0f5);border-radius:8px;padding:0 0 8px;min-width:0}
.cps-gs-head{display:flex;align-items:center;gap:12px;padding:16px 20px 12px;border-bottom:1px solid var(--line,#edf0f5)}
.cps-gs-head h2{margin:0;flex:1;display:flex;align-items:center;gap:10px;font-size:var(--ui-section-title-size,15px);font-weight:var(--ui-section-title-weight,700);color:var(--title,#1f2733)}
.cps-gs-num{width:22px;height:22px;border-radius:50%;background:#1682e8;color:#fff;display:inline-grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0}
.cps-gs-head .d-btn{flex-shrink:0}
.cps-gs-block form{padding:8px 20px 16px}
.cps-gs-row{display:grid;grid-template-columns:156px minmax(180px,280px) minmax(0,1fr);gap:12px 16px;align-items:center;padding:10px 0;border-bottom:1px solid #f2f4f7}
.cps-gs-row:last-child{border-bottom:0}
.cps-gs-row > label,.cps-gs-label{text-align:right;color:#667282;line-height:1.5}
.cps-gs-control{display:flex;align-items:center;gap:8px;min-width:0}
.cps-gs-help{color:#8a93a0;font-size:12px;line-height:1.6}
.cps-gs-note{padding:0 20px 12px;color:#8a93a0;font-size:12px;line-height:1.6}
.cps-stepper{display:inline-flex;align-items:center;border:1px solid var(--line,#dbe1ea);border-radius:6px;overflow:hidden;background:#fff;height:36px}
.cps-stepper button{width:32px;height:36px;border:0;background:#f7f8fa;color:#334155;cursor:pointer;font-size:16px;line-height:1}
.cps-stepper button:hover{background:#eef2f6}
.cps-stepper input{width:72px;height:36px;border:0;border-left:1px solid var(--line,#dbe1ea);border-right:1px solid var(--line,#dbe1ea);text-align:center;font-size:14px;outline:none;background:#fff}
.cps-stepper .cps-step-unit{color:#667282;padding-right:10px;font-size:13px;white-space:nowrap}
.cps-gs-schemes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:12px 20px 16px}
.cps-gs-scheme{border:1px solid var(--line,#edf0f5);border-radius:8px;padding:16px;background:#fafbfd;min-width:0}
.cps-gs-scheme h3{margin:0 0 12px;font-size:14px;font-weight:700}
@media (max-width:900px){
  .cps-gs-row{grid-template-columns:1fr;gap:6px}
  .cps-gs-row > label,.cps-gs-label{text-align:left}
  .cps-gs-schemes{grid-template-columns:1fr}
}

.overlay.system-cps .cps-sku-mode-field{margin-bottom:4px}
.overlay.system-cps .cps-sku-mode-field .cps-segment-control{
  width:auto;
  flex:0 0 auto;
}
.overlay.system-cps .cps-sku-mode-segment.d-segment{
  width:auto;
  max-width:100%;
  display:inline-flex;
}
.overlay.system-cps .cps-sku-mode-segment.d-segment button{
  flex:0 0 auto;
  width:auto;
  min-width:0;
}
.overlay.system-cps .cps-mode-pane[hidden]{display:none!important}
.overlay.system-cps .cps-mode-hint{margin:0 0 12px;color:#667282;line-height:1.6;font-size:13px}
.overlay.system-cps .cps-sku-subhead{
  margin:0;
  font-size:13px;
  font-weight:600;
  color:var(--title,#1f2733);
  line-height:1.4;
}
.overlay.system-cps .cps-sku-comm-form{gap:16px}
.overlay.system-cps .cps-sku-comm-group{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}
.overlay.system-cps .cps-sku-comm-custom{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}
.overlay.system-cps .cps-sku-comm-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--ui-form-row-gap,14px) var(--ui-form-column-gap,20px);
}
.overlay.system-cps .cps-rate-table-wrap{overflow:auto;min-width:0}
.overlay.system-cps .cps-rate-table{
  width:100%;
  max-width:560px;
  border-collapse:collapse;
  table-layout:fixed;
  font-size:13px;
  background:#fff;
}
.overlay.system-cps .cps-rate-table th,
.overlay.system-cps .cps-rate-table td{
  border:1px solid var(--line,#edf0f5);
  padding:8px 10px;
  vertical-align:middle;
}
.overlay.system-cps .cps-rate-table thead th{
  background:#f6f8fb;
  font-weight:600;
  color:#1f2733;
  text-align:center;
}
.overlay.system-cps .cps-rate-table th:first-child,
.overlay.system-cps .cps-rate-table td:first-child{
  width:28%;
  text-align:left;
  color:#667282;
  font-weight:500;
  white-space:nowrap;
  background:#fafbfd;
}
.overlay.system-cps .cps-rate-table thead th:first-child{
  color:#1f2733;
  font-weight:600;
  background:#f6f8fb;
}
.overlay.system-cps .cps-rate-cell{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.overlay.system-cps .cps-rate-cell .d-input{
  width:88px;
  max-width:100%;
  height:var(--ui-input-height,36px);
  text-align:center;
}
.overlay.system-cps .cps-rate-unit{color:#667282;font-size:13px;flex-shrink:0}
.overlay.system-cps .cps-rate-upline{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  min-height:36px;
}
.overlay.system-cps .cps-rate-upline-label{
  color:#667282;
  font-size:13px;
  font-weight:500;
  line-height:1.4;
}
.overlay.system-cps .cps-gs-scheme .cps-rate-table{max-width:100%}
.overlay.system-cps .cps-gs-schemes{grid-template-columns:1fr}
@media(max-width:900px){
  .overlay.system-cps .cps-sku-comm-grid{grid-template-columns:1fr}
  .overlay.system-cps .cps-rate-table{max-width:none}
  .overlay.system-cps .cps-sku-extra-grid,
  .cps-global-settings .cps-sku-extra-grid{grid-template-columns:1fr}
}

.overlay.system-cps .cps-sku-extra-grid,
.cps-global-settings .cps-sku-extra-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 20px;
  align-items:center;
  min-width:0;
}
.overlay.system-cps .cps-sku-comm-summary,
.cps-global-settings .cps-sku-comm-summary{
  padding:12px 14px;
  border:1px solid var(--line,#edf0f5);
  border-radius:8px;
  background:#fafbfd;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.overlay.system-cps .cps-sku-summary-title{
  margin:0;
  font-size:13px;
  font-weight:600;
  color:#1f2733;
}
.overlay.system-cps .cps-sku-comm-summary .cps-fields{
  margin:0;
  grid-template-columns:112px minmax(0,1fr);
}
.overlay.system-cps .cps-rate-table-readonly td{text-align:center;color:#1f2733}
.cps-global-settings .cps-rate-table-wrap{overflow:auto;min-width:0}
.cps-global-settings .cps-rate-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  font-size:13px;
  background:#fff;
}
.cps-global-settings .cps-rate-table th,
.cps-global-settings .cps-rate-table td{
  border:1px solid var(--line,#edf0f5);
  padding:8px 10px;
  vertical-align:middle;
}
.cps-global-settings .cps-rate-table thead th{
  background:#f6f8fb;
  font-weight:600;
  color:#1f2733;
  text-align:center;
}
.cps-global-settings .cps-rate-table th:first-child,
.cps-global-settings .cps-rate-table td:first-child{
  width:28%;
  text-align:left;
  color:#667282;
  font-weight:500;
  white-space:nowrap;
  background:#fafbfd;
}
.cps-global-settings .cps-rate-table thead th:first-child{
  color:#1f2733;
  font-weight:600;
  background:#f6f8fb;
}
.cps-global-settings .cps-rate-cell{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.cps-global-settings .cps-rate-cell .d-input{
  width:88px;
  max-width:100%;
  height:var(--ui-input-height,36px);
  text-align:center;
}
.cps-global-settings .cps-rate-unit{color:#667282;font-size:13px;flex-shrink:0}
.cps-global-settings .cps-rate-upline{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  min-height:36px;
}
.cps-global-settings .cps-rate-upline-label{
  color:#667282;
  font-size:13px;
  font-weight:500;
  line-height:1.4;
  min-width:7em;
}
.cps-global-settings .cps-gs-scheme .d-field{margin:0 0 12px}
.cps-global-settings .cps-gs-scheme .cps-rate-upline,
.cps-global-settings .cps-gs-scheme .cps-sku-extra-grid{margin:0 0 12px}

/* 邀请关系树 · 三栏布局 */
.cps-page-invite-tree .page-toolbar{display:none}
.cps-invite-tree-host,.cps-content--invite-tree{padding:0!important;overflow:hidden;display:flex;flex-direction:column;min-height:0}
.cps-invite-tree-page{display:flex;flex-direction:column;gap:12px;min-height:min(720px,calc(100vh - 200px));padding:4px 4px 12px}
.cps-invite-tree-heading{display:flex;align-items:center;gap:10px;padding:4px 8px 0}
.cps-invite-tree-heading .ui-page-title{margin:0}
.cps-invite-tree-layout{flex:1;display:grid;grid-template-columns:220px minmax(0,1fr)280px;gap:12px;min-height:0}
.cps-invite-tree-nav,.cps-invite-tree-main,.cps-invite-tree-detail{border:1px solid var(--line,#e8e8e8);border-radius:8px;background:#fff;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.cps-invite-tree-nav{padding:14px 12px;gap:12px;overflow:auto}
.cps-invite-nav-label{font-size:12px;color:var(--muted,#8c8c8c);margin-bottom:6px;display:block}
.cps-invite-nav-search{width:100%;box-sizing:border-box}
.cps-invite-nav-group h3{margin:0 0 8px;font-size:12px;font-weight:600;color:#595959}
.cps-invite-nav-group ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.cps-invite-nav-group+.cps-invite-nav-group{margin-top:8px;padding-top:12px;border-top:1px solid #f0f0f0}
.cps-invite-nav-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;background:transparent;border-radius:6px;padding:8px 10px;font-size:13px;color:#262626;cursor:pointer;text-align:left}
.cps-invite-nav-item:hover{background:#f5f5f5}
.cps-invite-nav-item.is-active{background:#e6f4ff;color:#1890ff}
.cps-invite-nav-role{font-size:11px;color:#8c8c8c;font-weight:400}
.cps-invite-nav-item.is-active .cps-invite-nav-role{color:#69b1ff}
.cps-invite-nav-empty{padding:8px 10px;color:#bfbfbf;font-size:12px}
.cps-invite-tree-main{padding:0;min-width:0}
.cps-invite-tree-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #f0f0f0;background:#fafafa}
.cps-invite-tree-target{font-size:13px;color:#595959}
.cps-invite-tree-target strong{color:#262626;font-size:15px;margin:0 6px}
.cps-invite-tree-target-meta{font-size:12px;color:#8c8c8c}
.cps-invite-tree-stats{display:flex;gap:20px;margin:0}
.cps-invite-tree-stats div{text-align:right}
.cps-invite-tree-stats dt{margin:0;font-size:11px;color:#8c8c8c}
.cps-invite-tree-stats dd{margin:2px 0 0;font-size:16px;font-weight:600;color:#262626;font-variant-numeric:tabular-nums}
.cps-invite-tree-viz{flex:1;display:flex;flex-direction:column;min-height:0;padding:16px;overflow:auto}
.cps-invite-viz-title{margin:0 0 14px;font-size:13px;font-weight:600;color:#262626}
.cps-invite-tree-canvas{padding:8px 4px 16px}
.cps-invite-tree-empty{padding:48px 16px;text-align:center;color:var(--muted,#8c8c8c);font-size:13px}
.cps-invite-level1{position:relative;margin:0 0 20px;padding-left:24px}
.cps-invite-level1:before{content:'';position:absolute;left:11px;top:22px;bottom:0;width:2px;background:#e8e8e8}
.cps-invite-level1:last-child{margin-bottom:0}
.cps-invite-level1:last-child:before{bottom:50%}
.cps-invite-branch{margin:10px 0 0 28px;padding-left:20px;border-left:2px solid #e8e8e8;display:flex;flex-direction:column;gap:10px}
.cps-invite-branch-row{position:relative}
.cps-invite-node{display:flex;align-items:center;gap:10px;width:100%;max-width:320px;border:1px solid #e8e8e8;border-radius:8px;background:#fff;padding:10px 12px;cursor:pointer;text-align:left;transition:border-color .15s,box-shadow .15s}
.cps-invite-node:hover{border-color:#91caff}
.cps-invite-node.is-selected{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.12)}
.cps-invite-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e6f4ff;color:#1890ff;font-weight:600;flex-shrink:0}
.cps-invite-node-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.cps-invite-node-name{font-size:14px;font-weight:600;color:#262626}
.cps-invite-node-phone{font-size:12px;color:#8c8c8c}
.cps-invite-node-tag{font-size:11px;color:#1890ff;margin-top:2px}
.cps-invite-node-count{flex-shrink:0;min-width:22px;height:22px;border-radius:11px;background:#f0f0f0;color:#595959;font-size:11px;display:grid;place-items:center}
.cps-invite-tree-hint{margin:0;padding:10px 16px 14px;border-top:1px solid #f0f0f0}
.cps-invite-tree-detail{padding:16px;overflow:auto}
.cps-invite-detail-title{margin:0 0 14px;font-size:15px;font-weight:600}
.cps-invite-detail-block+.cps-invite-detail-block{margin-top:16px;padding-top:16px;border-top:1px dashed #f0f0f0}
.cps-invite-detail-block h4{margin:0 0 10px;font-size:12px;font-weight:600;color:#595959}
.cps-invite-detail-dl{margin:0;display:flex;flex-direction:column;gap:8px}
.cps-invite-detail-dl>div{display:flex;gap:12px;font-size:13px;line-height:1.5}
.cps-invite-detail-dl dt{width:72px;flex-shrink:0;color:#8c8c8c;margin:0}
.cps-invite-detail-dl dd{margin:0;flex:1;color:#262626}
.cps-invite-commission-pill{display:inline-flex;padding:4px 10px;border-radius:999px;background:#f5f5f5;color:#595959;font-size:12px}
.cps-invite-detail-empty{color:#8c8c8c;font-size:13px;margin:0}
@media(max-width:1100px){.cps-invite-tree-layout{grid-template-columns:200px minmax(0,1fr)}.cps-invite-tree-detail{grid-column:1/-1}}
@media(max-width:820px){.cps-invite-tree-layout{grid-template-columns:1fr}.cps-invite-tree-page{min-height:auto}}
/* 主控台 · 待办 / 合伙人业绩 / 配置页分组 */
.cps-dashboard .ui-kpi-grid.cps-kpi-4,.cps-partner-perf-layout .ui-kpi-grid.cps-kpi-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cps-dash-work{grid-template-columns:1.6fr 1fr}
.cps-todo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cps-todo{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--line,#edf0f5);border-radius:8px;background:#fafbfd;color:var(--text);text-decoration:none;transition:border-color .15s,background .15s}
.cps-todo:hover{border-color:#b9d8ff;background:#f3f8ff}
.cps-todo-label{font-size:13px;color:#667282}
.cps-todo-num{font-size:24px;font-weight:700;line-height:1.3;color:#98a2b1;font-variant-numeric:tabular-nums}
.cps-todo.is-pending .cps-todo-num{color:#e07b12}
.cps-todo-note{font-size:12px;color:#98a2b1;line-height:1.5}
.cps-dash-quick{display:flex;align-items:center;gap:12px;margin-top:16px;padding-top:14px;border-top:1px dashed var(--line,#edf0f5)}
.cps-dash-quick .cps-quick{gap:8px}
.cps-cfg-group{padding:18px 0 6px;border-top:1px solid #f2f4f7}
.cps-cfg-group:first-of-type{border-top:0;padding-top:4px}
.cps-cfg-group-head{display:flex;align-items:baseline;gap:12px;margin-bottom:14px}
.cps-cfg-group-head h3{margin:0;font-size:14px;font-weight:600;color:var(--text)}
.cps-cfg-group-head p{margin:0;font-size:12px;color:#8a93a0}
.cps-poster-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;margin:20px 0 8px;align-items:start}
.cps-poster-side{display:flex;flex-direction:column;gap:10px}
.cps-poster-mock{width:240px;aspect-ratio:3/4;border-radius:12px;padding:20px;background:linear-gradient(160deg,#2d8cf0,#1a5fb4);color:#fff;display:flex;flex-direction:column;gap:8px;box-shadow:0 6px 18px rgba(26,95,180,.18)}
.cps-poster-mock h3{margin:0;font-size:18px;line-height:1.4}
.cps-poster-mock p{margin:0;opacity:.85}
.cps-poster-mock strong{font-size:30px;margin-top:auto}
.cps-poster-tag{align-self:flex-start;font-size:12px;background:rgba(255,255,255,.2);padding:2px 8px;border-radius:10px}
.cps-poster-qr{align-self:flex-end;font-size:12px;background:#fff;color:#1a5fb4;padding:6px 10px;border-radius:6px}
.cps-poster-img{width:240px;max-height:320px;object-fit:contain;border-radius:12px}
.cps-poster-upload{display:inline-flex;align-items:center;justify-content:center;width:240px;height:34px;border:1px dashed #b9d8ff;border-radius:8px;color:#1890ff;cursor:pointer;font-size:13px}
.cps-poster-upload input{display:none}
.cps-poster-fields{grid-template-columns:1fr}
@media(max-width:1280px){.cps-todo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cps-dashboard .ui-kpi-grid.cps-kpi-4,.cps-partner-perf-layout .ui-kpi-grid.cps-kpi-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.cps-dash-work,.cps-poster-layout{grid-template-columns:1fr}}
/* 合伙人业绩工具栏：单行 */
.cps-page-toolbar.is-single-row .page-toolbar-left{flex-wrap:nowrap;min-width:0;gap:8px}
.cps-page-toolbar.is-single-row .page-search-wrap{flex:0 1 200px;min-width:96px}
.cps-page-toolbar.is-single-row .page-toolbar-left>*{flex-shrink:0}
.cps-page-toolbar.is-single-row .page-toolbar-left>.page-search-wrap{flex-shrink:1}
.cps-perf-dates{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.cps-perf-dates .d-input{width:122px;height:32px;padding:0 6px}
.cps-perf-dates-label,.cps-perf-dates-sep{font-size:13px;color:#8c8c8c}
.cps-page-toolbar.is-single-row .cps-chip-block,.cps-page-toolbar.is-single-row .chip-group{flex-wrap:nowrap;white-space:nowrap}
.cps-page-toolbar.is-single-row .chip-group{gap:6px}
.cps-page-toolbar.is-single-row .d-chip{padding-left:10px;padding-right:10px}
.cps-account-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.cps-account-head>.ui-section-title{margin:0}
.cps-account-foot{display:flex;align-items:center;gap:16px;font-size:13px;color:#667282}
.cps-account-foot strong{color:var(--text);font-variant-numeric:tabular-nums}
/* 列表页顶部指标条（合伙人业绩） */
.system-cps .cps-list-kpis{flex-shrink:0;padding:0 0 12px}
.system-cps .cps-list-kpis .ui-kpi-grid{margin:0;gap:12px}
.system-cps .cps-list-kpis .ui-kpi-card{padding:12px 16px;box-shadow:none;border:1px solid var(--line,#edf0f5)}
.system-cps .cps-list-kpis .ui-kpi-grid.cps-kpi-4{grid-template-columns:repeat(4,minmax(0,1fr))}
/* 分享数据：指标 + 趋势 + 标准列表，列表区可滚动 */
.system-cps #list-table-host:has(.cps-share-kpis){overflow-y:auto}
.system-cps #list-table-host:has(.cps-share-kpis) .d-table-wrap{flex:none;overflow:visible;max-height:none}
.system-cps #list-table-host:has(.cps-share-kpis) .cps-pagination-bar{flex-shrink:0}
.system-cps .cps-share-chart{margin-top:12px;border:1px solid var(--line,#edf0f5);border-radius:8px;padding:12px 16px}
.system-cps .cps-share-chart .ui-chart{margin:0;box-shadow:none;padding:0;border:0}
.system-cps .cps-bar-chart svg{display:block;width:100%;overflow:visible}
.system-cps .cps-bar-chart svg text{font-size:11px;fill:#8a94a6}
.system-cps .cps-bar-chart svg rect{transition:opacity .15s}
.system-cps .cps-bar-chart svg g:hover rect{opacity:.75}
.system-cps .cps-bar-legend{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#667282}
.system-cps .cps-bar-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-left:8px}
/* 转介绍漏斗：横向条形漏斗，与右侧账户卡底部对齐 */
.cps-dashboard .cps-two>.cps-funnel-panel,.cps-dashboard .cps-two>.cps-account-panel{display:flex;flex-direction:column}
.cps-dashboard .cps-account-panel>.ui-kpi-grid{flex:1}
.system-cps .cps-funnel-panel .cps-funnel-wrap.cps-fn{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;flex-wrap:nowrap;flex:1;gap:0;margin-top:4px}
.system-cps .cps-funnel-panel>.ui-section-title{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:1px solid #edf0f5}
.system-cps .cps-funnel-panel>.ui-section-title .cps-unit{padding:4px 12px;border-radius:6px;background:#f2f5f9;color:#516b89;font-size:12px;font-weight:400}
.cps-fn-head,.cps-fn-row{display:grid;grid-template-columns:minmax(0,1fr) 72px 84px;align-items:center;column-gap:16px}
.cps-fn-head{margin-bottom:6px;color:#8a94a6;font-size:12px}
.cps-fn-head span{text-align:right}
.cps-fn-stage{position:relative;display:flex;justify-content:center}
.cps-fn-stage::before{content:"";position:absolute;left:50%;right:-8px;top:50%;border-top:1px dashed #dde3ec}
.cps-fn-trap{position:relative;display:flex;align-items:center;justify-content:center;height:48px;clip-path:polygon(0 0,100% 0,93% 100%,7% 100%);color:#fff;font-size:14px;font-weight:600;white-space:nowrap}
.cps-fn-trap.is-light{color:#1f3a5f}
.cps-fn-val{text-align:right;color:#1f2937;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
.cps-fn-share{text-align:right;color:#667282;font-size:14px;font-variant-numeric:tabular-nums}
.cps-fn-rate{display:grid;grid-template-columns:minmax(0,1fr) 72px 84px;column-gap:16px;min-height:24px;align-items:center;color:#8a94a6;font-size:12px}
.cps-fn-rate span{text-align:center}
/* 全局标签统一：与组件库 d-tag 一致的描边标签 */
.cps-tag,.d-tag{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;font-size:12px;font-weight:500;line-height:20px;border:1px solid #dde2ea;border-radius:4px;background:#f8fafc;color:#697386;white-space:nowrap}
.cps-tag,.cps-tag.blue,.d-tag.blue,.cps-tag.cps-mode-partner{background:#edf7ff;border-color:#9bcfff;color:#1976d2}
.cps-tag.green,.d-tag.green,.cps-tag.cps-mode-referral{background:#effcf5;border-color:#a8e7c5;color:#168f57}
.cps-tag.orange,.d-tag.orange,.cps-tag.cps-type-master{background:#fff8ea;border-color:#ffd596;color:#c97613}
.cps-tag.red,.d-tag.red{background:#fff2f0;border-color:#ffb7b2;color:#d6453d}
.cps-tag.gray,.d-tag.gray{background:#f8fafc;border-color:#dde2ea;color:#697386}
.cps-tag.purple,.d-tag.purple,.cps-tag.cps-type-staff{background:#f4efff;border-color:#b99cf3;color:#7c55d9}
.cps-invite-node-tag{display:inline-flex;align-items:center;align-self:center;min-height:18px;padding:0 6px;margin-top:4px;font-size:11px;line-height:16px;border:1px solid #9bcfff;border-radius:4px;background:#edf7ff;color:#1976d2}
/* 邀请关系树：三栏（身份分组导航 / 关系树表 / 合伙人详情） */
.cps-invite-tree-page{padding:0 0 12px;min-height:0;height:100%}
.cps-invite-tree-layout{grid-template-columns:232px minmax(0,1fr) 288px;height:100%}
.cps-invite-tree-nav{padding:0;display:flex;flex-direction:column;overflow:hidden}
.cps-invite-nav-search-wrap{padding:12px;border-bottom:1px solid #f0f0f0}
.cps-invite-nav-search{height:32px}
.cps-invite-nav-scroll{flex:1;overflow:auto;padding:8px}
.cps-invite-nav-group h3{display:flex;justify-content:space-between;align-items:center;margin:4px 8px 6px;font-size:12px;font-weight:600;color:#8a94a6}
.cps-invite-nav-group h3 span{font-weight:400}
.cps-invite-nav-group+.cps-invite-nav-group{margin-top:8px;padding-top:8px;border-top:1px solid #f0f0f0}
.cps-invite-nav-group ul{gap:2px}
.cps-invite-nav-item{justify-content:flex-start;gap:8px;padding:6px 8px;border-radius:6px;font-size:13px;color:#262626;cursor:pointer;text-align:left}
.cps-invite-nav-name{flex:1;min-width:0}
.cps-invite-nav-count{min-width:20px;height:18px;padding:0 6px;border-radius:9px;background:#f2f4f7;color:#667282;font-size:11px;line-height:18px;text-align:center}
.cps-invite-nav-item.is-active .cps-invite-nav-count{background:#fff;color:#1890ff}
.cps-invite-avatar{width:32px;height:32px;flex-shrink:0;font-size:13px}
.cps-invite-avatar.is-sm{width:22px;height:22px;font-size:11px}
.cps-invite-avatar.is-lg{width:44px;height:44px;font-size:17px}
.cps-invite-tree-main{display:flex;flex-direction:column;overflow:hidden}
.cps-itree-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #f0f0f0}
.cps-itree-path{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;color:#667282;min-width:0}
.cps-itree-path strong{font-size:16px;color:#262626;margin-right:4px}
.cps-itree-path-label{color:#8a94a6;margin-right:2px}
.cps-itree-sep{color:#c4cad3}
.cps-itree-stats{display:flex;gap:8px;flex-shrink:0}
.cps-itree-stats>div{min-width:84px;padding:6px 12px;border:1px solid #edf0f5;border-radius:6px;background:#fafbfc}
.cps-itree-stats span{display:block;font-size:12px;color:#8a94a6}
.cps-itree-stats strong{font-size:18px;color:#262626;font-variant-numeric:tabular-nums}
.cps-itree-body{flex:1;overflow:auto}
.cps-itree-table{width:100%;border-collapse:collapse;font-size:13px}
.cps-itree-table th{position:sticky;top:0;z-index:1;background:#fafbfc;color:#4b5565;font-weight:600;text-align:left;padding:10px 12px;border-bottom:1px solid #edf0f5;white-space:nowrap}
.cps-itree-table td{padding:8px 12px;border-bottom:1px solid #f2f4f7;color:#262626;white-space:nowrap}
.cps-itree-table .num{text-align:right;font-variant-numeric:tabular-nums}
.cps-itree-table tbody tr{cursor:pointer}
.cps-itree-table tbody tr:hover{background:#f7faff}
.cps-itree-table tbody tr.is-root{background:#fafbfc}
.cps-itree-table tbody tr.is-selected{background:#e6f4ff}
.cps-itree-name{display:flex;align-items:center;gap:8px;padding-left:calc(var(--depth) * 28px);position:relative}
.cps-itree-elbow{position:absolute;left:calc(var(--depth) * 28px - 18px);top:-8px;width:12px;height:24px;border-left:1px solid #c9d3df;border-bottom:1px solid #c9d3df;border-bottom-left-radius:4px}
.cps-itree-text{display:flex;align-items:baseline;gap:8px}
.cps-itree-text em{font-style:normal;font-size:12px;color:#8a94a6}
.cps-itree-level{font-size:12px;color:#667282}
.cps-invite-tree-detail{padding:16px;display:flex;flex-direction:column;gap:14px}
.cps-idetail-head{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid #f0f0f0}
.cps-idetail-head h3{margin:0 0 6px;font-size:16px;font-weight:600}
.cps-idetail-tags{display:flex;gap:6px;flex-wrap:wrap}
.cps-invite-detail-dl dd{display:flex;align-items:center}
.cps-idetail-wallet{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cps-idetail-wallet>div{padding:10px 12px;border:1px solid #edf0f5;border-radius:6px;background:#fafbfc}
.cps-idetail-wallet span{display:block;font-size:12px;color:#8a94a6}
.cps-idetail-wallet strong{font-size:15px;font-variant-numeric:tabular-nums}
.cps-idetail-rule{padding-top:12px;border-top:1px solid #f0f0f0}
.cps-idetail-rule h4{margin:0 0 8px;font-size:13px;font-weight:600;color:#262626}
.cps-idetail-rule p{display:flex;justify-content:space-between;margin:0 0 6px;font-size:13px;color:#262626}
.cps-idetail-rule p span{color:#8a94a6}
.cps-idetail-more{margin-top:auto;font-size:13px;color:#1890ff;text-decoration:none}
@media(max-width:1280px){.cps-invite-tree-layout{grid-template-columns:200px minmax(0,1fr) 260px}.cps-itree-stats>div{min-width:72px}}
/* 分佣SKU · 佣金配置：分区表单 */
.cps-skuc{display:flex;flex-direction:column;gap:0}
.cps-skuc-sec{padding:16px 0;border-bottom:1px solid #f0f2f5}
.cps-skuc-sec:first-child{padding-top:4px}
.cps-sku-comm-custom>.cps-skuc-sec:last-child,.cps-mode-pane:last-of-type .cps-skuc-sec:last-child{border-bottom:0}
.cps-skuc-title{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:14px;font-weight:600;color:#1f2937}
.cps-skuc-title:before{content:'';width:3px;height:14px;border-radius:2px;background:#1890ff}
.cps-skuc-mode .d-field{display:block;margin:0}
.cps-skuc-mode .d-field>span:first-child{display:none}
.cps-skuc-empty{margin:10px 0 0;font-size:13px;color:#8a94a6}
.cps-skuc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}
.cps-skuc-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.cps-skuc-flabel{font-size:13px;color:#4b5565}
.cps-skuc-flabel i{font-style:normal;color:#d6453d}
.cps-skuc-field .d-input{width:100%;height:32px}
.cps-skuc-field .cps-rate-cell{display:flex;align-items:center;width:100%}
.cps-skuc-field .cps-rate-cell .d-input{flex:1;border-top-right-radius:0;border-bottom-right-radius:0}
.cps-skuc-field .cps-rate-unit{flex-shrink:0;height:32px;min-width:36px;padding:0 10px;display:grid;place-items:center;border:1px solid var(--line,#d9dee6);border-left:0;border-radius:0 4px 4px 0;background:#f7f8fa;color:#667282;font-size:12px;box-sizing:border-box}
.cps-skuc-hint{font-style:normal;font-size:12px;color:#8a94a6}
.cps-skuc .cps-rate-table-wrap{width:100%;border:1px solid #edf0f5;border-radius:6px;overflow:hidden}
.cps-skuc .cps-rate-table{width:100%;border-collapse:collapse;font-size:13px}
.cps-skuc .cps-rate-table th,.cps-skuc .cps-rate-table td{padding:8px 12px;border-bottom:1px solid #f2f4f7;text-align:left;font-weight:400}
.cps-skuc .cps-rate-table thead th{background:#fafbfc;color:#4b5565;font-weight:600}
.cps-skuc .cps-rate-table tbody tr:last-child>*{border-bottom:0}
.cps-skuc .cps-rate-table th[scope=row]{width:30%}
.cps-skuc .cps-rate-table .cps-rate-cell{display:flex;align-items:center;max-width:180px}
.cps-skuc .cps-rate-table .cps-rate-cell .d-input{flex:1;height:30px;border-top-right-radius:0;border-bottom-right-radius:0}
.cps-skuc .cps-rate-table .cps-rate-unit{height:30px;min-width:32px;display:grid;place-items:center;border:1px solid var(--line,#d9dee6);border-left:0;border-radius:0 4px 4px 0;background:#f7f8fa;color:#667282;font-size:12px;box-sizing:border-box}
.cps-skuc-summary{margin-top:14px;display:flex;flex-direction:column;gap:12px}
.cps-skuc-kv{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cps-skuc-kv>div{padding:10px 12px;border:1px solid #edf0f5;border-radius:6px;background:#fafbfc}
.cps-skuc-kv span{display:block;font-size:12px;color:#8a94a6}
.cps-skuc-kv strong{font-size:14px;color:#1f2937}
.cps-skuc-foot{margin:0;font-size:12px;color:#8a94a6}
@media(max-width:720px){.cps-skuc-grid,.cps-skuc-kv{grid-template-columns:1fr 1fr}}
.overlay.system-cps .cps-skuc .cps-rate-table{max-width:none;table-layout:fixed}
.overlay.system-cps .cps-skuc .cps-rate-cell{justify-content:flex-start;gap:0}
.overlay.system-cps .cps-skuc .cps-rate-cell .d-input{width:auto;flex:1;min-width:0;height:32px;text-align:left}
.overlay.system-cps .cps-skuc .cps-rate-table .cps-rate-cell .d-input{height:30px}
.overlay.system-cps .cps-skuc .cps-rate-unit{font-size:12px}
.overlay.system-cps .cps-skuc .cps-rate-table th,.overlay.system-cps .cps-skuc .cps-rate-table td{text-align:left}
