/* ============================================================
 * admin-viewport-fixed.css
 * 全站固定视口：后台界面整体不出现浏览器滚动条，
 * 内容超出时只在内容框（section）内部滚动。
 * 依赖结构：body > .container > (aside.sidebar + main.main-content)
 * 说明：用 !important 压过各页面内联 <style> 里的 fit 规则。
 * ============================================================ */

html,
body {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  overscroll-behavior: none;
}

body > .container {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

.main-content {
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 顶部标题栏固定，不参与滚动 */
.main-content > .main-header {
  flex: 0 0 auto !important;
  position: relative !important;
  top: auto !important;
}

/* 内容区：吃满剩余高度，超出部分在自己框里滚 */
.main-content > section.section {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  padding-bottom: 10px;
}

/* 已做 100vh 适配的页面（订单/支付/数据库等）自带高度计算，
   这里不再拉伸它，只兜住上限，避免把外层撑出滚动条 */
.main-content[class*="-fit"] > section.section {
  flex: 0 0 auto !important;
  max-height: 100%;
}

/* 数据看板：右侧不显示滚动条（看板不是表格，滚动条出现在卡片右侧很难看）。
   只隐藏滚动条本身，滚动能力保留，鼠标滚轮/触控板照常可滚。
   无条件生效（不挂 .active）：刷新瞬间 section 还没挂 active class，
   挂条件会闪现滚动条；#overview id 唯一，非激活时本来就不可见，无条件隐藏无副作用。 */
#overview {
  scrollbar-width: none !important;      /* Firefox */
  -ms-overflow-style: none !important;   /* 旧 Edge / IE */
}

#overview::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* ===================================================================
   全站「四个统计卡片」统一规格  20261106cardunify
   基准：数据看板 #overview 的 .stat-card —— 284×113、内边距 16/16/16/28、
         图标 54×54 圆角 16、数值 24px/700、标签 12px/600、图文间距 28px。
   覆盖：应用管理 / 支付监控 / 内部接口监控 / 合伙人管理 / 超级守护 /
         版本管理 / 数据库概览。
   排除：#overview（本身就是基准，内部是 dashboard-stat-layout 双栏结构）
         #ai-model（模型监控卡片含"较昨日"第三行，内部结构单独定稿）
   只统一尺寸与排版，业务内容、主题色、图标各自保留。
   =================================================================== */
/* 20261107 statfmt1：统一改为数据看板 dashboard-stat-layout 双栏版式的卡片，
   跳出本块的两栏网格（:has 直接子代判定），避免 54px 列挤压双栏结构（2026-11-08 统一为 48px，与数据看板一致） */
.section:not(#overview):not(#ai-model) .stat-card:not(:has(> .dashboard-stat-layout)) {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 28px !important;
  row-gap: 0 !important;
  min-height: 113px !important;
  padding: 16px 16px 16px 28px !important;
  border-radius: 14px !important;
  box-sizing: border-box;
}

.section:not(#overview):not(#ai-model) .stat-card .stat-icon,
.section:not(#overview):not(#ai-model) .stat-card .stat-card-icon,
.section:not(#overview):not(#ai-model) .stat-card .monitoring-stat-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  justify-self: start !important;
}

.section:not(#overview):not(#ai-model) .stat-card .stat-icon > svg,
.section:not(#overview):not(#ai-model) .stat-card .stat-card-icon > svg,
.section:not(#overview):not(#ai-model) .stat-card .monitoring-stat-icon > svg {
  width: 26px !important;
  height: 26px !important;
}

.section:not(#overview):not(#ai-model) .stat-card .stat-content,
.section:not(#overview):not(#ai-model) .stat-card .stat-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  text-align: center !important;
  justify-self: start !important;
}

.section:not(#overview):not(#ai-model) .stat-card .stat-value {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em !important;
  font-variant-numeric: tabular-nums lining-nums;
}

.section:not(#overview):not(#ai-model) .stat-card .stat-label {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

/* 应用管理：标签栏外层容器与内部 .member-management-shell 各带 8px 下边距，
   叠加后总间距 16px，比其他页面（标签框底 → 卡片 8px）多出 8px，
   导致下方四个卡片整体偏低。外层那 8px 在这里归零；
   内层那 8px 是 index.html 的 applyToolbarStyle() 写的内联 !important（CSS 压不动），
   已在那个函数里对共享标签栏单独归零。最终间距 8px，与全站一致。 */
#applicationManagementSharedTabsShell {
  margin-bottom: 0 !important;
}

/* 登录管理：四个统计卡片用的是独立类名（login-stat-*），此前漏改，
   20261107 statfmt2 并入全站统一 dashboard-stat-layout 版式：
   固定浅色底 + 113px 高 + 角标右上角，与数据看板/其他页完全一致。 */
.login-stats-grid {
  column-gap: 12px !important;
}

#login .login-stat-card {
  position: relative;
  display: block !important;
  height: 113px !important;
  min-height: 113px !important;
  max-height: 113px !important;
  padding: 16px !important;
  overflow: visible !important;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fdfeff 0%, #f6f8fc 100%) !important;
  background-image: linear-gradient(180deg, #fdfeff 0%, #f6f8fc 100%) !important;
  border: 1px solid rgba(148, 158, 178, 0.22) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

html[data-admin-dark="1"] #login .login-stat-card {
  border-color: rgba(128, 142, 170, 0.42) !important;
}

#login .login-stat-card .login-stat-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  margin: 0 auto !important;
  flex-shrink: 0 !important;
}

#login .login-stat-card .login-stat-icon > svg {
  width: 26px !important;
  height: 26px !important;
}

#login .login-stat-card .stat-card-label {
  color: #253347 !important;
  font-size: var(--admin-stat-label-size, 14px) !important;
  white-space: var(--admin-stat-text-wrap, nowrap) !important;
}

#login .login-stat-card .dashboard-stat-number {
  color: #253347 !important;
  font-size: 22px !important;
  white-space: nowrap !important;
}

#login .login-stat-card .dashboard-stat-compare,
#login .login-stat-card .dashboard-stat-trend {
  color: #5f6b81 !important;
  font-size: 12px !important;
  white-space: var(--admin-stat-text-wrap, nowrap) !important;
}

#login .login-stat-card .dashboard-stat-trend.up {
  color: #dc2626 !important;
}

#login .login-stat-card .dashboard-stat-trend.down {
  color: #059669 !important;
}

#login .login-stat-card .dashboard-stat-layout {
  grid-template-columns: var(--admin-stat-media-col, 122px) minmax(0, 1fr) !important;
  column-gap: 16px !important;
}

#login .login-stat-card .dashboard-stat-media {
  min-width: var(--admin-stat-media-min, 128px) !important;
}

#login .login-stat-card .stat-tip-icon {
  position: absolute !important;
  z-index: 1500 !important;
}

/* AI 客服：从消息管理里打开时，main-content 带 *-fit 类，
   上面那条「-fit 页面不拉伸 section」会把它一起按内容高度处理，
   结果知识库那张卡片塌成一行文字的高度（原来应撑满到页面底部）。
   这里单独把 #ai-cs 恢复成吃满剩余高度，内部 .pane / .card 的 flex 链就能正常撑开。 */
.main-content > section#ai-cs.section,
.main-content > section#ai-cs.section.active,
section#ai-cs.section.active {
  flex: 1 1 auto !important;
  max-height: none !important;
  min-height: 0 !important;
  height: auto !important;
}

/* AI 客服的实际父级是 #mcAiCsWrap（消息管理卡片体里的一个 div），
   它是 block、按内容撑高，导致里面再撑也只到内容高度。
   把它改成吃满卡片体的 flex 容器，卡片才能一路撑到底。 */
/* 注意：这里不能写 display:flex —— 退出 AI 客服时脚本是用内联 display:none 隐藏它的，
   强写 display 会把它又显示出来。只吃高度，显示/隐藏仍交给脚本。 */
#mcAiCsWrap {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

#mcAiCsWrap > section#ai-cs.section {
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* 数据看板四卡片的圆角此前是 12，与其余页面（14）不一致，这里统一到 14。
   只改圆角，卡片内容、配色、主题不变。 */
#overview .stat-card,
#overview .stat-card[data-theme] {
  border-radius: 14px !important;
}

/* ============================================================
   趋势图 ECharts 化（模型监控同款）：ECharts 会在 .monitoring-echarts-dom
   里自建内部 canvas，旧的 canvas 尺寸规则（height:0!important + flex 拉伸）
   会把这个内部 canvas 压成 0 高导致整图空白。这里统一让内部 canvas 铺满容器。
   ============================================================ */
#partner-overview .partner-overview-trend-charts .monitoring-echarts-dom canvas,
#payment .payment-monitoring-charts .chart-card .monitoring-echarts-dom canvas,
#login .login-monitoring-charts .chart-card .monitoring-echarts-dom canvas,
#superGuardViewPane-overview .super-guard-trend-card .monitoring-echarts-dom canvas,
#api #call-stats .monitoring-realtime-panel .chart-card .monitoring-echarts-dom canvas,
#dispatch-center .monitoring-realtime-panel .chart-card .monitoring-echarts-dom canvas,
#dispatch-center.section.active.dispatch-center-fit .monitoring-realtime-panel .chart-card .monitoring-echarts-dom canvas,
.chart-card .monitoring-echarts-dom canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  flex: none !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  transition: none !important;
  animation: none !important;
}

/* ========================================================================
   全站统计卡片图标：固定语义四色（与数据看板一致，不随主题变化）
   数据看板标准：蓝紫=次数/用户 #7b7bf2→#534ce7、青=数量/规模 #35bed7→#0898b8、
                红=金额/异常 #ef6060→#df2b2b、绿=健康/状态 #55d082→#1aad50
   ======================================================================== */
/* —— 蓝紫：次数 / 用户 / 应用 / 记录 —— */
.section .stat-icon--outbound-apps,
.section .stat-icon--call-volume,
.section .stat-icon--records,
.section .monitoring-stat-icon--calls,
.section .stat-icon--partner-users,
.section .login-stat-icon--today,
.section .super-guard-overview-icon--bruteforce {
  background: linear-gradient(180deg, #7b7bf2 0%, #534ce7 100%) !important;
  background-image: linear-gradient(180deg, #7b7bf2 0%, #534ce7 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
/* —— 青：数量 / 终端 / 规模 / 订单 —— */
.section .stat-icon--terminal-count,
.section .stat-icon--desktop-apps,
.section .stat-icon--mobile-apps,
.section .stat-icon--tables,
.section .stat-icon--storage,
.section .stat-icon--partner-orders,
.section .monitoring-stat-icon--inbound-platform,
.section .login-stat-icon--users,
.section .super-guard-overview-icon--blocked {
  background: linear-gradient(180deg, #35bed7 0%, #0898b8 100%) !important;
  background-image: linear-gradient(180deg, #35bed7 0%, #0898b8 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
/* —— 红：金额 / 佣金 / 异常 —— */
.section .monitoring-stat-icon--outbound,
.section .stat-icon--partner-commission,
.section .login-stat-icon--failed,
.section .super-guard-overview-icon--threats {
  background: linear-gradient(180deg, #ef6060 0%, #df2b2b 100%) !important;
  background-image: linear-gradient(180deg, #ef6060 0%, #df2b2b 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
/* —— 绿：健康 / 状态 / 成功 —— */
.section .monitoring-stat-icon--latency,
.section .stat-icon--partner-effective,
.section .stat-icon--connection,
.section .super-guard-overview-icon--score {
  background: linear-gradient(180deg, #55d082 0%, #1aad50 100%) !important;
  background-image: linear-gradient(180deg, #55d082 0%, #1aad50 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
/* 固定色图标内 SVG 统一白色线条（覆盖跟随主题的 icon-primary 等类） */
.section .stat-icon--outbound-apps svg [class], .section .stat-icon--call-volume svg [class],
.section .stat-icon--records svg [class], .section .monitoring-stat-icon--calls svg [class],
.section .stat-icon--partner-users svg [class], .section .login-stat-icon--today svg [class],
.section .super-guard-overview-icon--bruteforce svg [class],
.section .stat-icon--terminal-count svg [class], .section .stat-icon--desktop-apps svg [class],
.section .stat-icon--mobile-apps svg [class], .section .stat-icon--tables svg [class],
.section .stat-icon--storage svg [class], .section .stat-icon--partner-orders svg [class],
.section .monitoring-stat-icon--inbound-platform svg [class], .section .login-stat-icon--users svg [class],
.section .super-guard-overview-icon--blocked svg [class],
.section .monitoring-stat-icon--outbound svg [class], .section .stat-icon--partner-commission svg [class],
.section .login-stat-icon--failed svg [class], .section .super-guard-overview-icon--threats svg [class],
.section .monitoring-stat-icon--latency svg [class], .section .stat-icon--partner-effective svg [class],
.section .stat-icon--connection svg [class], .section .super-guard-overview-icon--score svg [class] {
  stroke: #fff !important;
}
.section .stat-icon--records svg .icon-core, .section .stat-icon--partner-users svg .icon-core,
.section .monitoring-stat-icon--calls svg .icon-core, .section .stat-icon--outbound-apps svg .icon-core,
.section .login-stat-icon--today svg .icon-core, .section .super-guard-overview-icon--bruteforce svg .icon-core,
.section .stat-icon--terminal-count svg .icon-core, .section .stat-icon--desktop-apps svg .icon-core,
.section .stat-icon--mobile-apps svg .icon-core, .section .stat-icon--tables svg .icon-core,
.section .stat-icon--storage svg .icon-core, .section .stat-icon--partner-orders svg .icon-core,
.section .monitoring-stat-icon--inbound-platform svg .icon-core, .section .login-stat-icon--users svg .icon-core,
.section .super-guard-overview-icon--blocked svg .icon-core,
.section .monitoring-stat-icon--outbound svg .icon-core, .section .stat-icon--partner-commission svg .icon-core,
.section .login-stat-icon--failed svg .icon-core, .section .super-guard-overview-icon--threats svg .icon-core,
.section .monitoring-stat-icon--latency svg .icon-core, .section .stat-icon--partner-effective svg .icon-core,
.section .stat-icon--connection svg .icon-core, .section .super-guard-overview-icon--score svg .icon-core {
  fill: #fff !important;
  stroke: #fff !important;
}
/* 固定色底上去掉跟随主题的发光装饰 */
.section .monitoring-stat-icon--calls::before, .section .monitoring-stat-icon--calls::after,
.section .monitoring-stat-icon--inbound-platform::before, .section .monitoring-stat-icon--inbound-platform::after,
.section .monitoring-stat-icon--outbound::before, .section .monitoring-stat-icon--outbound::after,
.section .monitoring-stat-icon--latency::before, .section .monitoring-stat-icon--latency::after {
  display: none !important;
}

/* ========================================================================
   全站统计卡片「整体背景」固定四色浅渐变（20261106 bgfix1）
   —— 与上方固定四色图标同一套修饰类映射：卡片背景跟着自己图标的色组走。
   数据看板同款：白 → 对应色淡染渐变 + 固定色边框，切换主题不再变化。
   蓝紫=次数/用户/应用/记录、青=数量/规模/订单、红=金额/异常、绿=健康/状态
   ======================================================================== */
/* —— 蓝紫（user） —— */
.stat-card:has(.stat-icon--outbound-apps),
.stat-card:has(.stat-icon--call-volume),
.stat-card:has(.stat-icon--records),
.stat-card:has(.monitoring-stat-icon--calls),
.stat-card:has(.stat-icon--partner-users),
.stat-card:has(.super-guard-overview-icon--bruteforce),
.login-stat-card:has(.login-stat-icon--today) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 247, 255, 0.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 247, 255, 0.98) 100%) !important;
  border-color: rgba(103, 101, 237, 0.22) !important;
  box-shadow: none !important;
}
/* —— 青（order） —— */
.stat-card:has(.stat-icon--terminal-count),
.stat-card:has(.stat-icon--desktop-apps),
.stat-card:has(.stat-icon--mobile-apps),
.stat-card:has(.stat-icon--tables),
.stat-card:has(.stat-icon--storage),
.stat-card:has(.stat-icon--partner-orders),
.stat-card:has(.monitoring-stat-icon--inbound-platform),
.login-stat-card:has(.login-stat-icon--users) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 252, 253, 0.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 252, 253, 0.98) 100%) !important;
  border-color: rgba(53, 190, 215, 0.24) !important;
  box-shadow: none !important;
}
/* —— 红（revenue） —— */
.stat-card:has(.monitoring-stat-icon--outbound),
.stat-card:has(.stat-icon--partner-commission),
.stat-card:has(.super-guard-overview-icon--threats),
.login-stat-card:has(.login-stat-icon--failed) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.98) 100%) !important;
  border-color: rgba(233, 96, 96, 0.22) !important;
  box-shadow: none !important;
}
/* —— 绿（creation） —— */
.stat-card:has(.monitoring-stat-icon--latency),
.stat-card:has(.stat-icon--partner-effective),
.stat-card:has(.stat-icon--connection),
.stat-card:has(.super-guard-overview-icon--score) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 253, 248, 0.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 253, 248, 0.98) 100%) !important;
  border-color: rgba(85, 208, 130, 0.24) !important;
  box-shadow: none !important;
}
/* 卡片内数值/标题固定色（逐色照抄数据看板 style-01.css） */
.stat-card:has(.stat-icon--outbound-apps) .stat-value, .stat-card:has(.stat-icon--outbound-apps) .login-stat-value,
.stat-card:has(.stat-icon--call-volume) .stat-value, .stat-card:has(.stat-icon--call-volume) .login-stat-value,
.stat-card:has(.stat-icon--records) .stat-value, .stat-card:has(.stat-icon--records) .login-stat-value,
.stat-card:has(.monitoring-stat-icon--calls) .stat-value, .stat-card:has(.monitoring-stat-icon--calls) .login-stat-value,
.stat-card:has(.stat-icon--partner-users) .stat-value, .stat-card:has(.stat-icon--partner-users) .login-stat-value,
.stat-card:has(.super-guard-overview-icon--bruteforce) .stat-value,
.login-stat-card:has(.login-stat-icon--today) .login-stat-value {
  color: #312e81 !important;
}
.stat-card:has(.stat-icon--outbound-apps) .stat-label, .stat-card:has(.stat-icon--outbound-apps) .login-stat-label,
.stat-card:has(.stat-icon--call-volume) .stat-label, .stat-card:has(.stat-icon--call-volume) .login-stat-label,
.stat-card:has(.stat-icon--records) .stat-label, .stat-card:has(.stat-icon--records) .login-stat-label,
.stat-card:has(.monitoring-stat-icon--calls) .stat-label, .stat-card:has(.monitoring-stat-icon--calls) .login-stat-label,
.stat-card:has(.stat-icon--partner-users) .stat-label, .stat-card:has(.stat-icon--partner-users) .login-stat-label,
.stat-card:has(.super-guard-overview-icon--bruteforce) .stat-label,
.login-stat-card:has(.login-stat-icon--today) .login-stat-label {
  color: #4338ca !important;
}
.stat-card:has(.stat-icon--terminal-count) .stat-value, .stat-card:has(.stat-icon--desktop-apps) .stat-value,
.stat-card:has(.stat-icon--mobile-apps) .stat-value, .stat-card:has(.stat-icon--tables) .stat-value,
.stat-card:has(.stat-icon--storage) .stat-value, .stat-card:has(.stat-icon--partner-orders) .stat-value,
.stat-card:has(.monitoring-stat-icon--inbound-platform) .stat-value,
.login-stat-card:has(.login-stat-icon--users) .login-stat-value {
  color: #0f5f79 !important;
}
.stat-card:has(.stat-icon--terminal-count) .stat-label, .stat-card:has(.stat-icon--desktop-apps) .stat-label,
.stat-card:has(.stat-icon--mobile-apps) .stat-label, .stat-card:has(.stat-icon--tables) .stat-label,
.stat-card:has(.stat-icon--storage) .stat-label, .stat-card:has(.stat-icon--partner-orders) .stat-label,
.stat-card:has(.monitoring-stat-icon--inbound-platform) .stat-label,
.login-stat-card:has(.login-stat-icon--users) .login-stat-label {
  color: #0f7770 !important;
}
.stat-card:has(.monitoring-stat-icon--outbound) .stat-value, .stat-card:has(.stat-icon--partner-commission) .stat-value,
.stat-card:has(.super-guard-overview-icon--threats) .stat-value,
.login-stat-card:has(.login-stat-icon--failed) .login-stat-value {
  color: #991b1b !important;
}
.stat-card:has(.monitoring-stat-icon--outbound) .stat-label, .stat-card:has(.stat-icon--partner-commission) .stat-label,
.stat-card:has(.super-guard-overview-icon--threats) .stat-label,
.login-stat-card:has(.login-stat-icon--failed) .login-stat-label {
  color: #ba1d1d !important;
}
.stat-card:has(.monitoring-stat-icon--latency) .stat-value, .stat-card:has(.stat-icon--partner-effective) .stat-value,
.stat-card:has(.stat-icon--connection) .stat-value,
.stat-card:has(.super-guard-overview-icon--score) .stat-value {
  color: #166534 !important;
}
.stat-card:has(.monitoring-stat-icon--latency) .stat-label, .stat-card:has(.stat-icon--partner-effective) .stat-label,
.stat-card:has(.stat-icon--connection) .stat-label,
.stat-card:has(.super-guard-overview-icon--score) .stat-label {
  color: #15803d !important;
}

/* ========================================================================
   20261106 bgfix2：
   1) 彻底移除统计卡片的悬停变色反馈（::before 主题色渐变层 + 图标悬停抬升阴影）
   2) 用 ID 级选择器重写固定四色卡片背景，压过 #app-versions 等页面的
      background:var(--admin-panel-surface)!important
   3) 数据库管理 / 版本管理（database-stat-icon--*）图标纳入固定四色体系
   ======================================================================== */
/* —— 1) 移除悬停颜色反馈：杀掉共享渐变层（display:none 不参与 content 之争，必胜） —— */
body #database .database-overview-stat-card::before,
body #app-versions .database-overview-stat-card::before,
body #api #call-stats .monitoring-realtime-panel .monitoring-stats-compact .stat-card::before,
body #dispatch-center .monitoring-realtime-panel .monitoring-stats-compact .stat-card::before,
body #payment .payment-monitoring-stats .stat-card::before,
body .login-stat-card::before,
body .security-stat-card::before,
body #super-guard .super-guard-overview-stats .stat-card::before,
body #partner-overview .stats-grid .stat-card::before {
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}
/* —— 悬停时图标抬升 + 主题色阴影一并移除 —— */
body #database .database-overview-stat-card:hover > .database-stat-icon,
body #app-versions .database-overview-stat-card:hover > .database-stat-icon,
body #api #call-stats .monitoring-realtime-panel .monitoring-stats-compact .stat-card:hover > .monitoring-stat-icon,
body #dispatch-center .monitoring-realtime-panel .monitoring-stats-compact .stat-card:hover > .monitoring-stat-icon,
body #payment .payment-monitoring-stats .stat-card:hover > .monitoring-stat-icon,
body .security-stat-card:hover > .security-stat-icon,
body #super-guard .super-guard-overview-stats .stat-card:hover .super-guard-overview-icon,
body #partner-overview .stats-grid .stat-card:hover > .stat-icon {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* —— 2) ID 级固定四色卡片背景（蓝紫=次数/记录、青=数量/表/存储、红=异常/佣金、绿=健康/连接） —— */
/* 蓝紫 */
#api .stat-card:has(.monitoring-stat-icon--calls),
#payment .stat-card:has(.monitoring-stat-icon--calls),
#dispatch-center .stat-card:has(.monitoring-stat-icon--calls),
#super-guard .stat-card:has(.super-guard-overview-icon--bruteforce),
#partner-overview .stat-card:has(.stat-icon--partner-users),
#applications .stat-card:has(.stat-icon--outbound-apps),
#database .database-overview-stat-card:has(.database-stat-icon--records),
#app-versions .database-overview-stat-card:has(.database-stat-icon--records),
#login .login-stat-card:has(.login-stat-icon--today) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  border-color: rgba(103,101,237,.22) !important;
  box-shadow: none !important;
}
/* 青 */
#api .stat-card:has(.monitoring-stat-icon--inbound-platform),
#payment .stat-card:has(.monitoring-stat-icon--inbound-platform),
#dispatch-center .stat-card:has(.monitoring-stat-icon--inbound-platform),
#super-guard .stat-card:has(.super-guard-overview-icon--blocked),
#partner-overview .stat-card:has(.stat-icon--partner-orders),
#applications .stat-card:has(.stat-icon--terminal-count),
#applications .stat-card:has(.stat-icon--desktop-apps),
#applications .stat-card:has(.stat-icon--mobile-apps),
#database .database-overview-stat-card:has(.database-stat-icon--tables),
#database .database-overview-stat-card:has(.database-stat-icon--storage),
#app-versions .database-overview-stat-card:has(.database-stat-icon--tables),
#app-versions .database-overview-stat-card:has(.database-stat-icon--storage),
#login .login-stat-card:has(.login-stat-icon--users) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  border-color: rgba(53,190,215,.24) !important;
  box-shadow: none !important;
}
/* 红 */
#api .stat-card:has(.monitoring-stat-icon--outbound),
#payment .stat-card:has(.monitoring-stat-icon--outbound),
#dispatch-center .stat-card:has(.monitoring-stat-icon--outbound),
#super-guard .stat-card:has(.super-guard-overview-icon--threats),
#partner-overview .stat-card:has(.stat-icon--partner-commission),
#login .login-stat-card:has(.login-stat-icon--failed) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  border-color: rgba(233,96,96,.22) !important;
  box-shadow: none !important;
}
/* 绿 */
#api .stat-card:has(.monitoring-stat-icon--latency),
#payment .stat-card:has(.monitoring-stat-icon--latency),
#dispatch-center .stat-card:has(.monitoring-stat-icon--latency),
#super-guard .stat-card:has(.super-guard-overview-icon--score),
#partner-overview .stat-card:has(.stat-icon--partner-effective),
#database .database-overview-stat-card:has(.database-stat-icon--connection),
#app-versions .database-overview-stat-card:has(.database-stat-icon--connection) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  border-color: rgba(85,208,130,.24) !important;
  box-shadow: none !important;
}
/* 数据库管理 / 版本管理卡片文字固定色 */
#database .database-overview-stat-card:has(.database-stat-icon--records) .stat-value,
#app-versions .database-overview-stat-card:has(.database-stat-icon--records) .stat-value { color:#312e81 !important; }
#database .database-overview-stat-card:has(.database-stat-icon--records) .stat-label,
#app-versions .database-overview-stat-card:has(.database-stat-icon--records) .stat-label { color:#4338ca !important; }
#database .database-overview-stat-card:has(.database-stat-icon--tables) .stat-value,
#database .database-overview-stat-card:has(.database-stat-icon--storage) .stat-value,
#app-versions .database-overview-stat-card:has(.database-stat-icon--tables) .stat-value,
#app-versions .database-overview-stat-card:has(.database-stat-icon--storage) .stat-value { color:#0f5f79 !important; }
#database .database-overview-stat-card:has(.database-stat-icon--tables) .stat-label,
#database .database-overview-stat-card:has(.database-stat-icon--storage) .stat-label,
#app-versions .database-overview-stat-card:has(.database-stat-icon--tables) .stat-label,
#app-versions .database-overview-stat-card:has(.database-stat-icon--storage) .stat-label { color:#0f7770 !important; }
#database .database-overview-stat-card:has(.database-stat-icon--connection) .stat-value,
#app-versions .database-overview-stat-card:has(.database-stat-icon--connection) .stat-value { color:#166534 !important; }
#database .database-overview-stat-card:has(.database-stat-icon--connection) .stat-label,
#app-versions .database-overview-stat-card:has(.database-stat-icon--connection) .stat-label { color:#15803d !important; }

/* —— 3) 数据库管理 / 版本管理图标纳入固定四色（覆盖 #database .database-stat-icon 主题样式） —— */
body #database .database-stat-icon--records,
body #app-versions .database-stat-icon--records {
  background: linear-gradient(180deg, #7b7bf2 0%, #534ce7 100%) !important;
  background-image: linear-gradient(180deg, #7b7bf2 0%, #534ce7 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
body #database .database-stat-icon--tables,
body #database .database-stat-icon--storage,
body #app-versions .database-stat-icon--tables,
body #app-versions .database-stat-icon--storage {
  background: linear-gradient(180deg, #35bed7 0%, #0898b8 100%) !important;
  background-image: linear-gradient(180deg, #35bed7 0%, #0898b8 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
body #database .database-stat-icon--connection,
body #app-versions .database-stat-icon--connection {
  background: linear-gradient(180deg, #55d082 0%, #1aad50 100%) !important;
  background-image: linear-gradient(180deg, #55d082 0%, #1aad50 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}
/* 图标自身的主题发光装饰一并隐藏 */
body #database .database-stat-icon::before,
body #database .database-stat-icon::after,
body #app-versions .database-stat-icon::before,
body #app-versions .database-stat-icon::after {
  display: none !important;
}
body #database .database-stat-icon svg [class],
body #app-versions .database-stat-icon svg [class] {
  stroke: #fff !important;
}
body #database .database-stat-icon svg .icon-core,
body #app-versions .database-stat-icon svg .icon-core {
  fill: #fff !important;
  stroke: #fff !important;
}

/* ========================================================================
   20261106 bgfix3：API 管理 + 合伙人管理（概览/调度中心）固定四色背景
   style-04 的 #api #call-stats ... {background:var(--api-standard-card-bg)!important}
   与 style-03 的 #distribution...#partner-overview ... {background:var(--admin-panel-surface)!important}
   优先级更高，之前压住了固定色。这里镜像其选择器结构并加 :has 色组，必胜。
   ======================================================================== */
/* —— API 管理 · 调用量统计四卡片 —— */
#api #call-stats .monitoring-realtime-panel .monitoring-stats-compact .stat-card:has(.monitoring-stat-icon--calls) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  border-color: rgba(103,101,237,.22) !important;
  box-shadow: none !important;
}
#api #call-stats .monitoring-realtime-panel .monitoring-stats-compact .stat-card:has(.monitoring-stat-icon--inbound-platform) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  border-color: rgba(53,190,215,.24) !important;
  box-shadow: none !important;
}
#api #call-stats .monitoring-realtime-panel .monitoring-stats-compact .stat-card:has(.monitoring-stat-icon--outbound) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  border-color: rgba(233,96,96,.22) !important;
  box-shadow: none !important;
}
#api #call-stats .monitoring-realtime-panel .monitoring-stats-compact .stat-card:has(.monitoring-stat-icon--latency) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  border-color: rgba(85,208,130,.24) !important;
  box-shadow: none !important;
}
/* —— 合伙人管理 · 合伙人概览四卡片 —— */
#distribution:has(#partner-overview) #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-users) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  border-color: rgba(103,101,237,.22) !important;
  box-shadow: none !important;
}
#distribution:has(#partner-overview) #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-orders) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  border-color: rgba(53,190,215,.24) !important;
  box-shadow: none !important;
}
#distribution:has(#partner-overview) #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-commission) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  border-color: rgba(233,96,96,.22) !important;
  box-shadow: none !important;
}
#distribution:has(#partner-overview) #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-effective) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  border-color: rgba(85,208,130,.24) !important;
  box-shadow: none !important;
}
/* —— 合伙人管理 · 调度中心（dispatch-center 面板，JS 动态渲染） —— */
#dispatch-center .monitoring-realtime-panel .monitoring-stats-compact .stat-card:has(.monitoring-stat-icon--calls) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  border-color: rgba(103,101,237,.22) !important;
  box-shadow: none !important;
}
#dispatch-center .monitoring-realtime-panel .monitoring-stats-compact .stat-card:has(.monitoring-stat-icon--inbound-platform) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  border-color: rgba(53,190,215,.24) !important;
  box-shadow: none !important;
}
#dispatch-center .monitoring-realtime-panel .monitoring-stats-compact .stat-card:has(.monitoring-stat-icon--outbound) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  border-color: rgba(233,96,96,.22) !important;
  box-shadow: none !important;
}
#dispatch-center .monitoring-realtime-panel .monitoring-stats-compact .stat-card:has(.monitoring-stat-icon--latency) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  border-color: rgba(85,208,130,.24) !important;
  box-shadow: none !important;
}

/* ========================================================================
   20261106 bgfix4：合伙人管理概览——style-03 的 :has 变体优先级高达 (3,6,0)，
   这里完整镜像其两个变体选择器再叠加色组 :has，达到 (3,7,0)/(2,5,0) 必胜。
   ======================================================================== */
#distribution.section.active:has(> #partner-overview.partner-tab-content.active) #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-users),
#distribution.section.active.distribution-overview-fit #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-users) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  border-color: rgba(103,101,237,.22) !important;
  box-shadow: none !important;
}
#distribution.section.active:has(> #partner-overview.partner-tab-content.active) #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-orders),
#distribution.section.active.distribution-overview-fit #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-orders) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  border-color: rgba(53,190,215,.24) !important;
  box-shadow: none !important;
}
#distribution.section.active:has(> #partner-overview.partner-tab-content.active) #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-commission),
#distribution.section.active.distribution-overview-fit #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-commission) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  border-color: rgba(233,96,96,.22) !important;
  box-shadow: none !important;
}
#distribution.section.active:has(> #partner-overview.partner-tab-content.active) #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-effective),
#distribution.section.active.distribution-overview-fit #partner-overview .stats-grid .stat-card:has(.stat-icon--partner-effective) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  border-color: rgba(85,208,130,.24) !important;
  box-shadow: none !important;
}

/* ========================================================================
   20261106 bgfix4-b：清除让卡片/图标发朦的公共装饰
   1) 超级守护/合伙人/应用/登录等固定色图标自带的主题径向光晕 ::before/::after
      （#super-guard .super-guard-overview-icon::before opacity 高达 0.92，
       叠在实色渐变图标上就是"朦朦胧胧"的来源）
   2) 卡片/图标上残留的 will-change 图层提升（易渲染发虚）
   ======================================================================== */
body #super-guard .super-guard-overview-icon::before,
body #super-guard .super-guard-overview-icon::after,
body .login-stat-icon::before,
body .login-stat-icon::after,
body .security-stat-icon::before,
body .security-stat-icon::after,
body .stat-icon--outbound-apps::before, body .stat-icon--outbound-apps::after,
body .stat-icon--call-volume::before, body .stat-icon--call-volume::after,
body .stat-icon--records::before, body .stat-icon--records::after,
body .stat-icon--partner-users::before, body .stat-icon--partner-users::after,
body .stat-icon--terminal-count::before, body .stat-icon--terminal-count::after,
body .stat-icon--desktop-apps::before, body .stat-icon--desktop-apps::after,
body .stat-icon--mobile-apps::before, body .stat-icon--mobile-apps::after,
body .stat-icon--tables::before, body .stat-icon--tables::after,
body .stat-icon--storage::before, body .stat-icon--storage::after,
body .stat-icon--partner-orders::before, body .stat-icon--partner-orders::after,
body .stat-icon--partner-commission::before, body .stat-icon--partner-commission::after,
body .stat-icon--partner-effective::before, body .stat-icon--partner-effective::after,
body .stat-icon--connection::before, body .stat-icon--connection::after {
  content: none !important;
  display: none !important;
}
/* 卡片本身：关掉一切可能造成发虚的图层提升/滤镜/透明度 */
body #super-guard .super-guard-overview-stats .stat-card,
body #api #call-stats .monitoring-realtime-panel .monitoring-stats-compact .stat-card,
body #dispatch-center .monitoring-realtime-panel .monitoring-stats-compact .stat-card,
body #payment .payment-monitoring-stats .stat-card,
body #super-guard .super-guard-overview-stats .stat-card > .super-guard-overview-media,
body #super-guard .super-guard-overview-stats .stat-card .super-guard-overview-icon,
body #api #call-stats .monitoring-realtime-panel .monitoring-stats-compact .stat-card > .monitoring-stat-icon,
body #dispatch-center .monitoring-realtime-panel .monitoring-stats-compact .stat-card > .monitoring-stat-icon,
body #payment .payment-monitoring-stats .stat-card > .monitoring-stat-icon {
  backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
  will-change: auto !important;
  transform: none !important;
}

/* ========================================================================
   20261106 bgfix5：API管理/调度中心 + 超级守护「图标朦胧」根治
   style-04 的 #api #call-stats ... .monitoring-stat-icon（双ID, 2,2,0）主题半透明
   背景 + ::before 光晕 + ::after 内层渐变，压过了之前 .section 类级杀层规则；
   style-06 的 #super-guard .super-guard-overview-icon（1,1,0）同理。
   这里镜像其选择器 + body 前缀反超，图标改固定四色实底渐变 + 白 SVG。
   ======================================================================== */
/* —— API 管理 · 调用量统计 / 分发调度中心：杀图标光晕与内层渐变 —— */
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon::before,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon::before,
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon::after,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon::after {
  content: none !important;
  display: none !important;
}
/* —— 图标实色四色渐变（次数=蓝紫 / 入站=青 / 出站=红 / 耗时=绿） —— */
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon--calls,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon--calls {
  background: linear-gradient(180deg, #7b7bf2 0%, #534ce7 100%) !important;
  background-image: linear-gradient(180deg, #7b7bf2 0%, #534ce7 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  will-change: auto !important;
}
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon--inbound-platform,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon--inbound-platform {
  background: linear-gradient(180deg, #35bed7 0%, #0898b8 100%) !important;
  background-image: linear-gradient(180deg, #35bed7 0%, #0898b8 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  will-change: auto !important;
}
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon--outbound,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon--outbound {
  background: linear-gradient(180deg, #ef6060 0%, #df2b2b 100%) !important;
  background-image: linear-gradient(180deg, #ef6060 0%, #df2b2b 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  will-change: auto !important;
}
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon--latency,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon--latency {
  background: linear-gradient(180deg, #55d082 0%, #1aad50 100%) !important;
  background-image: linear-gradient(180deg, #55d082 0%, #1aad50 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  will-change: auto !important;
}
/* —— 上述两页图标 SVG 白线（镜像 style-04 的 .icon-* 规则） —— */
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon .icon-primary,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon .icon-primary,
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon .icon-pulse,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon .icon-pulse,
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon .icon-orbit,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon .icon-orbit {
  fill: none !important;
  stroke: #fff !important;
}
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon .icon-secondary,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon .icon-secondary {
  fill: none !important;
  stroke: rgba(255,255,255,.78) !important;
}
body #api #call-stats .monitoring-realtime-panel .monitoring-stat-icon .icon-core,
body #dispatch-center .monitoring-realtime-panel .monitoring-stat-icon .icon-core {
  fill: #fff !important;
  stroke: #fff !important;
}

/* —— 超级守护：图标实色四色渐变（爆破=蓝紫 / 拦截=青 / 威胁=红 / 评分=绿） —— */
body #super-guard .super-guard-overview-icon--bruteforce {
  background: linear-gradient(180deg, #7b7bf2 0%, #534ce7 100%) !important;
  background-image: linear-gradient(180deg, #7b7bf2 0%, #534ce7 100%) !important;
}
body #super-guard .super-guard-overview-icon--blocked {
  background: linear-gradient(180deg, #35bed7 0%, #0898b8 100%) !important;
  background-image: linear-gradient(180deg, #35bed7 0%, #0898b8 100%) !important;
}
body #super-guard .super-guard-overview-icon--threats {
  background: linear-gradient(180deg, #ef6060 0%, #df2b2b 100%) !important;
  background-image: linear-gradient(180deg, #ef6060 0%, #df2b2b 100%) !important;
}
body #super-guard .super-guard-overview-icon--score {
  background: linear-gradient(180deg, #55d082 0%, #1aad50 100%) !important;
  background-image: linear-gradient(180deg, #55d082 0%, #1aad50 100%) !important;
}
body #super-guard .super-guard-overview-icon {
  border: none !important;
  color: #fff !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  will-change: auto !important;
}
/* —— 超级守护图标 SVG 白线（镜像 style-06 的 .icon-* 规则） —— */
body #super-guard .super-guard-overview-icon .icon-primary,
body #super-guard .super-guard-overview-icon .icon-pulse,
body #super-guard .super-guard-overview-icon .icon-orbit {
  fill: none !important;
  stroke: #fff !important;
}
body #super-guard .super-guard-overview-icon .icon-secondary {
  fill: none !important;
  stroke: rgba(255,255,255,.78) !important;
}
body #super-guard .super-guard-overview-icon .icon-core {
  fill: #fff !important;
  stroke: #fff !important;
}
/* —— 超级守护卡片：ID 全前缀再压一次底色（保险） —— */
body #super-guard .super-guard-overview-stats .stat-card:has(.super-guard-overview-icon--bruteforce) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,247,255,.98) 100%) !important;
  border-color: rgba(103,101,237,.22) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}
body #super-guard .super-guard-overview-stats .stat-card:has(.super-guard-overview-icon--blocked) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,252,253,.98) 100%) !important;
  border-color: rgba(53,190,215,.24) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}
body #super-guard .super-guard-overview-stats .stat-card:has(.super-guard-overview-icon--threats) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,245,245,.98) 100%) !important;
  border-color: rgba(233,96,96,.22) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}
body #super-guard .super-guard-overview-stats .stat-card:has(.super-guard-overview-icon--score) {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,253,248,.98) 100%) !important;
  border-color: rgba(85,208,130,.24) !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

/* ========================================================================
   20261106 bgfix6：
   1) 全站趋势图面板（chart-card）固定纯白浅底，不再跟随主题
      （主题只染页面背景/侧栏/按钮等环境件，数据展示区任何主题下都亮色清晰）
   2) 图表标题固定深色（浅底配深字）
   3) 全站四卡片 + 趋势图卡片：悬停放大 + 阴影
   ======================================================================== */
/* —— 1) 面板固定浅色 —— */
body .chart-card,
/* 20261108 tone8：钉白规则只限白主题生效（原规则写于全站纯白时代，
   彩色/深色主题下把趋势图卡片钉成白色，与已跟主题的统计卡割裂） */
html[data-theme="light"] body .security-chart-card {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(148, 158, 178, 0.22) !important;
  box-shadow: none !important;
}
/* ID 级镜像（压过 style-03/style-04 的 ID 级主题背景规则） */
html[data-theme="light"] body #partner-overview .partner-overview-trend-charts .chart-card,
html[data-theme="light"] body #api #call-stats .monitoring-realtime-panel .chart-card,
html[data-theme="light"] body #dispatch-center .monitoring-realtime-panel .chart-card {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(148, 158, 178, 0.22) !important;
  box-shadow: none !important;
}
/* —— 2) 图表标题固定深色（白主题）—— */
html[data-theme="light"] body .chart-card h4,
html[data-theme="light"] body .chart-card .monitoring-chart-title-centered,
html[data-theme="light"] body .chart-header h4 {
  color: #253347 !important;
}
/* —— 2b) 非白主题：标题跟随主题文字色 —— */
html:not([data-theme="light"]) body .chart-card h4,
html:not([data-theme="light"]) body .chart-card .monitoring-chart-title-centered,
html:not([data-theme="light"]) body .chart-header h4 {
  color: var(--admin-panel-text-strong, #253347) !important;
}
/* —— 3) 悬停放大（四卡片 + 趋势图卡片）。阴影不在此处理，见文件末尾「阴影唯一通道」 —— */
body .stat-card,
body .chart-card,
body .login-stat-card,
body .security-stat-card,
body .database-overview-stat-card {
  transition: transform 0.2s ease !important;
}
body .stat-card:hover,
body .chart-card:hover,
body .login-stat-card:hover,
body .security-stat-card:hover,
body .database-overview-stat-card:hover {
  transform: translateY(-4px) scale(1.015) !important;
}
/* ID 级镜像：压过 bgfix4 里这几页卡片 transform:none!important 的清理规则 */
body #super-guard .super-guard-overview-stats .stat-card:hover,
body #payment .payment-monitoring-stats .stat-card:hover,
body #api #call-stats .monitoring-realtime-panel .monitoring-stats-compact .stat-card:hover,
body #dispatch-center .monitoring-realtime-panel .monitoring-stats-compact .stat-card:hover,
body #partner-overview .stats-grid .stat-card:hover,
body #database .database-overview-stat-card:hover,
body #app-versions .database-overview-stat-card:hover {
  transform: translateY(-4px) scale(1.015) !important;
}
/* 模型监控页镜像 */
body #aim-root .aim-monitor-panel .stat-card:hover,
body #aim-root .aim-monitor-panel .chart-card:hover {
  transform: translateY(-4px) scale(1.015) !important;
}

/* ========================================================================
   20261106 bgfix7：
   1) 面板底色改为「浅色」而非纯白：白 → 浅蓝灰淡染渐变（数据看板同款观感）
   2) 悬停补全：style-03/05 对支付监控/登录管理/合伙人概览/调度中心四页的
      .chart-card 用 ID 级 transform:none!important 压住了通用悬停规则，
      这里逐页镜像反超（正是"有的有悬停有的没有"的原因）
   ======================================================================== */
/* —— 1) 浅色面板（白 → 浅蓝灰淡染，仅白主题） —— */
html[data-theme="light"] body .chart-card,
html[data-theme="light"] body .security-chart-card,
html[data-theme="light"] body #partner-overview .partner-overview-trend-charts .chart-card,
html[data-theme="light"] body #dispatch-center .monitoring-realtime-panel .chart-card,
html[data-theme="light"] body #payment .payment-monitoring-charts .chart-card,
html[data-theme="light"] body #login .login-monitoring-charts .chart-card {
  background: linear-gradient(180deg, #fdfeff 0%, #f6f8fc 100%) !important;
  background-image: linear-gradient(180deg, #fdfeff 0%, #f6f8fc 100%) !important;
  border: 1px solid rgba(148, 158, 178, 0.22) !important;
  box-shadow: none !important;
}
/* —— 1b) 20261108 tone8：非白主题，趋势图卡片跟随主题面板（与统计卡同一套变量） —— */
html:not([data-theme="light"]) body .chart-card,
html:not([data-theme="light"]) body .security-chart-card,
html:not([data-theme="light"]) body #partner-overview .partner-overview-trend-charts .chart-card,
html:not([data-theme="light"]) body #dispatch-center .monitoring-realtime-panel .chart-card,
html:not([data-theme="light"]) body #payment .payment-monitoring-charts .chart-card,
html:not([data-theme="light"]) body #login .login-monitoring-charts .chart-card,
html:not([data-theme="light"]) body #api #call-stats .monitoring-realtime-panel .chart-card {
  background: var(--admin-panel-surface, #ffffff) !important;
  background-image: var(--admin-panel-surface-image, none) !important;
  border: 1px solid var(--admin-panel-border-soft, rgba(148, 158, 178, 0.22)) !important;
  box-shadow: none !important;
}
/* —— 2) 四页悬停镜像 + 基础过渡恢复 —— */
body #partner-overview .partner-overview-trend-charts .chart-card,
body #dispatch-center .monitoring-realtime-panel .chart-card,
body #payment .payment-monitoring-charts .chart-card,
body #login .login-monitoring-charts .chart-card {
  transition: transform 0.2s ease !important;
}

/* ========================================================================
   20261112 chartfill：趋势图「容器比卡片矮 → 下方留白」的硬兜底
   根因是 ECharts 容器 div 曾被写入创建那一刻的 px 高度（快照式定死），
   卡片之后被撑高时容器不跟随，图只占上半截。除了源码不再写死高度外，
   这里再用 !important 压掉可能残留的内联高度，强制容器吃满卡片剩余空间。
   只覆盖「本就声明为 flex 列」的登录/支付趋势卡，不影响其他页面版式。
   ======================================================================== */
body #login .login-monitoring-charts .chart-card,
body #payment .payment-monitoring-charts .chart-card {
  display: flex !important;
  flex-direction: column !important;
}
body #login .login-monitoring-charts .chart-card .monitoring-chart-header,
body #payment .payment-monitoring-charts .chart-card .monitoring-chart-header {
  flex: 0 0 auto !important;
}
body #login .login-monitoring-charts .chart-card .monitoring-echarts-dom,
body #payment .payment-monitoring-charts .chart-card .monitoring-echarts-dom {
  flex: 1 1 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

/* ========================================================================
   20261112 hoversync：趋势图卡片「悬停放大」全站统一点检修复
   style-05.css / style-03.css 里有三条 ID 级 + !important 的压制：
     #login .login-monitoring-charts .chart-card:hover{transform:none!important}
     #payment .payment-monitoring-charts .chart-card:hover{transform:none!important}
     #partner-overview .partner-overview-trend-charts .chart-card:hover{...}
   它们的特异性（1 id + 2 类 + 伪类）高于通用 `body .chart-card:hover`，
   所以登录监控/支付监控/合伙人概览三页共 6 张趋势图 hover 时纹丝不动，
   其余页面（数据看板/应用管理/API/超级守护/模型）正常 —— 正是「有的有、
   有的没有」的来源。这里按 bgfix7/bgfix8 的同一口径镜像反超：
   body + ID + 类 + :hover，特异性高于原规则，且书写在文件末尾靠后位置。
   ======================================================================== */
body #login .login-monitoring-charts .chart-card,
body #payment .payment-monitoring-charts .chart-card,
body #partner-overview .partner-overview-trend-charts .chart-card {
  transition: transform 0.2s ease !important;
}
body #login .login-monitoring-charts .chart-card:hover,
body #payment .payment-monitoring-charts .chart-card:hover,
body #partner-overview .partner-overview-trend-charts .chart-card:hover {
  transform: translateY(-4px) scale(1.015) !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 950 !important;
}

/* ========================================================================
   20261106 bgfix8：
   1) 卡片悬停补全：数据看板(global-interactive)/应用管理/合伙人概览的
      ID·多类级 transform:none!important 压制，逐个镜像反超
   2) 放大边缘不被遮挡：面板级容器 overflow 放开 + 悬停时抬高层级
      （注意：不动 .main-content/.section 滚动架构，只开面板级装饰容器）
   ======================================================================== */
/* —— 1) 卡片悬停镜像 —— */
body .stat-card.global-interactive:hover,
body .application-overview-stats .stat-card:hover,
body #distribution.section.active.distribution-overview-fit #partner-overview .stats-grid .stat-card:hover,
body #distribution.section.active:has(> #partner-overview.partner-tab-content.active) #partner-overview .stats-grid .stat-card:hover,
body #applications .application-overview-stats .stat-card:hover {
  transform: translateY(-4px) scale(1.015) !important;
}
/* —— 2) 悬停时抬高层级（压过相邻卡片/标签栏） —— */
body .stat-card:hover,
body .chart-card:hover,
body .login-stat-card:hover,
body .security-stat-card:hover,
body .database-overview-stat-card:hover {
  position: relative !important;
  z-index: 30 !important;
}
/* —— 3) 面板级容器放开裁剪（放大边缘完整显示；滚动架构 .main-content/.section 不动） —— */
body .stats-grid,
body .monitoring-charts,
body .monitoring-charts-compact,
body .super-guard-overview-stats,
body .payment-monitoring-stats,
body .payment-monitoring-charts,
body .login-monitoring-charts,
body .login-stat-cards,
body .partner-overview-trend-charts,
body .application-overview-stats,
body .charts-grid,
body #payment.section.active.payment-monitoring-fit .payment-monitoring-panel,
body #api #call-stats .monitoring-realtime-panel,
body #api.section.active.api-monitoring-fit #call-stats > .api-system-monitoring-content-shell.api-system-monitoring-body,
body #distribution.section.active:has(> #partner-overview.partner-tab-content.active) > #partner-overview.partner-tab-content.active > .card,
body #distribution.section.active:has(> #partner-overview.partner-tab-content.active) > #partner-overview.partner-tab-content.active > .card > .card-body {
  overflow: visible !important;
}

/* ========================================================================
   20261106 bgfix9：悬停「零遮挡」根治
   1) hover 卡片 z-index 提到 950：盖过顶部标签栏/头部（main-header 900）、
      dispatch-shell(20) 等一切内容层元素（弹窗/下拉/侧栏仍在其上不受影响）
   2) 关键：z-index 只在层叠上下文内有效——用 :has() 把悬停卡片的整条
      祖先容器链一起抬层（如 #api > .api-category-content-shell 只有 z-index:1，
      卡片 950 出不去就会被外层盖住），同时放开链上所有容器的裁剪
   3) 数据看板四张趋势图卡片（.card[data-theme]，带内联 overflow:hidden）
      此前不在 .chart-card 体系、没有悬停效果——补上
   ======================================================================== */
/* —— 1) hover 卡片最上层 —— */
body .stat-card:hover,
body .chart-card:hover,
body .login-stat-card:hover,
body .security-stat-card:hover,
body .database-overview-stat-card:hover {
  position: relative !important;
  z-index: 950 !important;
  transform: translateY(-4px) scale(1.015) !important;
}
/* —— 2) 整条祖先链抬层 + 放开裁剪（:has 特异性高于原 z-index:1/2 规则） —— */
body :is(.stats-grid, .charts-grid, .monitoring-charts, .monitoring-charts-compact,
  .card, .card-body, .monitoring-realtime-panel, .payment-monitoring-panel,
  .payment-monitoring-content-shell, .payment-monitoring-tab-panel, .payment-main-panel,
  .api-system-monitoring-tab-panel, .api-system-monitoring-content-shell, .api-system-monitoring-body,
  .partner-tab-content, .super-guard-overview-stack, .super-guard-view-pane, .super-guard-view-tabs,
  .super-guard-trend-card, .dashboard-page, .login-stat-cards, .login-monitoring-charts,
  .partner-overview-trend-charts, .application-overview-stats, .application-overview-charts,
  .super-guard-overview-stats, .monitoring-stats-compact, .super-guard-page-main):is(
  :has(.stat-card:hover), :has(.chart-card:hover), :has(.login-stat-card:hover),
  :has(.security-stat-card:hover), :has(.database-overview-stat-card:hover), :has(.card:hover)) {
  position: relative !important;
  z-index: 940 !important;
  overflow: visible !important;
}
/* API 页外层 shell（原 z-index:2/1，卡片被其层叠上下文困住）单独抬层 */
body #api > .api-category-shell:has(.stat-card:hover),
body #api > .api-category-shell:has(.chart-card:hover),
body #api > .api-category-content-shell:has(.stat-card:hover),
body #api > .api-category-content-shell:has(.chart-card:hover),
body #dispatch-center .dispatch-center-table-shell:has(.stat-card:hover),
body #dispatch-center .dispatch-center-table-shell:has(.chart-card:hover) {
  position: relative !important;
  z-index: 940 !important;
  overflow: visible !important;
}
/* —— 3) 数据看板四张趋势图卡片：悬停效果。
   注意：卡片自身必须保留圆角裁剪（overflow:hidden），否则内部图表 canvas
   方角会从圆角处露出来（"角被截断"观感）。卡片放大是 transform 作用于自身，
   不受自身 overflow 影响；悬停超出部分由外层 .charts-grid:has(.card:hover)
   的 overflow:visible 放行（见上方祖先链规则）。 —— */
body #overview .card[data-theme] {
  transition: transform 0.2s ease !important;
  overflow: hidden !important;
}
body #overview .card[data-theme]:hover {
  transform: translateY(-4px) scale(1.015) !important;
  position: relative !important;
  z-index: 950 !important;
}

/* ========================================================================
   20261106 bgfix10：悬停「全方向零裁剪」
   用户反馈上下左右放大都可能被旁边的背景截断。总根源：多个页面 section
   处于 overflow:hidden 的「整屏 fit」模式（style-03/02/index 内联），卡片
   放大后四个方向超出的部分全部被 section 裁掉。这里放开这些 fit section
   （其内部面板均为 fit 高度 + 内部滚动，放开不影响滚动架构，仅放行装饰性
   超出）。祖先容器（面板壳/网格）已在 bgfix8/9 放开。
   ======================================================================== */
/* 20261112loginscroll：登录设置页整屏固定，滚动只发生在「登录方式」白框内部。
   必须显式写 hidden —— 上面 `.main-content > section.section` 的
   `overflow-y: auto !important` 否则会把 section 变成滚动容器，flex 高度链断掉。 */
body #login.section.active.login-settings-fit {
  overflow: hidden !important;
}

/* 20261112 gapfill：登录监控页（登录监控 tab）出现「趋势图卡片下方大片空白」。
   原因：所有 fit 页的 section 都被 `.main-content[class*="-fit"] > section.section`
   改成 flex:0 0 auto，高度完全交给 JS 写进 --login-overview-viewport-height 的值；
   一旦这个值偏小或为空，section 就停在内容高度，下面的空白就露出来了。
   这里让登录监控的 section 始终「吃满 main-content 剩余高度」：
   变量仍作为首选起点，flex-grow 再补足差额，两种情形都不会矮一截。 */
body .main-content[class*="-fit"] > #login.section.active {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
}

body #super-guard.section.active.super-guard-overview-fit,
body #payment.section.active.payment-monitoring-fit,
body #login.section.active.login-overview-fit,
body #database.section.active.database-table-fit,
body #app-versions.section.active.database-table-fit,
body #distribution.section.active.distribution-partner-content-fit,
body #api.section.active.api-monitoring-fit,
body #dispatch-center.section.active.dispatch-center-fit {
  overflow: visible !important;
}
/* 数据看板 #overview 是滚动容器（overflow-y:auto 不能动，否则滚动内容溢出闪动），
   只放开横向，放行左右放大的超出部分 */
body #overview.section.active {
  overflow-x: visible !important;
}
/* 兜底：普通滚动 section 只放开横向（y 保持滚动语义；上下方向由面板级容器放行）。
   fit:hidden 的 section 已在上面整条放开（它们没有滚动语义）。 */
body .section:is(:has(.stat-card:hover), :has(.chart-card:hover), :has(.login-stat-card:hover),
  :has(.security-stat-card:hover), :has(.database-overview-stat-card:hover), :has(.card:hover)) {
  overflow-x: visible !important;
}

/* ========================================================================
   20261106 bgfix11：分页修复残留截断（模型管理/API/数据看板/应用管理/合伙人）
   1) API：#call-stats.category-content.active { overflow:hidden }（style-02，3 ID）漏放
   2) 模型管理：#ai-model.section 内联 overflow:hidden 固定高度模式，整条放开
   3) 合伙人/应用管理/模型管理外层壳补进 hover 放开链
   4) 滚动 section 上下左右加 8px 缓冲 padding：卡片贴边时上浮(4px)+放大(~3px)
      落在 padding 内，不再被 overflow 裁掉（滚动语义不动）
   ======================================================================== */
/* —— 1) API 管理内容页签放开 —— */
body #api.section.active.api-monitoring-fit #call-stats.category-content.active {
  overflow: visible !important;
}
/* —— 2) 模型管理 section（内联 fit hidden）+ 内部壳 —— */
body #ai-model.section,
body #ai-model.section.active {
  overflow: visible !important;
}
/* —— 3) 外层壳补进 hover 放开链（合伙人 main-shell / 应用管理 pane 链 / 模型管理 aim 壳） —— */
body :is(.api-unified-main-shell, .member-management-shell, .applicationManagementOverviewPane,
  .application-overview-monitor-panel, .application-overview-layout, .application-overview-section,
  #aim-root, #aim-root .wrap, #aim-root .pane, #aim-root .aim-monitor-panel,
  #call-stats, #partner-overview):is(:has(.stat-card:hover), :has(.chart-card:hover),
  :has(.card:hover), :has(.login-stat-card:hover), :has(.security-stat-card:hover),
  :has(.database-overview-stat-card:hover)) {
  position: relative !important;
  z-index: 940 !important;
  overflow: visible !important;
}
/* —— 4) 滚动 section 缓冲（左右 8px、顶部 8px；底部已有 10px） ——
   overflow 裁剪发生在 padding box 边缘，缓冲让放大超出落在容器内部 */
.main-content > section.section {
  padding-top: 8px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* ========================================================================
   20261106 bgfix12：超级守护页签切换丝滑过渡
   此前 .super-guard-view-pane 用 display:none→flex 硬切，无过渡感。
   加淡入 + 上移入场动画（与数据看板切换动画同观感），0.28s 缓出。
   动画结束 transform:none，不影响悬停抬层链。
   20261109 jumpfix：**入场动画只能属于「页签切换」，不能属于「进页面」**。
   原来动画挂在 `.super-guard-view-pane.active` 上，而该面板跨 section 一直
   保持 .active；CSS 动画在 display:none → 显示 时会重新播放一次 —— 于是每次
   从别的标签点进超级守护，整块内容都要从 opacity .58 + translateY(12px)
   滑上来 0.3s，看起来就是「页面刷新抖一下」，而别的标签是直接出现（实测：
   进页面瞬间 pane 的 transform 是 matrix(...,0,12)，0.3s 后回 0）。
   改法：动画只在切换时由 switchSuperGuardView 临时挂 .sg-pane-enter 触发，
   进页面不再有动画。0.28s 那条已被 bgfix14b 的 0.3s 覆盖，一并收掉。
   ======================================================================== */
@keyframes sgPaneIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ========================================================================
   20261106 bgfix13：超级守护两趋势图横向间距对齐全站标准
   全站趋势图容器 .monitoring-charts 的横向列距标准是 column-gap:20px
   （模型管理等页面走此规则）；超级守护 .super-guard-trend-charts 被写死
   column-gap:8px，导致两图挨得太近（用户截图对比实锤）。对齐为 20px。
   上下行距保持 8px 标准不变。
   ======================================================================== */
body #superGuardViewPane-overview .super-guard-trend-charts {
  column-gap: 20px !important;
}

/* ========================================================================
   20261106 bgfix14：超级守护趋势卡对齐全站标准（颜色差异根因修复）
   根因：这两张趋势卡虽带 .chart-card 类，但 style-06 有一条 ID 级规则
   #superGuardViewPane-overview .super-guard-trend-card（1,1,0）把背景写死为
   var(--admin-panel-surface)（跟随主题）——其他页面的趋势图面板是固定
   浅蓝灰渐变（bgfix7），且该规则还写了 transition:none!important，导致
   悬停放大瞬间弹跳无过渡。这里镜像其 ID 结构反超（body 前缀 1,1,1）：
   1) 背景浅蓝灰渐变 + 边框固定，与其他页面趋势图面板完全一致
   2) 悬停过渡 0.2s + 放大 + 阴影（反超 style-06 的 transform:none:hover）
   20261109 bgfix14b：这里原本把背景写死成 #fdfeff→#f6f8fc 的「近白」渐变，
   而 bgfix7-1b（20261108 tone8）早已把全站趋势图面板改成「非白主题跟随
   主题面板变量」。这条 ID 级规则又把超级守护两图钉回白色 —— 切到任何非白
   主题时，周边卡片全变深/变色，只有这两张趋势图卡片仍是一片白（用户实证）。
   改法同 tone8：白主题保留浅蓝灰渐变，非白主题回落主题面板变量。
   ======================================================================== */
html[data-theme="light"] body #superGuardViewPane-overview .super-guard-trend-card {
  background: linear-gradient(180deg, #fdfeff 0%, #f6f8fc 100%) !important;
  background-image: linear-gradient(180deg, #fdfeff 0%, #f6f8fc 100%) !important;
  border-color: rgba(148, 158, 178, 0.22) !important;
}
html:not([data-theme="light"]) body #superGuardViewPane-overview .super-guard-trend-card {
  background: var(--admin-panel-surface, #ffffff) !important;
  background-image: var(--admin-panel-surface-image, none) !important;
  border-color: var(--admin-panel-border-soft, rgba(148, 158, 178, 0.22)) !important;
}
body #superGuardViewPane-overview .super-guard-trend-card {
  transition: transform 0.2s ease !important;
}
body #superGuardViewPane-overview .super-guard-trend-card:hover {
  transform: translateY(-4px) scale(1.015) !important;
  position: relative !important;
  z-index: 950 !important;
}

/* ========================================================================
   20261106 bgfix17：阴影「唯一通道」——旧的 CSS 阴影机制全部清除
   历史：bgfix14c 用 :not 反超解锁 CSS 阴影 → bgfix15 改 drop-shadow →
   bgfix16 改影子板。但旧的高特异性悬停规则（:has 参与计特异性达 (3,7,1)）
   一直在给卡片自身叠加第二道 CSS 阴影：它逃不出祖先 overflow 裁剪
   （如合伙人页 #distribution 的左右边界），在边界内外形成浓度台阶，
   观感即"阴影仍被遮挡"。现按「只留一条正确的通道」原则清理：
   1) 下方这条是卡片阴影的唯一关闭规则（含 filter），任何页面的卡片
      自身不再绘制任何阴影；
   2) 悬停阴影唯一来源 = admin-hover-shadow.js 的影子板（上方 .plate），
      画在 body 直属层，不受任何裁剪。
   ======================================================================== */
body :is(.stat-card, .chart-card, .login-stat-card, .security-stat-card,
  .database-overview-stat-card, #overview .card[data-theme],
  #superGuardViewPane-overview .super-guard-trend-card):hover:not(#admin-no-shadow-root):not(#admin-no-shadow-boost) {
  box-shadow: none !important;
  filter: none !important;
}

/* ========================================================================
   20261106 bgfix16/17：悬停阴影「影子板」——唯一阴影来源
   admin-hover-shadow.js 在悬停时于 body 直属层生成固定定位影子板
   （.admin-hover-shadow-plate），位置逐帧同步卡片，z-index:960 高于一切
   内容层（卡片 950/头部 900），低于侧栏 1000/弹窗 9999，不受任何
   overflow 裁剪。影子板 id=admin-no-shadow-root，恰为 style-08 全局
   box-shadow:none 杀手规则的豁免 id。
   ======================================================================== */
.admin-hover-shadow-plate {
  position: fixed;
  pointer-events: none;
  z-index: 960;
  opacity: 0;
  box-shadow: 0 14px 32px rgba(60, 72, 100, 0.22);
  transition: opacity 0.2s ease;
}
body :is(.stat-card, .chart-card, .login-stat-card, .security-stat-card,
  .database-overview-stat-card, #overview .card[data-theme],
  #superGuardViewPane-overview .super-guard-trend-card):not(#admin-no-shadow-root):not(#admin-no-shadow-boost) {
  transition: transform 0.2s ease !important;
}

/* ========================================================================
   20261106 bgfix14b：页签切换动画对齐数据看板节奏
   数据看板切换 = 旧面板退出动画 0.3s → 新面板进入动画 0.3s（两段式）。
   超级守护此前只有 0.28s 单段淡入，旧面板硬切消失 → 观感生硬。
   改为两段式同节奏；sg-pane-exit 由 switchSuperGuardView 在切换时挂上。
   20261109 jumpfix：进入动画的选择器加 .sg-pane-enter 门槛（由 JS 在真正
   切换页签时临时挂 0.3s）。详见上方 bgfix12 注释：不加门槛的话，从别的
   标签点进超级守护时面板会重播一次入场动画，表现为整页向下抖一下。
   ======================================================================== */
body #super-guard .super-guard-view-pane.sg-pane-exit {
  animation: sgPaneOut 0.3s ease forwards;
}
body #super-guard .super-guard-view-pane.active.sg-pane-enter {
  animation: sgPaneIn 0.3s ease;
}
@keyframes sgPaneOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: scale(0.985); }
}
@keyframes sgPaneIn {
  from { opacity: 0.58; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ========================================================================
   20261106 bgfix18：深色主题下固定浅色卡片/面板的服帖打磨
   壳子切深色主题后，除四卡片+趋势图面板外全部变深，固定浅色块反差大、
   边框（按浅背景设计的浅灰）在深底上隐形 → 卡片"发闷"、边界感弱。
   由 admin-hover-shadow.js 的暗色检测在根节点打 data-admin-dark="1"
   （实时计算 --wb-theme-body-bg 亮度），仅深色时生效：
   边框换深底可见的中性灰蓝 + 一圈极淡白描边 + 柔和黑影，让亮块"立起来"。
   :not(#...) 两个豁免 id 反超 style-08 全局 box-shadow:none 杀手规则。
   ======================================================================== */
html[data-admin-dark="1"] body :is(.stat-card, .chart-card, .login-stat-card, .security-stat-card,
  .database-overview-stat-card, #overview .card[data-theme],
  #superGuardViewPane-overview .super-guard-trend-card):not(#admin-no-shadow-root):not(#admin-no-shadow-boost) {
  border-color: rgba(128, 142, 170, 0.42) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.045), 0 10px 26px rgba(0, 0, 0, 0.32) !important;
}
/* 深色模式下影子板阴影换深色系（浅色阴影在深底上不可见，悬停效果会变弱） */
html[data-admin-dark="1"] .admin-hover-shadow-plate {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

/* ========================================================================
   20261106 bgfix19：趋势图日期选择器固定浅色（对齐图表面板配色）
   日期 pill 与日历弹层原本全走主题变量（modal-field-bg/modal-shell/
   accent 等），深色主题下会变成深色 pill 趴在固定浅色面板上、两头不靠。
   原则：长在固定面板上的控件跟面板走。
   20261108 tone8 修订：趋势图面板已改回跟随主题（同文件 bgfix7 修订），
   「固定浅色面板」的前提不复存在，钉浅色规则收窄到白主题生效；
   其它主题回落到 style-03 的主题变量版本（modal-field-bg/modal-shell/accent）。
   ======================================================================== */
html[data-theme="light"] body .monitoring-chart-date-input,
html[data-theme="light"] body .api-monitoring-date-input,
html[data-theme="light"] body .login-chart-date-input,
html[data-theme="light"] body .dispatch-center-date-input {
  background: linear-gradient(180deg, #fdfeff 0%, #f6f8fc 100%) !important;
  border-color: rgba(148, 158, 178, 0.32) !important;
  color: #253347 !important;
}
html[data-theme="light"] body .themed-date-input-shell:hover > .api-monitoring-date-input,
html[data-theme="light"] body .themed-date-input-shell:hover > .login-chart-date-input,
html[data-theme="light"] body .themed-date-input-shell:hover > .dispatch-center-date-input,
html[data-theme="light"] body .login-chart-date-input:hover,
html[data-theme="light"] body .dispatch-center-date-input:hover,
html[data-theme="light"] body .api-monitoring-date-input:hover {
  border-color: rgba(148, 158, 178, 0.55) !important;
  background: #f6f8fc !important;
}
html[data-theme="light"] body .api-monitoring-date-input:focus,
html[data-theme="light"] body .login-chart-date-input:focus,
html[data-theme="light"] body .dispatch-center-date-input:focus {
  border-color: rgba(95, 107, 129, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(95, 107, 129, 0.14) !important;
}
html[data-theme="light"] body .themed-date-picker-trigger {
  color: #5f6b81 !important;
}
html[data-theme="light"] body .themed-date-picker-trigger:hover {
  border-color: rgba(148, 158, 178, 0.5) !important;
  background: #f6f8fc !important;
}
html[data-theme="light"] body .themed-date-picker-trigger:focus-visible {
  border-color: rgba(95, 107, 129, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(95, 107, 129, 0.14) !important;
}
html[data-theme="light"] body .themed-date-picker-popover {
  background: #fdfeff !important;
  border-color: rgba(148, 158, 178, 0.32) !important;
  color: #253347 !important;
  box-shadow: 0 18px 40px rgba(30, 40, 60, 0.18) !important;
}
html[data-theme="light"] body .themed-date-picker-title {
  color: #253347 !important;
}
html[data-theme="light"] body .themed-date-picker-weekdays span {
  color: #5f6b81 !important;
}
html[data-theme="light"] body .themed-date-picker-nav,
html[data-theme="light"] body .themed-date-picker-today {
  background: #f6f8fc !important;
  color: #253347 !important;
}
html[data-theme="light"] body .themed-date-picker-nav:hover,
html[data-theme="light"] body .themed-date-picker-today:hover,
html[data-theme="light"] body .themed-date-picker-day:not(.is-selected):hover {
  background: #eef1f6 !important;
}
html[data-theme="light"] body .themed-date-picker-day {
  background: #ffffff !important;
  color: #253347 !important;
}
html[data-theme="light"] body .themed-date-picker-day.is-muted {
  background: #f6f8fc !important;
  color: #9aa4b5 !important;
}
html[data-theme="light"] body .themed-date-picker-day.is-today {
  border-color: #3d6fe0 !important;
  color: #3d6fe0 !important;
}
html[data-theme="light"] body .themed-date-picker-day.is-selected {
  background: #3d6fe0 !important;
  color: #ffffff !important;
}
/* bgfix19b：镜像反超 style-08 的 .form-control.*.themed-date-input (0,3,0) 背景规则 */
html[data-theme="light"] body :is(.form-control.login-chart-date-input.themed-date-input,
  .form-control.dispatch-center-date-input.themed-date-input,
  .form-control.api-monitoring-date-input.themed-date-input) {
  background: linear-gradient(180deg, #fdfeff 0%, #f6f8fc 100%) !important;
}

/* ========================================================================
   20261107 bgfix21 → statfmt1 收编：应用监控四卡已并入全站统一
   dashboard-stat-layout 版式（见 statfmt1 块），此处只保留口径角标定位
   （stat-value/stat-label 旧结构规则已随旧版式一并移除，不留死通道）
   ======================================================================== */
body .application-overview-stats .stat-tip-icon {
  position: absolute !important;
  z-index: 1500 !important;
}

/* ========================================================================
   20261107 statfmt1：全站统计卡统一为数据看板版式（第二行信息行）
   范围：应用监控 / 合伙人管理 / 数据库管理 / 超级守护 / 发版管理 / API管理
   1) 卡片固定浅色底 + 固定边框（数据展示区恒定浅色，深色主题下由
      data-admin-dark 打磨边框）；
   2) 文字固定深色：标题 #253347、数值 #253347、对比行 #5f6b81；
   3) 趋势行语义色（中文惯例）：升=红 #dc2626、降=绿 #059669；
      无方向的构成/时效文案保持灰；
   4) 版式细节：双栏卡最小高 113px 与数据看板一致，口径角标定位。
   注：数据看板 #overview 与模型监控 #ai-model 的卡片自带主题配色规则
   （ID 级特异性），不受本块影响。
   ======================================================================== */
body #applications .application-overview-stats .stat-card,
body #distribution .stats-grid .stat-card,
body #database .database-overview-stats .stat-card,
body #app-versions .database-overview-stats .stat-card,
body #super-guard .super-guard-overview-stats .stat-card,
body #api #call-stats .monitoring-stats-compact .stat-card {
  position: relative;
  display: block !important; /* 反超 style-04/06 的 54px 两栏网格，布局全权交给内层 dashboard-stat-layout */
  height: 113px !important; /* 锁死与数据看板一致的固定高度，防止内容/角标把卡片撑高 */
  min-height: 113px !important;
  max-height: 113px !important;
  overflow: visible !important;
  box-sizing: border-box;
  /* 底色/边框不再在此固定：交由文件末尾 statfmt8 按每卡业务主题色着色
     （与数据看板一致：图标色 → 同色浅渐变底 + 同色浅边框） */
  box-shadow: none !important;
}
html[data-admin-dark="1"] body #applications .application-overview-stats .stat-card,
html[data-admin-dark="1"] body #distribution .stats-grid .stat-card,
html[data-admin-dark="1"] body #database .database-overview-stats .stat-card,
html[data-admin-dark="1"] body #app-versions .database-overview-stats .stat-card,
html[data-admin-dark="1"] body #super-guard .super-guard-overview-stats .stat-card,
html[data-admin-dark="1"] body #api #call-stats .monitoring-stats-compact .stat-card {
  border-color: rgba(128, 142, 170, 0.42) !important;
}
body #applications .application-overview-stats .stat-card .stat-card-label,
body #distribution .stats-grid .stat-card .stat-card-label,
body #database .database-overview-stats .stat-card .stat-card-label,
body #app-versions .database-overview-stats .stat-card .stat-card-label,
body #super-guard .super-guard-overview-stats .stat-card .stat-card-label,
body #api #call-stats .monitoring-stats-compact .stat-card .stat-card-label {
  color: #253347 !important;
}
body #applications .application-overview-stats .stat-card .dashboard-stat-number,
body #distribution .stats-grid .stat-card .dashboard-stat-number,
body #database .database-overview-stats .stat-card .dashboard-stat-number,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-number,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-number,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-number {
  color: #253347 !important;
}
body #applications .application-overview-stats .stat-card .dashboard-stat-compare,
body #distribution .stats-grid .stat-card .dashboard-stat-compare,
body #database .database-overview-stats .stat-card .dashboard-stat-compare,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-compare,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-compare,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-compare {
  color: #5f6b81 !important;
}
body #applications .application-overview-stats .stat-card .dashboard-stat-trend,
body #distribution .stats-grid .stat-card .dashboard-stat-trend,
body #database .database-overview-stats .stat-card .dashboard-stat-trend,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-trend,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-trend,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-trend {
  color: #5f6b81 !important;
}
body #applications .application-overview-stats .stat-card .dashboard-stat-trend.up,
body #distribution .stats-grid .stat-card .dashboard-stat-trend.up,
body #database .database-overview-stats .stat-card .dashboard-stat-trend.up,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-trend.up,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-trend.up,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-trend.up {
  color: #dc2626 !important;
}
body #applications .application-overview-stats .stat-card .dashboard-stat-trend.down,
body #distribution .stats-grid .stat-card .dashboard-stat-trend.down,
body #database .database-overview-stats .stat-card .dashboard-stat-trend.down,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-trend.down,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-trend.down,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-trend.down {
  color: #059669 !important;
}
/* 双栏媒体列图标居中（旧 stat-icon 自带位移在此版式下统一居中） */
body #applications .application-overview-stats .stat-card .dashboard-stat-media .stat-icon,
body #distribution .stats-grid .stat-card .dashboard-stat-media .stat-icon,
body #database .database-overview-stats .stat-card .dashboard-stat-media .stat-icon,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-media .stat-icon,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-media .stat-icon,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-media .stat-icon {
  margin-left: auto !important;
  margin-right: auto !important;
}
/* 版式对齐数据看板：媒体列 128px、列间距 16px、标题 14px 单行，
   数值缩小/禁止换行，防止趋势行与对比文案被挤成竖排、长数值截断 */
body #applications .application-overview-stats .stat-card .dashboard-stat-layout,
body #distribution .stats-grid .stat-card .dashboard-stat-layout,
body #database .database-overview-stats .stat-card .dashboard-stat-layout,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-layout,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-layout,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-layout {
  grid-template-columns: var(--admin-stat-media-col, 122px) minmax(0, 1fr) !important;
  column-gap: 16px !important;
}
body #applications .application-overview-stats .stat-card .dashboard-stat-media,
body #distribution .stats-grid .stat-card .dashboard-stat-media,
body #database .database-overview-stats .stat-card .dashboard-stat-media,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-media,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-media,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-media {
  min-width: var(--admin-stat-media-min, 128px) !important;
}
body #applications .application-overview-stats .stat-card .stat-card-label,
body #distribution .stats-grid .stat-card .stat-card-label,
body #database .database-overview-stats .stat-card .stat-card-label,
body #app-versions .database-overview-stats .stat-card .stat-card-label,
body #super-guard .super-guard-overview-stats .stat-card .stat-card-label,
body #api #call-stats .monitoring-stats-compact .stat-card .stat-card-label {
  font-size: var(--admin-stat-label-size, 14px) !important;
  white-space: var(--admin-stat-text-wrap, nowrap) !important;
}
body #applications .application-overview-stats .stat-card .dashboard-stat-number,
body #distribution .stats-grid .stat-card .dashboard-stat-number,
body #database .database-overview-stats .stat-card .dashboard-stat-number,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-number,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-number,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-number {
  font-size: 22px !important;
}
body #applications .application-overview-stats .stat-card .dashboard-stat-compare,
body #distribution .stats-grid .stat-card .dashboard-stat-compare,
body #database .database-overview-stats .stat-card .dashboard-stat-compare,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-compare,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-compare,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-compare,
body #applications .application-overview-stats .stat-card .dashboard-stat-trend,
body #distribution .stats-grid .stat-card .dashboard-stat-trend,
body #database .database-overview-stats .stat-card .dashboard-stat-trend,
body #app-versions .database-overview-stats .stat-card .dashboard-stat-trend,
body #super-guard .super-guard-overview-stats .stat-card .dashboard-stat-trend,
body #api #call-stats .monitoring-stats-compact .stat-card .dashboard-stat-trend {
  white-space: var(--admin-stat-text-wrap, nowrap) !important;
}
/* 口径角标与数据看板同位同款：基础规则自带左上角（left:11px top:9px）与
   26px 尺寸，此处只提升层级（此前 dashboard-stat-media z-index:1 压住角标，
   只剩一个小点可悬停、气泡也被盖住） */
body #distribution .stats-grid .stat-card .stat-tip-icon,
body #database .database-overview-stats .stat-card .stat-tip-icon,
body #app-versions .database-overview-stats .stat-card .stat-tip-icon,
body #super-guard .super-guard-overview-stats .stat-card .stat-tip-icon,
body #api #call-stats .monitoring-stats-compact .stat-card .stat-tip-icon,
#aim-root .aim-monitor-panel .stat-card .stat-tip-icon {
  position: absolute !important;
  z-index: 1500 !important;
}


/* ========================================================================
   20261107 statfmt4：支付管理四卡并入全站统一 dashboard-stat-layout 版式
   （规则与 statfmt1 完全一致：113px 固定高、浅色底、左上角口径角标、
   媒体列 128px / 列间距 16px / 内边距 16px / 标题 14px 单行 / 数值 22px，2026-11-08 与数据看板完全统一）
   ======================================================================== */
body #payment .payment-monitoring-stats .stat-card {
  position: relative;
  display: block !important;
  height: 113px !important;
  min-height: 113px !important;
  max-height: 113px !important;
  padding: 16px !important;
  overflow: visible !important;
  box-sizing: border-box;
  background: linear-gradient(180deg, #fdfeff 0%, #f6f8fc 100%) !important;
  background-image: linear-gradient(180deg, #fdfeff 0%, #f6f8fc 100%) !important;
  border: 1px solid rgba(148, 158, 178, 0.22) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
html[data-admin-dark="1"] body #payment .payment-monitoring-stats .stat-card {
  border-color: rgba(128, 142, 170, 0.42) !important;
}
body #payment .payment-monitoring-stats .stat-card .stat-card-label {
  color: #253347 !important;
  font-size: var(--admin-stat-label-size, 14px) !important;
  white-space: var(--admin-stat-text-wrap, nowrap) !important;
}
body #payment .payment-monitoring-stats .stat-card .dashboard-stat-number {
  color: #253347 !important;
  font-size: 22px !important;
  white-space: nowrap !important;
}
body #payment .payment-monitoring-stats .stat-card .dashboard-stat-compare,
body #payment .payment-monitoring-stats .stat-card .dashboard-stat-trend {
  color: #5f6b81 !important;
  font-size: 12px !important;
  white-space: var(--admin-stat-text-wrap, nowrap) !important;
}
body #payment .payment-monitoring-stats .stat-card .dashboard-stat-trend.up {
  color: #dc2626 !important;
}
body #payment .payment-monitoring-stats .stat-card .dashboard-stat-trend.down {
  color: #059669 !important;
}
body #payment .payment-monitoring-stats .stat-card .dashboard-stat-layout {
  grid-template-columns: var(--admin-stat-media-col, 122px) minmax(0, 1fr) !important;
  column-gap: 16px !important;
}
body #payment .payment-monitoring-stats .stat-card .dashboard-stat-media {
  min-width: var(--admin-stat-media-min, 128px) !important;
}
body #payment .payment-monitoring-stats .stat-card .dashboard-stat-media .stat-icon {
  margin-left: auto !important;
  margin-right: auto !important;
}
body #payment .payment-monitoring-stats .stat-card .stat-tip-icon {
  position: absolute !important;
  z-index: 1500 !important;
}



/* ========================================================================
   20261107 statfmt8：统计卡底色全站统一为数据看板规则
   数据看板/模型管理/合伙人/超级守护/API/登录六页本来就是「每卡跟随自己
   图标主题色」的浅彩底（紫/青/红/绿），此前 statfmt1/4 给应用监控、数据库、
   发版、支付四页强制的灰白底（ID 级 1,2,1 压过基础彩底组的 0,3,0）造成
   两种底色并存。本块按同一套「图标类 → 主题色」映射，给这四页补上带
   页面 ID 前缀的高优先级彩底规则，值与既有彩底组逐字一致，全部对齐看板。
   映射（图标色 → 底色/边框）：
     紫 rgba(246,247,255,.98) / rgba(103,101,237,.22)
     青 rgba(244,252,253,.98) / rgba(53,190,215,.24)
     红 rgba(245,245,245,.98) / rgba(233,96,96,.22)
     绿 rgba(246,253,248,.98) / rgba(85,208,130,.24)
   ======================================================================== */
/* —— 紫 —— */
body #applications .application-overview-stats .stat-card:has(.stat-icon--outbound-apps),
body #database .database-overview-stats .stat-card:has(.database-stat-icon--records),
body #app-versions .database-overview-stats .stat-card:has(.database-stat-icon--records),
body #payment .payment-monitoring-stats .stat-card:has(.monitoring-stat-icon--calls) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 247, 255, 0.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 247, 255, 0.98) 100%) !important;
  border-color: rgba(103, 101, 237, 0.22) !important;
}
/* —— 青 —— */
body #applications .application-overview-stats .stat-card:has(.stat-icon--terminal-count),
body #applications .application-overview-stats .stat-card:has(.stat-icon--mobile-apps),
body #applications .application-overview-stats .stat-card:has(.stat-icon--desktop-apps),
body #database .database-overview-stats .stat-card:has(.database-stat-icon--tables),
body #database .database-overview-stats .stat-card:has(.database-stat-icon--storage),
body #app-versions .database-overview-stats .stat-card:has(.database-stat-icon--tables),
body #app-versions .database-overview-stats .stat-card:has(.database-stat-icon--storage),
body #payment .payment-monitoring-stats .stat-card:has(.monitoring-stat-icon--inbound-platform) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 252, 253, 0.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 252, 253, 0.98) 100%) !important;
  border-color: rgba(53, 190, 215, 0.24) !important;
}
/* —— 红 —— */
body #payment .payment-monitoring-stats .stat-card:has(.monitoring-stat-icon--outbound) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.98) 100%) !important;
  border-color: rgba(233, 96, 96, 0.22) !important;
}
/* —— 绿 —— */
body #database .database-overview-stats .stat-card:has(.database-stat-icon--connection),
body #app-versions .database-overview-stats .stat-card:has(.database-stat-icon--connection),
body #payment .payment-monitoring-stats .stat-card:has(.monitoring-stat-icon--latency) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 253, 248, 0.98) 100%) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 253, 248, 0.98) 100%) !important;
  border-color: rgba(85, 208, 130, 0.24) !important;
}

/* ========================================================================
   20261107 settabs1：修复设置页标签栏下坠盖住面板
   settings-viewport-fit 模式（进入设置页即启用，锁定 section 高度）
   下滚动容器是 #settings 自身；而 .settings-page-tabs 的 sticky 吸附值
   top: calc(66px + var(--admin-header-follow-gap)) 是按「滚动容器=窗口、
   顶部有 66px 页头」的旧结构写的。Chrome 会把该值直接作为 sticky 偏移，
   标签栏被向下推出 68px、叠在面板卡片顶部。
   本模式下吸附点应为容器顶部 0：未滚动时停在自然位置，滚动时吸在
   section 顶部（紧贴页头下方），与原设计意图一致。
   ======================================================================== */
#settings.section.active.settings-viewport-fit .settings-page-tabs {
  top: 0;
}

/* ============================================================
 * 页头「单端」下拉（2026-11-07，四版：箭头也换成系统原件）
 * 菜单 = 系统通用 openHeaderFilterMenu（.member-th-menu）；
 * 箭头 = 系统 .member-th-caret（▾ 字符，transition/opacity 全走系统样式）。
 * 这里只差一条：系统旋转选择器是 .member-th-filter.is-open，我们的按钮补一条同款。
 * ============================================================ */
#globalTerminalScopeSelector .login-preview-device-button.is-open .member-th-caret { transform: rotate(180deg); }
/* 箭头比表头场景稍大、与标题拉开间距（页头按钮字大，12px 的表头规格在这里显小） */
#globalTerminalScopeSelector .scope-type-caret { display: inline-flex; align-items: center; margin-left: 9px; }
#globalTerminalScopeSelector .scope-type-caret .member-th-caret { font-size: 15px; opacity: 0.75; }
/* 选了具体端后标题变长（如「微信小程序」）：容器按内容加宽、按钮禁换行，
 * 保证标题和箭头永远同一行，箭头绝不会被挤到第二行 */
.global-terminal-scope-shell { max-width: max-content; }
.global-terminal-scope-shell .login-preview-device-selector { width: max-content; min-width: 420px; max-width: 100%; }
.global-terminal-scope-shell .login-preview-device-button { flex: 1 1 auto; white-space: nowrap; min-width: 132px; }
.global-terminal-scope-shell .scope-type-caret { flex: 0 0 auto; }

/* ============================================================
 * 20261107gap2：数据看板首排卡片距页头 12px（标准间距）+ 悬停放大不被切顶
 *
 * 背景：#overview 是滚动容器（overflow-y:auto），裁剪边界是它的 padding box
 *       顶边。卡片悬停是 translateY(-4px) + scale(1.015)，首排卡头顶会向上
 *       冲出约 4.8px；一旦容器顶部内边距小于这个值，卡头顶部就被容器裁掉
 *       一条（表现为「悬停时上沿被一刀切、圆角和描边消失」）。
 *
 * 算法：视觉间距 = 页头 margin-bottom(10) + 容器 padding-top - 容器 margin-top
 *       要 12px，且容器内部要留 ≥5px 的缓冲垫给悬停上浮：
 *       padding-top 8px（缓冲 8 > 4.8）+ margin-top -6px → 10 + 8 - 6 = 12px
 *       容器顶边（裁剪线）落在卡片上方 8px 处，悬停上浮 4.8px 仍在缓冲垫内，
 *       永远不会被裁。视觉间距与 gap1 完全一致，只是把「间距」从外边挪到内边。
 * ============================================================ */
#overview {
  padding-top: 8px !important;
  margin-top: -6px !important;
}

/* 2026-11-08 全站统一页头间距：此前只有 #overview 有 margin-top:-6px，
 * 数据看板第一块离页头 12px，其它页面 18px，用户反馈「只有数据看板和应用
 * 管理的间距是对的，其它全偏大」。把同样的 -6px 上移应用到所有 section，
 * 使全站「页头条 → 第一块内容」统一为 12px（应用管理自带标签栏的不受影响）。 */
.main-content > section.section {
  margin-top: -6px !important;
}

/* #data-tables 自带 padding-top:0 的收紧特例（见 index.html），
 * 已经比标准更紧，不再叠加 -6 上移，否则顶部过贴。 */
.main-content > section#data-tables {
  margin-top: 0 !important;
}

/* 卡片永远压在背景之上：
 * 页面若再叠加背景光晕 / 渐变罩 / 装饰层（z-index: 0 及以下），
 * 卡片自身始终是 z-index: 1，不会被任何背景「盖一层」 */
#overview .stat-card,
#overview .card {
  position: relative;
  z-index: 1;
}

/* ========================================================================
   20261108 tone9：数据看板四张趋势图卡片跟随主题
   收入/用户/订单/合伙人四张趋势卡（#overview .card[data-theme]）原为
   「语义色整块淡染底」设计（金/蓝紫/青/绿），白主题下是页面视觉焦点、
   手感正确；但切到彩色/深色主题时四块淡彩底压过主题，与已跟主题的
   统计卡/监控趋势卡割裂。处理与 stat-tone（tone7）、监控趋势卡（tone8）
   同一口径：大面积底色跟主题，语义色只留在趋势线/图标砖/下拉强调上。
   ======================================================================== */
html:not([data-theme="light"]) body #overview .card[data-theme="revenue"],
html:not([data-theme="light"]) body #overview .card[data-theme="user"],
html:not([data-theme="light"]) body #overview .card[data-theme="order"],
html:not([data-theme="light"]) body #overview .card[data-theme="creation"] {
  background: var(--admin-panel-surface, #ffffff) !important;
  background-image: none !important;
  border-color: var(--admin-panel-border-soft, rgba(148, 158, 178, 0.22)) !important;
  box-shadow: none !important;
}
html:not([data-theme="light"]) body #overview .card[data-theme="revenue"] .card-body,
html:not([data-theme="light"]) body #overview .card[data-theme="user"] .card-body,
html:not([data-theme="light"]) body #overview .card[data-theme="order"] .card-body,
html:not([data-theme="light"]) body #overview .card[data-theme="creation"] .card-body {
  background: var(--admin-panel-surface, #ffffff) !important;
  background-image: none !important;
}
/* 20261109tone9b：头部条改用左侧菜单同款色系（用户拍板试色）。
   第一轮用 --wb-theme-nav-bg 失败——它只混 8% 主题色，与原头部色几乎相同，肉眼无变化；
   第二轮改用 --wb-theme-sidebar-bg（26% 混色，即左侧栏那块紫调背景），
   头部条有明显的主题色感且与内容区（12% 混色）保留分隔；白主题不受影响 */
html:not([data-theme="light"]) body #overview .card[data-theme="revenue"] .card-header,
html:not([data-theme="light"]) body #overview .card[data-theme="user"] .card-header,
html:not([data-theme="light"]) body #overview .card[data-theme="order"] .card-header,
html:not([data-theme="light"]) body #overview .card[data-theme="creation"] .card-header {
  background: var(--wb-theme-sidebar-bg, var(--admin-panel-surface, #ffffff)) !important;
  background-image: none !important;
}
html:not([data-theme="light"]) body #overview .card[data-theme="revenue"] .card-header,
html:not([data-theme="light"]) body #overview .card[data-theme="user"] .card-header,
html:not([data-theme="light"]) body #overview .card[data-theme="order"] .card-header,
html:not([data-theme="light"]) body #overview .card[data-theme="creation"] .card-header {
  border-bottom: 1px solid var(--admin-panel-border-soft, rgba(148, 158, 178, 0.22)) !important;
}
html:not([data-theme="light"]) body #overview .card[data-theme="revenue"] .card-title,
html:not([data-theme="light"]) body #overview .card[data-theme="user"] .card-title,
html:not([data-theme="light"]) body #overview .card[data-theme="order"] .card-title,
html:not([data-theme="light"]) body #overview .card[data-theme="creation"] .card-title {
  color: var(--admin-panel-text-strong, #253347) !important;
}
/* 周期下拉底色：交还给 style-01（跟随主题实体渐变）与 style-06（四张面板各自的主题色），
   此处不再强制 panel 玻璃透明底——彩色主题下那等于全透明空壳 */

/* ========================================================================
   20261112 guardlogs1：守护日志对齐全站表格页（数据库 / 操作日志）标准
   ------------------------------------------------------------
   用户反馈三连：
   1) 两排页签贴在一起没有间距 —— 因为 style-06 把
      `#super-guard…logs-fit > .super-guard-page-card` 的 margin-bottom 压成 0；
   2) 滚动条跑到整页最外侧 —— 根因是下面这条全局规则把 **整个 section**
      变成了滚动容器（.main-content > section.section { overflow:hidden auto }），
      而表体自己被写死 538px 高 + overflow:hidden，多出的行被裁掉，
      于是能看到的那根条其实是 section 的，不在卡片里；
   3) 点三个页签会「消失一下再出现」—— 那是 JS 的两段式动画（旧面板先淡出
      0.3s 再淡入新的），section 高度在途中变化，滚动位置跟着跳。
   改法与全站一致（#logs / #database 的 fit 模式）：
   · 外框不再滚动，滚动交给表体本身，table-native-bar.js 会自动在这条壳上挂
     细滚动条（.super-guard-table-shell 已在它的 HOST_SELECTOR 里）；
   · 表体 flex:1 + height:auto + max-height:none，随可用高度伸缩；
   · 页签行间距恢复全站标准 var(--admin-table-layout-gap)。
   ======================================================================== */

/* 1) 两排页签之间恢复全站标准间距（守护日志 / 黑名单记录两个 fit 视图） */
#super-guard.section.active.super-guard-logs-fit > .super-guard-page-card,
#super-guard.section.active.super-guard-blacklist-records-fit > .super-guard-page-card {
  margin-bottom: var(--admin-table-layout-gap, 8px) !important;
}

/* 2) 外框不再当滚动容器（覆盖 .main-content > section.section 的 overflow-y:auto） */
#super-guard.section.active.super-guard-logs-fit,
#super-guard.section.active.super-guard-blacklist-records-fit {
  overflow: hidden !important;
}

/* 3) 表体自适应剩余高度并自身滚动，与 #logs .logs-table-scroll 完全同构 */
#super-guard.section.active.super-guard-logs-fit
  #superGuardViewPane-logs .super-guard-log-panel > .super-guard-log-table-frame > .super-guard-table-shell {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto !important;
  overflow-x: auto;
  position: relative;
}

/* 4) 表体滚动后，分页条固定在框底（不再被最后一行压住）
      20261112 guardbar1：底色必须与表头同源（--admin-table-bar-*），
      和 #logs / #database / #app-versions 的分页条完全一致；
      早前这里写死 --admin-panel-surface 导致那条是白的，与蓝色表头断层。 */
#superGuardViewPane-logs .super-guard-log-table-frame > .super-guard-log-pagination {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: var(--admin-table-bar-surface);
  background-image: var(--admin-table-bar-image);
  border-top: 1px solid #b0b4bb;
}

/* 5) 表体在框内滚动后，表头吸顶留在框顶（表头自带主题底色/渐变，
      吸顶时直接复用它，不会透出下面的行，也不影响任何主题配色） */
#superGuardViewPane-logs .super-guard-table-shell > .super-guard-data-table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 3;
}

/* ========================================================================
   20261112 guardmanage1：守护管理页整页固定，滚动在框内（和其他面板一致）
   ------------------------------------------------------------
   用户反馈：守护管理这页内容一多，整页跟着滚（滚动条挂在最外层），
   而数据库、设置页这些都是「页面钉住、内容框内滚」。
   做法照抄设置页 settings-viewport-fit 那套：section 用 fit 高度锁定，
   pane → card → card-body 逐级 flex，最后只让 card-body 滚动。
   类名由 app-defs-routing.js 在切视图时挂上（仅管理视图，且黑名单「记录」
   子标签激活时让位给它自己的 super-guard-blacklist-records-fit）。
   ======================================================================== */

.main-content.super-guard-management-fit {
  padding-bottom: 0;
  overflow: visible;
}

#super-guard.section.active.super-guard-management-fit {
  display: flex !important;
  flex-direction: column;
  height: var(--super-guard-management-viewport-height, var(--admin-first-paint-section-viewport-height));
  min-height: var(--super-guard-management-viewport-height, var(--admin-first-paint-section-viewport-height));
  padding-bottom: var(--admin-viewport-edge-gap);
  /* 20261112 guardframe1：必须 !important。
     `.main-content > section.section { overflow-y: auto !important }` 会覆盖这里的
     hidden，section 于是自己变成滚动容器 —— 而 section 左右各有 8px 内边距，
     原生滚动条贴着 padding 外沿画，正好压穿卡片右边线（1335 vs 卡片 1327），
     看起来就是「滚动条在框外面」。加 !important 后滚动彻底交给下面的
     .card-body，条只会画在卡片内沿。 */
  overflow: hidden !important;
  animation: none !important;
  opacity: 1;
  transform: none !important;
}

/* 顶部三视图页签固定，不参与滚动 */
#super-guard.section.active.super-guard-management-fit > .super-guard-page-card {
  flex: 0 0 auto;
  margin-bottom: var(--admin-table-layout-gap, 8px) !important;
}

#super-guard.section.active.super-guard-management-fit > #superGuardViewPane-management.active {
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

#super-guard.section.active.super-guard-management-fit
  > #superGuardViewPane-management.active > .super-guard-admin-card {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

/* 管理子标签行（登录防护 / 注册防护 / …）固定，不参与滚动 */
#super-guard.section.active.super-guard-management-fit
  > #superGuardViewPane-management.active > .super-guard-admin-card > .card-header {
  flex: 0 0 auto;
}

/* 20261112 guardframe3：滚动容器换成「白框自己」，跟合伙人设置完全同一套。
   ------------------------------------------------------------------------
   guardframe1/2 只把滚动条往左挪，仍然画在 card-body 上 —— 而 card-body
   是透明的、比白框（.super-guard-config-group）还宽，所以条永远落在白框
   右边框之外，怎么调内缩都是「在框外」，还因为 16px 轨道 + 8px 透明边
   被切成了半宽。
   合伙人设置页的做法是：滚动就发生在**有边框和白底的那个壳**上
   （.partner-settings-content-shell{overflow-y:auto;border:1px;padding:16px}），
   滚动条自然画在它自己的边线以内。
   这里照抄：
     · card-body 不再滚（overflow:hidden）；
     · pane / subpane 逐级 flex，白框撑满剩余高度；
     · 白框（config-group、table-shell）自己滚 —— 条落在白框边框里面；
     · 不再写任何 scrollbar-color / ::-webkit-scrollbar 覆盖，颜色粗细
       全部交给 scrollbar-theme.css 的唯一 token，和全站其它面板一模一样。 */
#super-guard.section.active.super-guard-management-fit
  > #superGuardViewPane-management.active > .super-guard-admin-card > .card-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

#super-guard.section.active.super-guard-management-fit
  > #superGuardViewPane-management.active > .super-guard-admin-card > .card-body
  > .super-guard-admin-pane.active {
  /* 必须 !important：index.html 里按 data-initial-admin-super-guard-admin-tab
     写的首屏占位规则把 pane 定成了 block，不加这条白框就撑成内容高度、
     滚动条又跑回 card-body 上（实测 computed display=block）。 */
  display: flex !important;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* 子标签行（黑名单管理 / 黑名单记录）固定，不参与滚动 */
#super-guard.section.active.super-guard-management-fit
  > #superGuardViewPane-management.active > .super-guard-admin-card > .card-body
  > .super-guard-admin-pane.active > .super-guard-config-tabs {
  flex: 0 0 auto;
}

#super-guard.section.active.super-guard-management-fit
  > #superGuardViewPane-management.active > .super-guard-admin-card > .card-body
  > .super-guard-admin-pane.active > .super-guard-subpane.active {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

/* 白框才是滚动容器：条画在它自己的边框以内 */
#super-guard.section.active.super-guard-management-fit
  > #superGuardViewPane-management.active > .super-guard-admin-card > .card-body
  > .super-guard-admin-pane.active > .super-guard-config-group,
#super-guard.section.active.super-guard-management-fit
  > #superGuardViewPane-management.active > .super-guard-admin-card > .card-body
  > .super-guard-admin-pane.active > .super-guard-subpane.active > .super-guard-config-group {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* 表格白框保留横竖两个方向（表格本来就需要横向滚动） */
#super-guard.section.active.super-guard-management-fit
  > #superGuardViewPane-management.active > .super-guard-admin-card > .card-body
  > .super-guard-admin-pane.active > .super-guard-table-shell,
#super-guard.section.active.super-guard-management-fit
  > #superGuardViewPane-management.active > .super-guard-admin-card > .card-body
  > .super-guard-admin-pane.active > .super-guard-subpane.active > .super-guard-table-shell {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

/* ========================================================================
   20261112 overview-no-scrollbar：数据看板不显示滚动条（这一页是特殊的）
   ------------------------------------------------------------------------
   用户明确要求：数据看板不要这条滚动条，其它面板的滚动条要收在框里。
   做法：#overview 保持原来的「自己滚」（不改 DOM、不改布局），只把滚动条
   本身隐藏 —— 滚轮、拖动、键盘翻页照常可用，只是不画那根条。
   注意：这里不能缩窄内容区，隐藏滚动条后内容自然多出 15px，卡片仍与
   其它面板右边缘对齐。
   ======================================================================== */
#overview.section.active,
#overview.section.active > .dashboard-page {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#overview.section.active::-webkit-scrollbar,
#overview.section.active::-webkit-scrollbar-thumb,
#overview.section.active > .dashboard-page::-webkit-scrollbar,
#overview.section.active > .dashboard-page::-webkit-scrollbar-thumb {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
