﻿/* ============================================
   style-01.css — style.css 拆分第 1/8 段（原行 1-3861）
   按序 <link> 加载，与 style.css 渲染等价。
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* admin-panel 变量默认值（主题引擎未覆盖时的兜底） */
  --admin-panel-surface: #ffffff;
  --admin-panel-surface-soft: #fafafa;
  --admin-panel-surface-strong: #f5f7fa;
  --admin-panel-surface-image: none;
  --admin-panel-surface-soft-image: none;
  --wb-page-bg: var(--wb-theme-body-bg);
  --wb-panel-bg: var(--admin-panel-surface-soft);
  --wb-blue: var(--wb-theme-accent-strong);
  --wb-blue-dark: var(--wb-theme-accent-text);
  --bg-secondary: var(--admin-panel-surface-soft);
  --border-color: var(--admin-panel-border-soft);
  --text-primary: var(--admin-panel-text-strong);
  --text-secondary: var(--admin-panel-text-muted);
  --accent-color: var(--wb-theme-accent-text);
  --wb-admin-content-max-width: 1240px;
  --wb-admin-content-pad-x: 48px;
  --wb-admin-content-stage-max-width: var(--wb-admin-content-max-width);
  --wb-admin-page-ratio-base-width: min(calc(100vw - 296px), 1600px);
  --wb-admin-page-ratio-scale: 0.9;
  --wb-admin-stage-max-width: calc(var(--wb-admin-page-ratio-base-width) * var(--wb-admin-page-ratio-scale));
  --wb-admin-page-ratio-content-pad-x: var(--wb-admin-content-pad-x);
  --admin-button-min-height: 38px;
  --admin-button-padding-y: 8px;
  --admin-button-padding-x: 16px;
  --admin-button-font-size: 14px;
  --admin-button-radius: 10px;
  --admin-button-gap: 8px;
  --admin-tab-width: 168px;
  --admin-tab-height: 40px;
  --admin-tab-padding-x: 16px;
  --admin-tab-radius: 14px;
  --admin-tab-font-size: 14px;
  --admin-header-follow-gap: 2px;
  --admin-viewport-bottom-inset: 0px;
  --admin-viewport-edge-gap: 8px;
  --admin-table-visible-row-count: 10;
  --admin-table-header-height: 52px;
  --admin-table-row-height: 54px;
  --admin-table-fixed-body-height: calc(var(--admin-table-row-height) * var(--admin-table-visible-row-count));
  --admin-table-fixed-height: calc(var(--admin-table-header-height) + var(--admin-table-fixed-body-height));
  --admin-table-pagination-height: 46px;
  --admin-table-pagination-padding-y: 7px;
  --admin-table-bar-surface: var(--admin-panel-header-surface);
  --admin-table-bar-image: var(--admin-panel-header-image);
  --admin-table-header-image:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--wb-theme-surface-bg) 92%, rgb(var(--admin-accent-rgb)) 8%) 0%,
      color-mix(in srgb, var(--wb-theme-surface-bg) 86%, rgb(var(--admin-accent-rgb)) 14%) 100%
    );
  --admin-table-header-surface: var(--admin-table-header-image);
  --admin-table-bar-border: var(--admin-panel-border-strong);
  /* 20261116nojump：首帧回退高度必须与 JS fit 稳态一致（视口高 - 分区顶部 54px）。
     旧值 -86px 会让分区切换瞬间先按 814px 画一帧、再被 JS 拉到 846px，
     表现为「点开菜单时整页向下拉伸」。这里只改回退值，JS 写入变量后仍以实测值为准。 */
  --admin-first-paint-section-viewport-height: max(480px, calc(100vh - 54px));
  --admin-first-paint-table-viewport-height: max(360px, calc(100vh - 54px));
  --admin-first-paint-preview-viewport-height: max(480px, calc(100vh - 54px));
}

/* Dashboard layout. */
.dashboard-container {
  padding: 20px;
}

.dashboard-stat-layout {
  display: grid;
  grid-template-columns: var(--admin-stat-media-col, 122px) minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  width: 100%;
}

.dashboard-stat-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: var(--admin-stat-media-min, 128px);
  text-align: center;
  padding-left: 0;
}

.dashboard-stat-data {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  padding-top: 0;
  margin-left: -4px;
}

.dashboard-stat-trend-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.dashboard-stat-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
}

.dashboard-stat-compare {
  line-height: 1.25;
  text-align: center;
}

.dashboard-stat-number {
  line-height: 1.05;
  letter-spacing: -0.03em;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), color 0.28s ease;
}

.dashboard-stat-data .dashboard-stat-trend,
.dashboard-stat-data .dashboard-stat-compare {
  font-size: 12px !important;
}

.dashboard-stat-data .dashboard-stat-number {
  font-size: 22px !important;
}

#overview .dashboard-page > div:first-child {
  margin-bottom: var(--admin-table-layout-gap) !important;
}

#overview .stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: var(--admin-table-layout-gap) !important;
  column-gap: 12px !important;
  margin-bottom: var(--admin-table-layout-gap) !important;
}

#overview .charts-grid {
  margin: 0 0 var(--admin-table-layout-gap) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--admin-table-layout-gap) !important;
  row-gap: var(--admin-table-layout-gap) !important;
}

#overview .dashboard-page > .charts-grid:last-child {
  margin-bottom: 0 !important;
}

#overview .stat-card[data-theme] {
  padding: 16px !important;
  border-radius: 12px !important;
}

#overview .stat-card[data-theme="revenue"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 245, 245, 0.98) 100%) !important;
  border-color: rgba(233, 96, 96, 0.22) !important;
  box-shadow: none !important;
}

#overview .stat-card[data-theme="user"] {
  background: 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;
}

#overview .stat-card[data-theme="order"] {
  background: 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;
}

#overview .stat-card[data-theme="creation"],
#overview .stat-card[data-theme="api"] {
  background: 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;
}

#overview .stat-card[data-theme="revenue"] .stat-card-icon,
#overview .stat-card[data-theme="user"] .stat-card-icon,
#overview .stat-card[data-theme="order"] .stat-card-icon,
#overview .stat-card[data-theme="creation"] .stat-card-icon,
#overview .stat-card[data-theme="api"] .stat-card-icon {
  margin-left: 0 !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
}

#overview .stat-card[data-theme="revenue"] .stat-card-icon {
  background: linear-gradient(180deg, #ef6060 0%, #df2b2b 100%) !important;
  box-shadow: none !important;
}

#overview .stat-card[data-theme="user"] .stat-card-icon {
  background: linear-gradient(180deg, #7b7bf2 0%, #534ce7 100%) !important;
  box-shadow: none !important;
}

#overview .stat-card[data-theme="order"] .stat-card-icon {
  background: linear-gradient(180deg, #35bed7 0%, #0898b8 100%) !important;
  box-shadow: none !important;
}

#overview .stat-card[data-theme="creation"] .stat-card-icon,
#overview .stat-card[data-theme="api"] .stat-card-icon {
  background: linear-gradient(180deg, #55d082 0%, #1aad50 100%) !important;
  box-shadow: none !important;
}

#overview .stat-card[data-theme] .stat-card-label {
  margin-top: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

#overview .stat-card[data-theme] .dashboard-stat-compare,
#overview .stat-card[data-theme] .stat-card-trend,
#overview .stat-card[data-theme] .dashboard-stat-trend {
  font-size: 12px !important;
}

#overview .stat-card[data-theme] .stat-card-value,
#overview .stat-card[data-theme] .dashboard-stat-number {
  font-size: 22px !important;
  font-weight: 700 !important;
}

#overview .stat-card[data-theme="revenue"] .stat-card-label {
  color: #ba1d1d !important;
}

#overview .stat-card[data-theme="revenue"] .dashboard-stat-compare,
#overview .stat-card[data-theme="revenue"] .stat-card-trend,
#overview .stat-card[data-theme="revenue"] .dashboard-stat-trend {
  color: #dc2626 !important;
}

#overview .stat-card[data-theme="revenue"] .stat-card-value,
#overview .stat-card[data-theme="revenue"] .dashboard-stat-number {
  color: #991b1b !important;
}

#overview .stat-card[data-theme="user"] .stat-card-label {
  color: #4338ca !important;
}

#overview .stat-card[data-theme="user"] .dashboard-stat-compare,
#overview .stat-card[data-theme="user"] .stat-card-trend,
#overview .stat-card[data-theme="user"] .dashboard-stat-trend {
  color: #4f46e5 !important;
}

#overview .stat-card[data-theme="user"] .stat-card-value,
#overview .stat-card[data-theme="user"] .dashboard-stat-number {
  color: #312e81 !important;
}

#overview .stat-card[data-theme="order"] .stat-card-label {
  color: #0f7770 !important;
}

#overview .stat-card[data-theme="order"] .dashboard-stat-compare,
#overview .stat-card[data-theme="order"] .stat-card-trend,
#overview .stat-card[data-theme="order"] .dashboard-stat-trend {
  color: #0891b2 !important;
}

#overview .stat-card[data-theme="order"] .stat-card-value,
#overview .stat-card[data-theme="order"] .dashboard-stat-number {
  color: #0f5f79 !important;
}

#overview .stat-card[data-theme="creation"] .stat-card-label,
#overview .stat-card[data-theme="api"] .stat-card-label {
  color: #15803d !important;
}

#overview .stat-card[data-theme="creation"] .dashboard-stat-compare,
#overview .stat-card[data-theme="creation"] .stat-card-trend,
#overview .stat-card[data-theme="creation"] .dashboard-stat-trend,
#overview .stat-card[data-theme="api"] .dashboard-stat-compare,
#overview .stat-card[data-theme="api"] .stat-card-trend,
#overview .stat-card[data-theme="api"] .dashboard-stat-trend {
  color: #16a34a !important;
}

#overview .stat-card[data-theme="creation"] .stat-card-value,
#overview .stat-card[data-theme="creation"] .dashboard-stat-number,
#overview .stat-card[data-theme="api"] .stat-card-value,
#overview .stat-card[data-theme="api"] .dashboard-stat-number {
  color: #166534 !important;
}

#overview .card[data-theme] {
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

#overview .card[data-theme] .card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: 6px 14px !important;
}

#overview .card[data-theme] .card-header .chart-period-trigger {
  height: 32px !important;
  min-height: 32px !important;
}

#overview .card[data-theme] .card-title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #4b627b !important;
}

.stat-card-icon {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1), filter 0.32s ease;
}

.stat-card-icon::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(255,255,255,0.26) 0%, rgba(255,255,255,0) 66%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.34s ease, transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.stat-card-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), transparent 58%);
  pointer-events: none;
}

.global-interactive {
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.36s cubic-bezier(0.16, 1, 0.3, 1), filter 0.32s ease, border-color 0.32s ease;
  transform-origin: center;
  will-change: transform, box-shadow, filter;
}

.stat-card.global-interactive:hover {
  transform: none !important;
  filter: none;
  box-shadow: none !important;
}

.chart-period-trigger.global-interactive:hover {
  transform: none;
  filter: none;
}

.stat-card.global-interactive:hover .stat-card-icon {
  transform: none;
  filter: none;
}

.stat-card.global-interactive:hover .stat-card-icon::before {
  opacity: 1;
  transform: scale(1);
}

.stat-card.global-interactive:hover .dashboard-stat-number {
  transform: none;
}





.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  row-gap: var(--admin-table-layout-gap);
  column-gap: 20px;
  margin-bottom: var(--admin-table-layout-gap);
}

.stat-card {
  background: var(--admin-panel-surface);
  border-radius: 8px;
  padding: 20px;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--admin-panel-muted-surface);
  background-image: var(--admin-panel-muted-surface-image);
  color: var(--admin-panel-text-strong);
  border-radius: 8px;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--admin-panel-text-strong);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: var(--admin-panel-text-muted);
}

.stat-trend {
  font-size: 14px;
  font-weight: 500;
}

.stat-trend.positive {
  color: #28a745;
}

.stat-trend.negative {
  color: #dc3545;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  row-gap: var(--admin-table-layout-gap);
  column-gap: 20px;
  margin-bottom: var(--admin-table-layout-gap);
}

.chart-card {
  background: var(--admin-panel-surface);
  border-radius: 20px;
  padding: 20px;
  box-shadow: none;
  border: 1px solid var(--admin-panel-border-soft);
  backdrop-filter: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}

.chart-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.chart-period-dropdown {
  position: relative;
  /* 打开时抬高整个下拉的层级，防止图表柱子/网格压在菜单上面 */
  z-index: auto;
  /* 跟随主题：白色主题用原始浅配比（外观与最初一致）；
     彩色主题在下方 html:not([data-theme="light"]) 条件里单独加深以保持实体感 */
  --chart-period-surface: color-mix(in srgb, var(--wb-theme-surface-bg) 90%, rgb(var(--admin-accent-rgb)) 10%);
  --chart-period-surface-soft: color-mix(in srgb, var(--wb-theme-surface-bg) 96%, rgb(var(--admin-accent-rgb)) 4%);
  --chart-period-accent: rgba(var(--admin-accent-rgb), 0.88);
  --chart-period-accent-strong: var(--wb-theme-accent-text);
  --chart-period-border: var(--wb-theme-accent-border);
  --chart-period-shadow: var(--wb-theme-accent-shadow);
  --chart-period-option-bg: var(--wb-theme-accent-soft);
  --chart-period-option-border: var(--wb-theme-accent-border);
}

.chart-period-dropdown.is-open {
  z-index: 60;
}

/* 彩色主题：非 overview 页面的周期下拉跟随主题色，浅配比（与主题相符不突兀） */
html:not([data-theme="light"]) .chart-period-dropdown {
  --chart-period-surface: color-mix(in srgb, var(--wb-theme-surface-bg) 72%, rgb(var(--admin-accent-rgb)) 28%);
  --chart-period-surface-soft: color-mix(in srgb, var(--wb-theme-surface-bg) 82%, rgb(var(--admin-accent-rgb)) 18%);
}

.chart-period-trigger {
  width: 60px;
  min-width: 60px;
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--chart-period-border);
  /* 纯色保底 + 渐变增强：嵌套 color-mix 在渐变里求值失败时纯色仍然生效，不会变透明空壳 */
  background-color: var(--chart-period-surface);
  background-image: linear-gradient(180deg, var(--chart-period-surface-soft) 0%, var(--chart-period-surface) 100%);
  color: var(--chart-period-accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition:
    transform .32s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow .32s cubic-bezier(0.16, 1, 0.3, 1),
    border-color .28s ease,
    background .28s ease,
    color .28s ease;
}

.chart-period-trigger:hover {
  transform: none;
  box-shadow: none;
}

.chart-period-dropdown.is-open .chart-period-trigger {
  transform: translateY(-1px) scale(1.02);
  border-color: color-mix(in srgb, var(--chart-period-accent) 58%, var(--chart-period-border) 42%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--chart-period-surface-soft) 90%, rgb(var(--admin-accent-rgb)) 10%) 0%, color-mix(in srgb, var(--chart-period-surface) 88%, var(--chart-period-option-bg) 12%) 100%);
  box-shadow: none;
}

.chart-period-trigger__arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.8;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s ease;
}

.chart-period-dropdown.is-open .chart-period-trigger__arrow {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.chart-period-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 60px;
  min-width: 60px;
  padding: 6px;
  border-radius: 14px;
  /* 实体感（2026-11-10）：部分主题下面板底色与图表面板几乎同色且无投影，看起来像悬空的空框。
     补柔和投影 + 毛玻璃兜底：主题背景带透明度时也能呈现实体悬浮层效果 */
  background-color: var(--chart-period-surface);
  background-image: linear-gradient(180deg, var(--chart-period-surface-soft) 0%, var(--chart-period-surface) 100%);
  border: 1px solid color-mix(in srgb, var(--chart-period-border) 88%, var(--wb-theme-surface-border) 12%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 40;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transform-origin: top right;
  overflow: hidden;
  will-change: transform, opacity, box-shadow;
  transition:
    opacity 0.28s ease,
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.38s ease,
    visibility 0s linear 0.42s;
}

.chart-period-menu::before {
  content: none;
  display: none;
}
.chart-period-menu::after {
  content: none;
  display: none;
}

.chart-period-dropdown.is-open .chart-period-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s, 0s;
  /* 打开态也要实体投影：这里原来写死 none，把基础层的投影盖掉了。
     加强到明显可见的悬浮层级，!important 防止任何主题/状态再盖掉 */
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.14) !important;
  animation: chartPeriodMenuPop 0.46s cubic-bezier(0.18, 0.9, 0.24, 1.08);
}

.chart-period-dropdown.is-closing .chart-period-menu {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
  animation: chartPeriodMenuClose 0.46s cubic-bezier(0.4, 0, 0.2, 1) both 48ms;
}

.chart-period-dropdown.is-open .chart-period-menu::before {
  opacity: 1;
  transform: translateY(0);
  animation: chartPeriodGlowReveal 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-period-dropdown.is-closing .chart-period-menu::before {
  opacity: 0;
  transform: translateY(-10px) scale(0.86);
  animation: chartPeriodGlowHide 0.34s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.chart-period-dropdown.is-open .chart-period-menu::after {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.chart-period-dropdown.is-closing .chart-period-menu::after {
  opacity: 0;
  transform: translate3d(18px, -20px, 0) scale(0.94);
  animation: chartPeriodShineHide 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.chart-period-option {
  width: 100%;
  border: none;
  background: transparent;
  color: color-mix(in srgb, var(--chart-period-accent-strong) 72%, var(--admin-panel-text-muted) 28%);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.92);
  will-change: transform, opacity, box-shadow;
  transition:
    background .24s ease,
    color .24s ease,
    transform .34s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow .28s ease,
    opacity .28s ease;
}

.chart-period-dropdown.is-open .chart-period-option {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  animation: chartPeriodOptionRise 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.chart-period-dropdown.is-closing .chart-period-option {
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.92);
  animation: chartPeriodOptionClose 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.chart-period-dropdown.is-open .chart-period-option:nth-child(1) {
  animation-delay: 40ms;
  transition-delay: 40ms;
}

.chart-period-dropdown.is-open .chart-period-option:nth-child(2) {
  animation-delay: 70ms;
  transition-delay: 70ms;
}

.chart-period-dropdown.is-open .chart-period-option:nth-child(3) {
  animation-delay: 100ms;
  transition-delay: 100ms;
}

.chart-period-dropdown.is-open .chart-period-option:nth-child(4) {
  animation-delay: 130ms;
  transition-delay: 130ms;
}

.chart-period-dropdown.is-closing .chart-period-option:nth-child(1) {
  animation-delay: 108ms;
}

.chart-period-dropdown.is-closing .chart-period-option:nth-child(2) {
  animation-delay: 72ms;
}

.chart-period-dropdown.is-closing .chart-period-option:nth-child(3) {
  animation-delay: 36ms;
}

.chart-period-dropdown.is-closing .chart-period-option:nth-child(4) {
  animation-delay: 0ms;
}

.chart-period-option:hover,
.chart-period-option.is-active {
  background: var(--chart-period-option-bg);
  color: var(--chart-period-accent-strong);
  transform: translateY(-1px);
  box-shadow: none;
}

@keyframes chartPeriodMenuPop {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.9);
  }
  68% {
    opacity: 1;
    transform: translateY(2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chartPeriodGlowReveal {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.84);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chartPeriodMenuClose {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  20% {
    opacity: 1;
    transform: translateY(1px) scale(1.01);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px) scale(0.9);
  }
}

@keyframes chartPeriodGlowHide {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-14px) scale(0.82);
  }
}

@keyframes chartPeriodShineHide {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(20px, -22px, 0) scale(0.92);
  }
}

@keyframes chartPeriodOptionRise {
  0% {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scale(0.9);
  }
  70% {
    opacity: 1;
    transform: translate3d(0, 1px, 0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes chartPeriodOptionClose {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  24% {
    opacity: 1;
    transform: translate3d(0, 1px, 0) scale(1.015);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scale(0.9);
  }
}


.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-header h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #253347;
}

.chart-body {
  position: relative;
}

.page-title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1f2f46;
}

.page-subtitle {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #7b8da5;
}

.chart-body canvas {
  border-radius: 16px;
}

.activity-section {
  background: var(--admin-panel-surface);
  border-radius: 20px;
  padding: 20px;
  box-shadow: none;
  border: 1px solid rgba(226, 232, 240, 0.88);
  backdrop-filter: none;
}



.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  padding: 10px;
  border-left: 3px solid var(--wb-theme-accent-strong);
  background: var(--admin-panel-muted-surface);
  background-image: var(--admin-panel-muted-surface-image);
  border-radius: 0 4px 4px 0;
}

.activity-item .activity-time {
  font-size: 12px;
  color: var(--admin-panel-text-muted);
  margin-bottom: 5px;
}

.activity-item .activity-description {
  font-size: 14px;
  color: var(--admin-panel-text-strong);
}

html {
  min-height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: none;
}

html::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--wb-theme-body-bg);
  color: var(--admin-panel-text-strong);
  min-height: 100vh;
  height: auto;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 200px;
  background: var(--wb-theme-sidebar-bg);
  color: var(--wb-theme-sidebar-title);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0;
  box-shadow: none;
  border-right: none;
  z-index: 1000;
  overflow: visible;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--wb-theme-sidebar-border);
  background: transparent;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--wb-theme-sidebar-title) !important;
  margin: 0 0 5px 0;
  text-align: center;
}

.sidebar-subtitle {
  font-size: 12px;
  color: var(--wb-theme-sidebar-subtitle) !important;
  margin: 0;
  text-align: center;
}

.sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 0 6px;
  background: var(--wb-theme-sidebar-bg);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 18px;
  margin: 0 10px 4px;
  cursor: pointer;
  transition: all 0.28s ease;
  color: var(--wb-theme-nav-text);
  border: 1px solid var(--wb-theme-nav-border);
  border-radius: 10px;
  background: var(--wb-theme-nav-bg);
  box-shadow: none;
}

.nav-item:hover {
  background: var(--wb-theme-nav-bg-hover);
  color: var(--wb-theme-nav-text-hover);
  border-color: var(--wb-theme-nav-border-hover);
  transform: translateX(2px);
  box-shadow: none;
}

.nav-item.active {
  background: var(--wb-theme-nav-bg-active);
  color: var(--wb-theme-nav-text-active);
  border-color: var(--wb-theme-nav-border-active);
  box-shadow: none;
}

.sidebar-nav .nav-item:last-of-type {
  margin-bottom: 0;
  border-bottom: 1px solid var(--wb-theme-nav-border);
}

.nav-bottom {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--wb-theme-sidebar-border);
  border-radius: 34px;
  background: var(--wb-theme-sidebar-bg);
  box-shadow: none;
}

.nav-bottom-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  /* 图标全被拖到上面后这里会空着，保留高度才能再拖回来 */
  min-height: 30px;
}

.nav-bottom-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--wb-theme-nav-text);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-bottom-icon-btn:hover { transform: scale(1.1) !important; }

.nav-bottom-icon-btn.active,
.nav-bottom-icon-btn[aria-current="page"] {
  background: var(--wb-theme-nav-bg-active);
  color: var(--wb-theme-nav-text-active);
  border-color: var(--wb-theme-nav-border-active);
}

.nav-bottom-icon-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}
.admin-account-footer {
  display: block;
  position: relative;
  min-width: 0;
  margin: 4px 10px 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--wb-theme-sidebar-border);
  color: var(--wb-theme-nav-text);
}

.admin-account-footer[hidden],
.admin-account-footer__menu[hidden] {
  display: none !important;
}

.admin-account-footer__identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--wb-theme-nav-border);
  border-radius: 10px;
  background: var(--wb-theme-nav-bg);
  color: inherit;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}

.admin-account-footer__identity:hover,
.admin-account-footer__identity:focus-visible {
  color: var(--wb-theme-nav-text-hover);
  border-color: var(--wb-theme-nav-border-hover);
  background: var(--wb-theme-nav-bg-hover);
  outline: none;
  box-shadow: none;
}

.admin-account-footer__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--wb-theme-nav-border-active);
  border-radius: 50%;
  background: color-mix(in srgb, var(--wb-theme-nav-bg-active) 72%, var(--wb-theme-sidebar-bg) 28%);
  color: var(--wb-theme-nav-text-active);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.admin-account-footer__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.admin-account-footer__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: calc(100% - 36px);
  gap: 2px;
}

.admin-account-footer__name {
  display: block;
  overflow: hidden;
  color: var(--wb-theme-sidebar-title);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-account-footer__menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 6px;
  border: 1px solid var(--wb-theme-sidebar-border);
  border-radius: 8px;
  background: var(--wb-theme-sidebar-bg);
  box-shadow: none;
}

.admin-account-footer__logout {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--wb-theme-nav-border);
  border-radius: 8px;
  background: var(--wb-theme-nav-bg);
  color: var(--wb-theme-nav-text);
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}


#appSelectorMenu .wb-select-option:not(.wb-select-option--app-selector-placeholder) {
  /* 默认无框（对标 API 管理接口测试的联动菜单）：hover/中选时才显示框，避免与左侧菜单按钮重复。首先回落到通用 wb-select-option（默认 transparent）*/
  /* 默认无框。颜色全部跟随 wb-select 组件主题（accent 系），与触发框/hover/选中态统一，避免 nav 灰蓝混用 */
  border: 1px solid transparent;
  background: transparent;
  color: var(--wb-theme-accent-text);
}

#appSelectorMenu .wb-select-option:not(.wb-select-option--app-selector-placeholder):hover {
  /* hover 出框对标 API 管理接口测试：浅色 accent 背景 + 淡边框，而非左侧菜单的 nav 渐变背景，避免重复感 */
  /* hover 出框统一使用 wb-select 组件主题：浅色 accent 背景 + 淡边框 + accent 文字，对比度温和、跟随主题 */
  border-color: var(--wb-select-option-border);
  background: var(--wb-select-option-bg);
  color: var(--wb-select-accent-strong);
}

#appSelectorMenu .wb-select-option:not(.wb-select-option--app-selector-placeholder).is-active,
#appSelectorMenu .wb-select-option:not(.wb-select-option--app-selector-placeholder).is-group-active,
#appSelectorMenu .wb-select-option:not(.wb-select-option--app-selector-placeholder)[aria-selected="true"] {
  /* 选中/激活态与 hover 同色系（wb-select 组件主题），对比度温和、跟随主题 */
  border-color: var(--wb-select-option-border);
  background: var(--wb-select-option-bg);
  color: var(--wb-select-accent-strong);
}

/* 级联菜单下所有按钮统一：高度、垂直居中、上下padding、文字水平居中 */
#appSelectorMenu.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-primary,
#appSelectorMenu.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-item {
  min-height: 34px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 12px;
  padding-right: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left-width: 1px;
  border-left-style: solid;
}

.admin-account-footer__logout:hover,
.admin-account-footer__logout:focus-visible {
  border-color: var(--wb-theme-nav-border-hover);
  background: var(--wb-theme-nav-bg-hover);
  color: var(--wb-theme-nav-text-hover);
  outline: none;
  box-shadow: none;
}

.admin-account-footer__logout svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.nav-icon {
  width: 18px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-text {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.app-selector-sidebar {
  flex: 0 0 auto;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
  text-align: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  box-shadow: none;
  overflow: visible;
}

.app-selector-shell {
  position: relative;
  min-height: 40px;
}

.app-selector-sidebar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--wb-theme-sidebar-border) 78%, rgba(var(--admin-accent-rgb), 0.3) 22%);
  pointer-events: none;
}

.wb-select {
  --wb-select-accent: rgba(var(--admin-accent-rgb), 0.82);
  --wb-select-accent-strong: var(--wb-theme-accent-text);
  --wb-select-surface: color-mix(in srgb, var(--wb-theme-surface-bg) 90%, rgb(var(--admin-accent-rgb)) 10%);
  --wb-select-surface-soft: color-mix(in srgb, var(--wb-theme-surface-bg) 96%, rgb(var(--admin-accent-rgb)) 4%);
  --wb-select-border: var(--wb-theme-accent-border);
  --wb-select-shadow: var(--wb-theme-accent-shadow);
  --wb-select-option-bg: rgba(var(--admin-accent-rgb), 0.16);
  --wb-select-option-border: rgba(var(--admin-accent-rgb), 0.28);
  --wb-select-trigger-height: 46px;
  --wb-select-trigger-padding-x: 16px;
  --wb-select-trigger-radius: 12px;
  --wb-select-option-radius: 12px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  max-width: 100%;
  min-width: 0;
  z-index: 40;
}

.wb-select.is-open,
.wb-select.is-closing {
  z-index: 10010;
}

.wb-select--block {
  display: flex;
  width: 100%;
  min-width: 0;
}

.wb-select--compact {
  --wb-select-trigger-height: 42px;
}

.wb-select-native {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
}

.wb-select-trigger {
  width: 100%;
  min-height: var(--wb-select-trigger-height);
  padding: 0 44px;
  border-radius: var(--wb-select-trigger-radius);
  border: 1px solid var(--wb-select-border);
  background: linear-gradient(180deg, var(--wb-select-surface-soft) 0%, var(--wb-select-surface) 100%);
  color: var(--wb-select-accent-strong);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
  transition:
    transform .32s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow .32s cubic-bezier(0.16, 1, 0.3, 1),
    border-color .28s ease,
    background .28s ease,
    color .28s ease;
  position: relative;
  z-index: 1;
  font-family: inherit;
  outline: none;
}

.wb-select-trigger__label {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.wb-select-trigger__arrow {
  width: 9px;
  height: 9px;
  position: absolute;
  right: 18px;
  top: 50%;
  color: currentColor;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  opacity: 0.85;
  transition: transform 0.18s ease;
  font-size: 0 !important;
  line-height: 0 !important;
}

.wb-select-trigger:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--wb-select-accent) 58%, var(--wb-select-border) 42%);
  box-shadow: none;
}

.wb-select.is-open .wb-select-trigger {
  transform: translateY(-1px) scale(1.02);
  border-color: color-mix(in srgb, var(--wb-select-accent) 58%, var(--wb-select-border) 42%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--wb-select-surface-soft) 90%, rgb(var(--admin-accent-rgb)) 10%) 0%,
    color-mix(in srgb, var(--wb-select-surface) 88%, var(--wb-select-option-bg) 12%) 100%
  );
  box-shadow: none;
}

.wb-select.is-open .wb-select-trigger__arrow {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.wb-select-menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 0;
  width: auto;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border-radius: 14px;
  background-color: var(--wb-select-surface);
  background-image: linear-gradient(180deg, var(--wb-select-surface-soft) 0%, var(--wb-select-surface) 100%);
  border: 1px solid color-mix(in srgb, var(--wb-select-border) 88%, var(--wb-theme-surface-border) 12%);
  box-shadow: none;
  z-index: 99999;
  max-height: calc(100vh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transform-origin: top left;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.wb-select-menu--placement-up {
  transform: translateY(6px);
  transform-origin: bottom left;
}

.wb-select-menu::-webkit-scrollbar,
.wb-select-menu--api-test-filter .api-test-filter-menu-primary-list::-webkit-scrollbar,
.wb-select-menu--api-test-filter .api-test-filter-menu-submenu-stage::-webkit-scrollbar,
.wb-select-menu--api-test-filter .api-test-filter-menu-tertiary-stage::-webkit-scrollbar,
.wb-select-menu--dispatch-scope .dispatch-scope-menu-primary-list::-webkit-scrollbar,
.wb-select-menu--dispatch-scope .dispatch-scope-menu-submenu-stage::-webkit-scrollbar,
.wb-select-menu--dispatch-scope .dispatch-scope-menu-tertiary-stage::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.wb-select-menu::before {
  content: none;
  display: none;
}

.wb-select-menu::after {
  content: none;
  display: none;
}

.wb-select-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s, 0s, 0s, 0s;
  box-shadow: none;
}

.wb-select-menu.is-open::before {
  opacity: 1;
  transform: translateY(0);
}

.wb-select-menu.is-open::after {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.wb-select-menu.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateY(-6px);
  box-shadow: none;
}

.wb-select-menu--placement-up.is-closing {
  transform: translateY(6px);
}

/* 全站下拉打开动效（20261112drop1）：与看板图表周期下拉同款「向下弹出伸展→回弹落定」手感 */
@keyframes wbSelectMenuPop {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.9);
  }
  68% {
    opacity: 1;
    transform: translateY(2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wbSelectMenuPopUp {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  68% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wb-select-menu.is-open {
  animation: wbSelectMenuPop 0.46s cubic-bezier(0.18, 0.9, 0.24, 1.08);
}

.wb-select-menu--placement-up.is-open {
  animation-name: wbSelectMenuPopUp;
}

@media (prefers-reduced-motion: reduce) {
  .wb-select-menu.is-open,
  .wb-select-menu--placement-up.is-open {
    animation: none;
  }
}

.wb-select-option {
  width: 100%;
  /* 全站下拉选项统一收紧凑（2026-11-10）：44px/11px 太松，选项间空隙过大 */
  min-height: 32px;
  padding: 6px 16px;
  border-radius: var(--wb-select-option-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wb-theme-accent-text);
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: keep-all;
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.92);
  transition:
    background .24s ease,
    color .24s ease,
    transform .34s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow .28s ease,
    opacity .28s ease;
  font-family: inherit;
}

.wb-select.is-open .wb-select-option,
.wb-select-menu.is-open .wb-select-option {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* 20261113scope：全局终端范围下拉的分组标题（不可点，仅作视觉分组） */
.wb-select-menu--global-terminal-scope .wb-select-group-label {
  padding: 8px 16px 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--wb-theme-text-muted, #8a97ab);
  opacity: 0.9;
  text-align: left;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.wb-select-menu--global-terminal-scope .wb-select-option {
  justify-content: flex-start;
  text-align: left;
}

.wb-select.is-closing .wb-select-option,
.wb-select-menu.is-closing .wb-select-option {
  opacity: 0;
  transform: translate3d(0, -10px, 0) scale(0.92);
}

.wb-select-option:hover,
.wb-select-option.is-active,
.wb-select-option[aria-selected="true"] {
  background: var(--wb-select-option-bg);
  color: var(--wb-select-accent-strong);
  transform: translateY(-1px);
  box-shadow: none;
}

.wb-select-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.wb-select-menu--app-selector-cascade {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  filter: none;
  overflow: visible;
}

.wb-select-menu--app-selector-cascade.is-open,
.wb-select-menu--app-selector-cascade.is-closing {
  box-shadow: none;
  filter: none;
}

.wb-select-menu--app-selector-cascade .wb-select-option,
.wb-select-menu--app-selector-cascade.is-open .wb-select-option,
.wb-select-menu--app-selector-cascade.is-closing .wb-select-option {
  transition: background .16s ease, color .16s ease, opacity .16s ease;
}

.wb-select-menu--app-selector-cascade::before,
.wb-select-menu--app-selector-cascade::after,
.wb-select-menu--app-selector-cascade.is-open::before,
.wb-select-menu--app-selector-cascade.is-open::after,
.wb-select-menu--app-selector-cascade.is-closing::before,
.wb-select-menu--app-selector-cascade.is-closing::after {
  content: none;
  display: none;
}

.wb-select-menu--app-selector-cascade .app-selector-cascade-menu-layout {
  --app-selector-column-gap: 2px;
  display: grid;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  grid-template-columns:
    minmax(0, var(--app-selector-primary-column-width, var(--app-selector-trigger-width, 188px)))
    minmax(0, var(--app-selector-content-column-width, var(--app-selector-trigger-width, 188px)));
  column-gap: var(--app-selector-column-gap, 2px);
  align-items: start;
}

.wb-select-menu--app-selector-cascade .app-selector-cascade-primary-list,
.wb-select-menu--app-selector-cascade .app-selector-cascade-content-stage {
  padding: 10px 8px;
  border-radius: 14px;
  background-color: var(--wb-theme-surface-bg);
  background-image: linear-gradient(180deg, var(--wb-select-surface-soft) 0%, var(--wb-select-surface) 100%);
  border: 1px solid color-mix(in srgb, var(--wb-theme-surface-border) 78%, rgba(var(--admin-accent-rgb), 0.26) 22%);
  box-shadow: none;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wb-select-menu--app-selector-cascade .app-selector-cascade-primary-list {
  display: flex;
  flex-direction: column;
  width: var(--app-selector-primary-column-width, var(--app-selector-trigger-width, 188px));
  min-width: var(--app-selector-primary-column-width, var(--app-selector-trigger-width, 188px));
  max-width: var(--app-selector-primary-column-width, var(--app-selector-trigger-width, 188px));
  gap: 6px;
  max-height: var(--app-selector-primary-max-height, 320px);
  align-items: stretch;
}

.wb-select-menu--app-selector-cascade .app-selector-cascade-content-stage {
  width: var(--app-selector-content-column-width, var(--app-selector-trigger-width, 188px));
  min-width: var(--app-selector-content-column-width, var(--app-selector-trigger-width, 188px));
  max-width: var(--app-selector-content-column-width, var(--app-selector-trigger-width, 188px));
  margin-top: var(--app-selector-content-offset, 0px);
  max-height: var(--app-selector-content-max-height, 320px);
}

.wb-select-menu--app-selector-cascade .app-selector-cascade-content-stage[hidden] {
  display: none;
}

/* 无限级联子面板 */
.app-selector-cascade-sub-panel {
  min-width: 180px;
  max-width: 260px;
  /* 与主列/内容面板完全一致的视觉（对标 API 管理）：padding、圆角、渐变背景、同边框、无阴影，任意级面板统一 */
  padding: 10px 8px;
  border: 1px solid color-mix(in srgb, var(--wb-theme-surface-border) 78%, rgba(var(--admin-accent-rgb), 0.26) 22%);
  background-color: var(--wb-theme-surface-bg);
  background-image: linear-gradient(180deg, var(--wb-select-surface-soft) 0%, var(--wb-select-surface) 100%);
  border-radius: 14px;
  box-shadow: none;
  box-sizing: border-box;
  z-index: 100;
}
.app-selector-cascade-panel-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.wb-select-option--app-selector-subcategory {
  position: relative;
  justify-content: center !important;
  text-align: center !important;
}
.wb-select-option--app-selector-subcategory::after {
  content: '>';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: currentColor;
  pointer-events: none;
}
.wb-select-option--app-selector-subcategory.is-group-active {
  background: color-mix(in srgb, rgba(var(--admin-accent-rgb), 0.14) 100%, transparent);
  color: var(--wb-theme-accent-text);
  font-weight: 600;
}

.wb-select-menu--app-selector-cascade .app-selector-cascade-content-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.wb-select-menu--app-selector-cascade .app-selector-cascade-section {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-selector-cascade-section-heading {
  padding: 2px 12px 0px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  color: color-mix(in srgb, var(--wb-theme-accent-text) 64%, rgba(var(--admin-accent-rgb), 0.62) 36%);
  letter-spacing: 0.04em;
}

.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-primary,
.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-item {
  border-radius: 12px;
  box-shadow: none;
  transform: none;
  transition:
    background .16s ease,
    color .16s ease,
    opacity .18s ease,
    border-color .16s ease;
}

.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-primary {
  min-height: var(--app-selector-trigger-height, 46px);
  padding: 0 14px 0 12px;
  border: 1px solid transparent;
  justify-content: space-between;
  text-align: left;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-branch {
  background: color-mix(in srgb, var(--wb-theme-accent-soft) 40%, transparent);
  font-weight: 600;
  position: relative;
}

.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-branch::after {
  content: '>';
  font-size: 13px;
  font-weight: 700;
  color: currentColor;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-primary:hover,
.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-primary.is-active,
.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-primary.is-group-active,
.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-primary[aria-selected="true"] {
  transform: none;
  box-shadow: none;
}

.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-item {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  justify-content: flex-start;
  text-align: left;
  align-items: flex-start;
}

.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-item:hover,
.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-item.is-active,
.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-item[aria-selected="true"] {
  border-color: var(--wb-select-option-border);
  transform: none;
}

.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-placeholder {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px dashed transparent;
  justify-content: flex-start;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: color-mix(in srgb, var(--wb-theme-accent-text) 54%, rgba(var(--admin-accent-rgb), 0.44) 46%);
  opacity: 0.72;
}

.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-placeholder:hover,
.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-placeholder.is-active,
.wb-select-menu--app-selector-cascade .wb-select-option--app-selector-placeholder[aria-selected="true"] {
  border-color: transparent;
  background: transparent;
  transform: none;
}

.app-selector-option__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 3px;
}

/* 名字居中显示（原先右侧挂「新 / 老」标签、左右各留 26px 占位；
   20261107badge2 徽标移除后这些留白收回给名字，仍居中） */
.app-selector-option__title {
  display: grid;
  grid-template-columns: auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  min-width: 0;
}

.app-selector-option__title-text {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-selector-option__meta {
  display: block;
  width: 100%;
  font-size: 11px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--wb-theme-accent-text) 62%, rgba(var(--admin-accent-rgb), 0.48) 38%);
}

.wb-select--api-test-filter .wb-select-trigger__label {
  text-align: center;
}

.wb-select-menu--api-test-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 420px;
  max-height: none;
  overflow: visible;
}

.api-test-filter-menu-layout {
  display: grid;
  grid-template-columns: 116px minmax(220px, 1fr);
  align-items: stretch;
  column-gap: 10px;
}

/* 只剩一档（内部接口）时：没有左侧那一列，也不留空位 */
.api-test-filter-menu-layout--single {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
}

.api-test-filter-menu-primary-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 116px;
  overflow: visible;
}

.api-test-filter-menu-submenu-stage {
  min-width: 0;
  overflow: visible;
}

.api-test-filter-menu-submenu-stage.is-empty {
  min-width: 220px;
}

.api-test-filter-menu-submenu-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wb-select-option--api-test-filter-primary,
.wb-select-option--api-test-filter-child {
  justify-content: center;
  text-align: center;
}

.wb-select-option--api-test-filter-primary {
  justify-content: space-between;
  min-height: 40px;
  padding: 9px 18px 9px 14px;
  font-weight: 700;
}

.wb-select-option--api-test-filter-primary.is-active,
.wb-select-option--api-test-filter-primary[aria-selected="true"] {
  background: var(--wb-select-option-bg);
  color: var(--wb-select-accent-strong);
  transform: translateY(-1px);
  box-shadow: none;
}

.wb-select-option--api-test-filter-primary::after {
  content: "\2022";
  margin-left: 12px;
  font-size: 18px;
  line-height: 1;
  color: #61768f;
}

.wb-select-option--api-test-filter-primary.is-active::after,
.wb-select-option--api-test-filter-primary[aria-selected="true"]::after {
  color: var(--wb-select-accent-strong);
}

.wb-select-option--api-test-filter-child {
  min-height: 40px;
  padding: 9px 14px;
}

.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-primary::after {
  content: ">";
  margin-left: 10px;
  font-size: 15px;
  line-height: 1;
  color: #61768f;
}

.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-primary.is-active::after,
.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-primary[aria-selected="true"]::after {
  color: var(--wb-select-accent-strong);
}

.wb-select-menu--api-test-filter {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  filter: none;
  overflow: visible;
}

.wb-select-menu--api-test-filter.is-open,
.wb-select-menu--api-test-filter.is-closing {
  box-shadow: none;
  filter: none;
}

.wb-select-menu--api-test-filter .wb-select-option,
.wb-select-menu--api-test-filter.is-open .wb-select-option,
.wb-select-menu--api-test-filter.is-closing .wb-select-option,
.wb-select--api-test-filter.is-open .wb-select-option,
.wb-select--api-test-filter.is-closing .wb-select-option {
  transition: background .16s ease, color .16s ease, opacity .16s ease;
}

.wb-select-menu--api-test-filter::before,
.wb-select-menu--api-test-filter::after,
.wb-select-menu--api-test-filter.is-open::before,
.wb-select-menu--api-test-filter.is-open::after,
.wb-select-menu--api-test-filter.is-closing::before,
.wb-select-menu--api-test-filter.is-closing::after {
  content: "";
}

.wb-select-menu--api-test-filter .api-test-filter-menu-layout {
  --api-test-filter-column-gap: 5px;
  --api-test-filter-column-width: calc(
    (var(--api-test-filter-trigger-width, 156px) - var(--api-test-filter-column-gap, 5px)) / 2
  );
  display: grid;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, var(--api-test-filter-column-width)));
  column-gap: var(--api-test-filter-column-gap, 5px);
  align-items: start;
}

.wb-select-menu--api-test-filter .api-test-filter-menu-primary-list {
  width: var(--api-test-filter-column-width);
  min-width: var(--api-test-filter-column-width);
  max-width: var(--api-test-filter-column-width);
  margin-top: var(--api-test-filter-primary-offset, 0px);
  gap: 6px;
  padding: 10px 8px;
  border-radius: 14px;
  background-color: var(--wb-theme-surface-bg);
  background-image: linear-gradient(180deg, var(--wb-select-surface-soft) 0%, var(--wb-select-surface) 100%);
  border: 1px solid color-mix(in srgb, var(--wb-theme-surface-border) 78%, rgba(var(--admin-accent-rgb), 0.26) 22%);
  box-shadow: none;
  max-height: var(--api-test-filter-primary-max-height, 320px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wb-select-menu--api-test-filter .api-test-filter-menu-submenu-stage,
.wb-select-menu--api-test-filter .api-test-filter-menu-tertiary-stage {
  width: var(--api-test-filter-column-width);
  min-width: var(--api-test-filter-column-width);
  max-width: var(--api-test-filter-column-width);
  padding: 10px 8px;
  border-radius: 14px;
  background-color: var(--wb-theme-surface-bg);
  background-image: linear-gradient(180deg, var(--wb-select-surface-soft) 0%, var(--wb-select-surface) 100%);
  border: 1px solid color-mix(in srgb, var(--wb-theme-surface-border) 78%, rgba(var(--admin-accent-rgb), 0.26) 22%);
  box-shadow: none;
  max-height: var(--api-test-filter-submenu-max-height, 320px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wb-select-menu--api-test-filter .api-test-filter-menu-submenu-stage {
  margin-top: var(--api-test-filter-submenu-offset, 0px);
}

/* 只有一列时，列表铺满整个下拉宽度（宽度已经跟选择框一致） */
.wb-select-menu--api-test-filter .api-test-filter-menu-layout--single-column .api-test-filter-menu-submenu-stage,
.wb-select-menu--api-test-filter .api-test-filter-menu-layout--single-column .api-test-filter-menu-tertiary-stage {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.wb-select-menu--api-test-filter .api-test-filter-menu-tertiary-stage {
  margin-top: var(--api-test-filter-tertiary-offset, 0px);
  max-height: var(--api-test-filter-tertiary-max-height, 320px);
}

.wb-select-menu--api-test-filter .api-test-filter-menu-submenu-stage[hidden],
.wb-select-menu--api-test-filter .api-test-filter-menu-tertiary-stage[hidden] {
  display: none;
}

.wb-select-menu--api-test-filter .api-test-filter-menu-submenu-stage.is-empty,
.wb-select-menu--api-test-filter .api-test-filter-menu-tertiary-stage.is-empty {
  min-width: var(--api-test-filter-column-width);
  max-width: var(--api-test-filter-column-width);
}

.wb-select-menu--api-test-filter .api-test-filter-menu-submenu-items {
  gap: 1px;
  align-content: start;
}

.wb-select-menu--api-test-filter .api-test-filter-menu-submenu-items.is-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wb-select-menu--api-test-filter .api-test-filter-menu-submenu-items.is-list {
  display: flex;
  flex-direction: column;
}

.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-primary,
.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-child {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  box-shadow: none;
  transform: none;
  transition:
    background .16s ease,
    color .16s ease,
    opacity .18s ease;
}

.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-primary {
  min-height: var(--api-test-filter-trigger-height, 46px);
  padding: 0 14px 0 16px;
  font-weight: 700;
  justify-content: space-between;
}

.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-child {
  align-items: flex-start;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-branch {
  justify-content: center;
  text-align: center;
}

.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-branch::after {
  content: '>';
  flex: 0 0 auto;
  margin-left: 10px;
  font-size: 13px;
  font-weight: 700;
  color: currentColor;
}

.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-primary:hover,
.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-primary.is-active,
.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-primary[aria-selected="true"],
.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-child:hover,
.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-child.is-active,
.wb-select-menu--api-test-filter .wb-select-option--api-test-filter-child[aria-selected="true"] {
  transform: none;
  box-shadow: none;
}

.wb-select--dispatch-scope .wb-select-trigger {
  justify-content: center;
}

.wb-select--dispatch-scope .wb-select-trigger__label {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-select-menu--dispatch-scope {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  filter: none;
  overflow: visible;
}

.wb-select-menu--dispatch-scope.is-open,
.wb-select-menu--dispatch-scope.is-closing {
  box-shadow: none;
  filter: none;
}

.wb-select-menu--dispatch-scope .wb-select-option,
.wb-select-menu--dispatch-scope.is-open .wb-select-option,
.wb-select-menu--dispatch-scope.is-closing .wb-select-option,
.wb-select--dispatch-scope.is-open .wb-select-option,
.wb-select--dispatch-scope.is-closing .wb-select-option {
  transition: background .16s ease, color .16s ease, opacity .16s ease;
}

.wb-select-menu--dispatch-scope::before,
.wb-select-menu--dispatch-scope::after,
.wb-select-menu--dispatch-scope.is-open::before,
.wb-select-menu--dispatch-scope.is-open::after,
.wb-select-menu--dispatch-scope.is-closing::before,
.wb-select-menu--dispatch-scope.is-closing::after {
  content: none;
  display: none;
}

.wb-select-menu--dispatch-scope .dispatch-scope-menu-layout {
  --dispatch-scope-column-gap: 5px;
  --dispatch-scope-column-width: calc(
    (var(--dispatch-scope-trigger-width, 200px) - var(--dispatch-scope-column-gap, 5px)) / 2
  );
  display: grid;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(2, minmax(0, var(--dispatch-scope-column-width)));
  column-gap: var(--dispatch-scope-column-gap, 5px);
  align-items: start;
}

.wb-select-menu--dispatch-scope:not(.wb-select-menu--system-monitoring-scope) .dispatch-scope-menu-layout {
  grid-template-columns:
    minmax(0, var(--dispatch-scope-primary-column-width, var(--dispatch-scope-column-width)))
    minmax(0, var(--dispatch-scope-child-column-width, var(--dispatch-scope-column-width)));
}

.wb-select-menu--system-monitoring-scope .dispatch-scope-menu-layout {
  --dispatch-scope-column-gap: var(--system-monitoring-scope-column-gap, 5px);
  grid-template-columns:
    minmax(0, var(--system-monitoring-scope-primary-column-width, var(--dispatch-scope-column-width)))
    minmax(0, var(--system-monitoring-scope-child-column-width, var(--dispatch-scope-column-width)));
}

.wb-select-menu--dispatch-scope .dispatch-scope-menu-primary-list {
  display: flex;
  flex-direction: column;
  width: var(--dispatch-scope-primary-column-width, var(--dispatch-scope-column-width));
  min-width: var(--dispatch-scope-primary-column-width, var(--dispatch-scope-column-width));
  max-width: var(--dispatch-scope-primary-column-width, var(--dispatch-scope-column-width));
  gap: 6px;
  padding: 10px 8px;
  border-radius: 14px;
  background-color: var(--wb-theme-surface-bg);
  background-image: linear-gradient(180deg, var(--wb-select-surface-soft) 0%, var(--wb-select-surface) 100%);
  border: 1px solid color-mix(in srgb, var(--wb-theme-surface-border) 78%, rgba(var(--admin-accent-rgb), 0.26) 22%);
  box-shadow: none;
  max-height: var(--dispatch-scope-primary-max-height, 320px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: stretch;
}

.wb-select-menu--dispatch-scope .dispatch-scope-menu-submenu-stage,
.wb-select-menu--dispatch-scope .dispatch-scope-menu-tertiary-stage {
  width: var(--dispatch-scope-child-column-width, var(--dispatch-scope-column-width));
  min-width: var(--dispatch-scope-child-column-width, var(--dispatch-scope-column-width));
  max-width: var(--dispatch-scope-child-column-width, var(--dispatch-scope-column-width));
  padding: 10px 8px;
  border-radius: 14px;
  background-color: var(--wb-theme-surface-bg);
  background-image: linear-gradient(180deg, var(--wb-select-surface-soft) 0%, var(--wb-select-surface) 100%);
  border: 1px solid color-mix(in srgb, var(--wb-theme-surface-border) 78%, rgba(var(--admin-accent-rgb), 0.26) 22%);
  box-shadow: none;
  max-height: var(--dispatch-scope-submenu-max-height, 320px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wb-select-menu--system-monitoring-scope .dispatch-scope-menu-primary-list {
  width: var(--system-monitoring-scope-primary-column-width, var(--dispatch-scope-column-width));
  min-width: var(--system-monitoring-scope-primary-column-width, var(--dispatch-scope-column-width));
  max-width: var(--system-monitoring-scope-primary-column-width, var(--dispatch-scope-column-width));
}

.wb-select-menu--system-monitoring-scope .dispatch-scope-menu-submenu-stage,
.wb-select-menu--system-monitoring-scope .dispatch-scope-menu-tertiary-stage {
  width: var(--system-monitoring-scope-child-column-width, var(--dispatch-scope-column-width));
  min-width: var(--system-monitoring-scope-child-column-width, var(--dispatch-scope-column-width));
  max-width: var(--system-monitoring-scope-child-column-width, var(--dispatch-scope-column-width));
}

.wb-select-menu--dispatch-scope .dispatch-scope-menu-submenu-stage {
  margin-top: var(--dispatch-scope-submenu-offset, 0px);
}

.wb-select-menu--dispatch-scope .dispatch-scope-menu-tertiary-stage {
  margin-top: var(--dispatch-scope-tertiary-offset, 0px);
  max-height: var(--dispatch-scope-tertiary-max-height, 320px);
}

.wb-select-menu--dispatch-scope .dispatch-scope-menu-submenu-stage[hidden],
.wb-select-menu--dispatch-scope .dispatch-scope-menu-tertiary-stage[hidden] {
  display: none;
}

.wb-select-menu--dispatch-scope .dispatch-scope-menu-submenu-stage.is-empty,
.wb-select-menu--dispatch-scope .dispatch-scope-menu-tertiary-stage.is-empty {
  min-width: var(--dispatch-scope-child-column-width, var(--dispatch-scope-column-width));
  max-width: var(--dispatch-scope-child-column-width, var(--dispatch-scope-column-width));
}

.wb-select-menu--system-monitoring-scope .dispatch-scope-menu-submenu-stage.is-empty,
.wb-select-menu--system-monitoring-scope .dispatch-scope-menu-tertiary-stage.is-empty {
  min-width: var(--system-monitoring-scope-child-column-width, var(--dispatch-scope-column-width));
  max-width: var(--system-monitoring-scope-child-column-width, var(--dispatch-scope-column-width));
}

.wb-select-menu--dispatch-scope .dispatch-scope-menu-submenu-items {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-content: start;
  align-items: stretch;
}

.wb-select-menu--dispatch-scope .wb-select-option--dispatch-primary,
.wb-select-menu--dispatch-scope .wb-select-option--dispatch-child,
.wb-select-menu--dispatch-scope .wb-select-option--dispatch-tertiary {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  box-shadow: none;
  transform: none;
  transition:
    background .16s ease,
    color .16s ease,
    opacity .18s ease;
}

.wb-select-menu--system-monitoring-scope .wb-select-option--dispatch-primary {
  min-height: var(--dispatch-scope-trigger-height, 46px);
  align-items: center;
}

.wb-select-menu--system-monitoring-scope .wb-select-option--dispatch-child {
  min-height: 40px;
}

.wb-select-menu--dispatch-scope .wb-select-option--dispatch-primary {
  min-height: var(--dispatch-scope-trigger-height, 46px);
  padding: 0 14px;
  font-weight: 700;
  justify-content: center;
}

.wb-select-menu--dispatch-scope .wb-select-option--dispatch-child,
.wb-select-menu--dispatch-scope .wb-select-option--dispatch-tertiary {
  width: 100%;
  color: #586d86;
}

.wb-select-menu--dispatch-scope .wb-select-option--dispatch-branch {
  position: relative;
  padding-left: 28px;
  padding-right: 28px;
  justify-content: center;
  font-weight: 700;
}

.wb-select-menu--dispatch-scope .wb-select-option--dispatch-branch::after {
  content: '>';
  position: absolute;
  right: 14px;
  top: 50%;
  margin-left: 0;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: currentColor;
}

.wb-select-menu--dispatch-scope .wb-select-option--dispatch-primary:hover,
.wb-select-menu--dispatch-scope .wb-select-option--dispatch-primary.is-active,
.wb-select-menu--dispatch-scope .wb-select-option--dispatch-primary[aria-selected="true"],
.wb-select-menu--dispatch-scope .wb-select-option--dispatch-child:hover,
.wb-select-menu--dispatch-scope .wb-select-option--dispatch-child.is-active,
.wb-select-menu--dispatch-scope .wb-select-option--dispatch-child[aria-selected="true"] {
  transform: none;
  box-shadow: none;
}

.app-selector-sidebar .wb-select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* 应用 / 游戏分类切换：图标 + 标题整体在选择框内居中 */
.app-selector-shell .wb-select-trigger {
  padding: 0 30px;
  justify-content: center;
  gap: 8px;
}

.app-selector-shell .wb-select-trigger__label {
  width: auto;
  flex: 0 1 auto;
  text-align: center;
}

.app-type-toggle {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--wb-theme-accent-border, rgba(var(--admin-accent-rgb), 0.3)) 80%, transparent);
  background: color-mix(in srgb, var(--wb-theme-surface-bg, #ffffff) 90%, rgb(var(--admin-accent-rgb)) 10%);
  color: color-mix(in srgb, var(--wb-theme-accent-text, #1f2d4a) 86%, rgb(var(--admin-accent-rgb)) 14%);
  cursor: pointer;
  z-index: 2;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-type-toggle:hover {
  border-color: rgba(var(--admin-accent-rgb), 0.62);
  background: color-mix(in srgb, var(--wb-theme-surface-bg, #ffffff) 82%, rgb(var(--admin-accent-rgb)) 18%);
}

.app-type-toggle:active {
  background: color-mix(in srgb, var(--wb-theme-surface-bg, #ffffff) 76%, rgb(var(--admin-accent-rgb)) 24%);
}

.app-type-toggle:focus-visible {
  outline: 2px solid rgba(var(--admin-accent-rgb), 0.65);
  outline-offset: 1px;
}

.app-type-toggle__icon {
  display: none;
  width: 16px;
  height: 16px;
}

.app-type-toggle__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* 游戏分类用高亮色，便于一眼区分 */
.app-type-toggle[data-app-type="game"] {
  border-color: rgba(139, 92, 246, 0.55);
  background: color-mix(in srgb, var(--wb-theme-surface-bg, #ffffff) 84%, rgb(139, 92, 246) 16%);
  color: color-mix(in srgb, #7c3aed 78%, var(--wb-theme-accent-text, #1f2d4a) 22%);
}

.app-type-toggle[data-app-type="game"]:hover {
  border-color: rgba(139, 92, 246, 0.78);
  background: color-mix(in srgb, var(--wb-theme-surface-bg, #ffffff) 76%, rgb(139, 92, 246) 24%);
}

html[data-admin-app-type="game"] .app-type-toggle__icon--game,
html[data-admin-app-type="application"] .app-type-toggle__icon--application {
  display: block;
}

/* 兜底：html 标记缺失时按按钮自身状态显示 */
html:not([data-admin-app-type]) .app-type-toggle[data-app-type="game"] .app-type-toggle__icon--game,
html:not([data-admin-app-type]) .app-type-toggle[data-app-type="application"] .app-type-toggle__icon--application {
  display: block;
}

.main-content {
  flex: 1;
  margin-left: 200px;
  min-width: 0;
  min-height: 100vh;
  padding: 0 var(--wb-admin-page-ratio-content-pad-x) 20px;
  background: var(--wb-theme-body-bg);
  position: relative;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  min-width: 0;
  /* 粉色背景横向铺满 .main-content 边框盒：负外边距抵消父级左右内边距，宽度相应补回 */
  width: calc(100% + 2 * var(--wb-admin-page-ratio-content-pad-x));
  margin-left: calc(-1 * var(--wb-admin-page-ratio-content-pad-x));
  margin-right: calc(-1 * var(--wb-admin-page-ratio-content-pad-x));
  /* 内容保持原“限宽 stage 居中”的水平位置：左右内边距 = 父内边距 P + (包含块宽-stage)/2；
     上下各 4*density 让内容在条内垂直居中 */
  padding: calc(4px * var(--admin-density-space-multiplier, 1))
    calc(var(--wb-admin-page-ratio-content-pad-x) + (100% - var(--wb-admin-stage-max-width)) / 2);
  /* 盒外底部安全距离：透出下方内容区背景（不填粉色），下拉不贴横条、下方内容不上移 */
  margin-bottom: calc(8px * var(--admin-density-space-multiplier, 1) + var(--admin-header-follow-gap));
  border-bottom: none;
  background: var(--wb-theme-sidebar-bg);
  border-left: 1px solid var(--admin-panel-border-soft, #e8e2dd);

}

.main-header[data-layout="title-actions"] {
  grid-template-columns: minmax(0, 1fr) auto;
}

.main-header[data-layout="title-center"] {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.main-header[data-layout="title-center-actions"] {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.main-header[data-layout="title-only"] {
  grid-template-columns: minmax(0, 1fr);
}

.application-management-shared-tabs-shell {
  width: 100%;
  max-width: var(--wb-admin-stage-max-width);
  /* 2026-11-08：与下方表格面板用同一套 8px 内缩（section 的 padding 也是 8px）。
     此前这里不内缩，蓝底标签栏比表格面板左右各宽 8px，看着“左右少一圈、没对齐”。 */
  padding: 0 8px;
  box-sizing: border-box;
  /* 上下间距全部交给 section 自己的 8px 内边距；
     原来这里 + 内层各带 8px 底边距，叠加成 16px，是订单/数据库等页面的两倍。 */
  margin: 0 auto;
}

/* 内层底边距由 index.html 的 applyToolbarStyle() 以内联 !important 写入，
   在那里单独归零（CSS 压不动内联 !important），此处不再重复声明。 */

.application-management-shared-tabs-shell[hidden] {
  display: none !important;
}

.header-left {
  flex: 1;
  min-width: 0;
  align-self: center;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  align-self: center;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--admin-panel-text-strong);
  margin-bottom: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--admin-panel-text-muted);
}

.breadcrumb-item {
  cursor: pointer;
  transition: color 0.3s ease;
}

.breadcrumb-item:hover {
  color: #2c3e50;
}

.breadcrumb-item.active {
  color: #2c3e50;
  font-weight: 500;
}

.breadcrumb-separator {
  color: #dcdfe6;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.icon {
  font-size: 16px;
}

.section {
  display: none;
  animation: none;
  opacity: 1;
  transform: none;
  max-width: var(--wb-admin-stage-max-width);
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.section.active {
  display: block;
}

#applications.section.active,
#orders.section.active,
#message-center.section.active,
#member-users.section.active,
#packages.section.active,
#logs.section.active,
#api.section.active,
#distribution.section.active,
#shop-products.section.active,
#game-center.section.active,
#super-guard.section.active {
  display: flex !important;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

#applications.section,
#applications.section.active,
#message-center.section,
#message-center.section.active,
#logs.section,
#logs.section.active,
#api.section,
#dispatch-center.section,
#api.section.active,
#dispatch-center.section.active {
  animation: none !important;
  opacity: 1;
  transform: none !important;
}

.section-header {
  margin-bottom: var(--admin-table-layout-gap);
}

.section-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-panel-text-strong);
  margin-bottom: 6px;
}

.section-description {
  font-size: 14px;
  color: var(--admin-panel-text-muted);
}

.card {
  background: var(--admin-panel-surface);
  background-image: var(--admin-panel-surface-image);
  border: 1px solid var(--admin-panel-border-soft);
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: var(--admin-table-layout-gap);
  overflow: hidden;
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--admin-panel-border-soft);
  background: var(--admin-panel-header-surface);
  background-image: var(--admin-panel-header-image);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-panel-text-strong);
  margin: 0;
}

.member-management-shell {
  margin-bottom: var(--admin-table-layout-gap);
}

.member-management-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: var(--admin-panel-muted-surface);
  background-image: var(--admin-panel-muted-surface-image);
  border: 1px solid var(--admin-panel-border-soft);
  box-shadow: none;
}

.member-management-tab {
  min-width: 108px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--admin-panel-text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.member-management-tab:hover {
  color: var(--admin-panel-text-strong);
  background: rgba(var(--admin-accent-rgb), 0.08);
}

.member-management-tab.active {
  background: var(--wb-theme-button-strong);
  color: var(--wb-theme-button-text);
  border-color: var(--wb-theme-button-border);
  box-shadow: none;
}

.member-management-header {
  align-items: flex-start;
  row-gap: var(--admin-table-layout-gap);
  column-gap: 14px;
}

.member-management-header--catalog-layout {
  align-items: center;
  padding: 10px 20px 8px;
  border-bottom: none;
  background: transparent !important;
}

.member-management-primary-shell {
  margin-bottom: var(--admin-table-layout-gap);
}

#packages #memberManagementPrimaryTabs.api-unified-main-tabs-shell {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

.member-management-workspace-header {
  margin: var(--admin-table-layout-gap) 12px 0;
  min-height: calc(var(--admin-tab-height) + 18px);
  padding: 8px 12px !important;
  width: auto !important;
  min-width: 0;
  align-self: stretch;
  border-radius: 18px !important;
  border: 1px solid var(--admin-panel-border-soft) !important;
  background: var(--admin-panel-surface) !important;
  box-shadow: none !important;
}

#packages .api-unified-main-tabs-shell > .member-management-view-tab.active,
#packages .member-management-tabs > .member-management-tab.active {
  box-shadow: none !important;
}

#packages .member-management-workspace-header {
  box-shadow: none !important;
}

.member-management-header--catalog-layout .member-management-header-copy {
  display: inline-flex;
  align-items: flex-start;
  flex: 0 0 auto;
}

.member-management-header--catalog-layout .member-management-header-actions {
  flex: 0 0 auto;
}

.member-management-workspace-header .member-management-header-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.member-management-workspace-header .member-management-header-text {
  max-width: min(100%, 760px);
}

.member-management-workspace-header .member-management-header-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.member-management-workspace-header + .card-body {
  padding-top: 0;
}

.member-management-header-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-management-header-copy p {
  margin: 0;
  font-size: 12px;
  color: #6b7e95;
  line-height: 1.6;
}

.member-management-header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.member-management-header-text h4 {
  margin: 0;
}

.member-management-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.member-management-pane {
  display: none;
  min-width: 0;
  min-height: 0;
}

.member-management-pane.active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.member-management-addon-toolbar {
  justify-content: space-between;
}

.member-management-addon-hint {
  flex: 1;
  min-width: 240px;
  color: #657992;
  font-size: 13px;
  line-height: 1.7;
}

.category {
  display: flex;
  align-items: center;
}

.category-label {
  background: var(--wb-theme-success-soft);
  color: var(--wb-theme-success-text);
  border: 1px solid var(--wb-theme-success-border);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter {
  position: relative;
}

.card-body {
  padding: 12px;
}

#orders.section.active {
  display: flex !important;
  min-height: 0;
  overflow: hidden;
  animation: none !important;
  opacity: 1;
  transform: none !important;
}

#orders.section.active.orders-table-fit {
  height: var(--orders-table-viewport-height, var(--admin-first-paint-table-viewport-height));
  min-height: var(--orders-table-viewport-height, var(--admin-first-paint-table-viewport-height));
  overflow: hidden;
}

#orders.section.active.orders-table-fit .admin-section-layout-card,
#orders.section.active.orders-table-fit .admin-section-layout-card > .card-body,
#orders.section.active.orders-table-fit .order-management-body,
#orders.section.active.orders-table-fit .order-management-table-shell,
#orders.section.active.orders-table-fit .order-management-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
}

#orders.section.active.orders-table-fit .admin-section-layout-card > .card-header,
#orders.section.active.orders-table-fit .order-management-filters,
#orders.section.active.orders-table-fit .order-management-pagination {
  flex: 0 0 auto;
}

#orders .admin-section-layout-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--admin-section-shell-gap);
  min-height: 0;
}

#orders .admin-section-layout-card > .card-header {
  flex: 0 0 auto;
}

#orders .admin-section-layout-card > .card-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

#orders .card {
  min-width: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

#orders .order-management-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  padding-bottom: 0;
  --admin-table-visible-row-count: 10;
}

#orders .order-management-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

#orders .order-management-title-row h4 {
  margin: 0;
  flex: 0 0 auto;
}

#member-users .member-management-users-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

#orders .order-management-filters,
#member-users .member-management-users-toolbar {
  margin-bottom: var(--admin-table-layout-gap);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  /* 与下方表格容器的边框保持一致 */
  border: 1px solid var(--admin-panel-border-soft);
}

#orders #orderManagementKeyword,
#member-users #memberUserSearchInput {
  flex: 1 1 340px;
  min-width: 260px !important;
}

#orders .order-management-filters .form-select,
#member-users .member-management-users-toolbar .form-select {
  flex: 0 0 220px;
  min-width: 180px;
}

#applications .application-filter-toolbar .order-management-summary,
#orders .order-management-summary,
#member-users .member-management-users-toolbar .order-management-summary {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin-right: auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--admin-panel-text-strong);
  white-space: nowrap;
}

#orders .order-management-table-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid var(--admin-panel-border-soft);
  border-bottom: none;
  border-radius: 16px;
  background: var(--admin-panel-surface);
  box-shadow: none;
}

#orders .order-management-table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  /* 窄窗口（表格跌到 770px 下限）时允许横向滚动，保证列宽不被压扁 */
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: thin;
}

#orders #orderManagementTable {
  width: 100%;
  /* 20261116ordercols4：770px = 11 列按「有垂直滚动条时容器 771px」算出的最小合规总宽。
     窗口够宽（≥1190）时表格吃满容器、不出横向滚动条；
     浏览器缩到 1080 这类窄窗口才横向滚一点，按钮和时间不会被压变形。 */
  min-width: 770px;
  height: auto;
  table-layout: fixed;
}

#orders #orderManagementTable th,
#orders #orderManagementTable td {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  /* 20261116orderalign：th 与 td 内边距必须完全一致（原来 th 6px、td 8px，
     表头文字比下面数据靠左 2px —— 用户看到的"表头跟数据偏了"）。
     统一 4px：既对齐，又给 11 列腾出 11×8=88px。 */
  padding-left: 4px;
  padding-right: 4px;
}

/* 20261116orderalign：表头排序箭头 13px + 4px 间距，9 个可排序列一共吃掉 150px。
   收成 10px 箭头 + 2px 间距后每列省 5px，这点宽度比箭头本身值钱 ——
   「支付通道 / 回调状态 / 支付时间」这类 4 字表头正好卡在它的宽度上。 */
#orders #orderManagementTable .member-th-sort {
  gap: 2px;
}

#orders #orderManagementTable .member-th-sort-arrow {
  font-size: 11px;
}

/* 20261116orderalign：本表 11 列，14px 的 4 字表头（支付通道 / 回调状态 /
   支付时间）每个要 78px，三个「小数据」列光表头就占 234px。
   表头降到 13px 每个省 8px，把宽度还给订单号 / 会员内容。
   ★ style-08.css 里有 `#orders .data-table th { font-size: 14px !important }`，
   这里选择器特异性更高 + !important 才压得住。 */
#orders #orderManagementTable th {
  font-size: 13px !important;
}

#orders #orderManagementTable tbody tr:not(.table-state-row):not(.admin-table-spacer-row),
#orders #orderManagementTable .admin-table-spacer-row {
  height: var(--order-management-row-height, var(--admin-table-row-height));
  max-height: var(--order-management-row-height, var(--admin-table-row-height));
}

#orders #orderManagementTable tbody td,
#orders #orderManagementTable .admin-table-spacer-cell {
  height: var(--order-management-row-height, var(--admin-table-row-height));
  max-height: var(--order-management-row-height, var(--admin-table-row-height));
}

#orders #orderManagementTable > tbody:has(> .table-state-row--fill),
#orders #orderManagementTable > tbody > .table-state-row--fill,
#orders #orderManagementTable > tbody > .table-state-row--fill > .table-state-cell {
  height: auto;
}

#orders #orderManagementTable > tbody > .table-state-row--fill > .table-state-cell > .table-state-content--fill {
  --table-state-row-height: var(--order-management-row-height, var(--admin-table-row-height));
  box-sizing: border-box;
  min-height: calc(var(--order-management-row-height, var(--admin-table-row-height)) * var(--admin-table-visible-row-count));
  height: auto;
}

/* ===== 20261116ordercols：订单表列宽重排，把宽度让给操作列 =====
   现象（用户截图，1080 窗口）：操作列的四个按钮被压成「详 / 记 / 发 / 记」，
   文字只剩半个字，完全点不准。
   根因两层：
   a) 操作列固定 11%（1080 下 76px、1440 下 111px），而「详情 / 补记回调 /
      补发权益 / 标记退款」四个按钮一行至少要 217px，物理上放不下；
   b) 按钮自身还带 max-width:100% + overflow:hidden + min-width:0，
      在 flex 行里被均匀压扁，于是每个按钮只剩 ~18px。
   同时其余列按 5~13% 平摊，与内容需求对不上：应用列 1440 下拿 121px 只用 60px，
   订单号 / 支付时间反倒被省略 —— 这就是「表头间距不合理」。
   改法（不引入横向滚动，版式与原来一致）：
   之后（20261116ordercols2/3）操作列只剩「记回调 / 记退款」两个动作，
   订单号后面又补了「用户名」列，共 11 列。
   20261116ordercols4（用户反馈）：回调状态列 11.2% 但内容只有 58px，右边一片空；
   金额贴着左边、离支付通道远；支付时间 90px 装不下「2026-02-16 10:30:00」（需 126.8px），
   秒数被截掉。按实测内容宽重排为
   6.61/5.47/8.20/7.59/7.59/8.88/9.60/10.70/10.70/11.50 + 操作 13.16%（合计 100%）。
   百分比是按「有 10 行数据、出现垂直滚动条后容器只剩 771px」算的，
   不是按空表的 787px —— 否则一有数据表头就集体裁 1~2px。
   - 回调状态 87.7 → 82（表头 6+70+6=82，「已回调」徽标 66，右侧不再留 20px 空白）；
   - 支付通道 87.7 → 82（表头正好 82，内容 56，右侧那段空白也收掉了）；
   - 金额 54.8 → 74 且 td 右对齐（padding 4px），「￥1,299.00」完整显示，
     数字右边缘距支付通道列只剩 4px，看着是贴着走的；
   - 支付时间 90 → 89，口径与其它表格统一：只显示日期（2026-02-16），
     完整时间移到 title 悬停显示，14px 单行 88px 足够，不再需要降字号或折行；
   - 回调状态、支付通道各少 5.7px，把宽度让给支付时间与订单号，
     整表 11 列都在「表头 + 内容」所需宽度之上（按有竖滚动条的 771px 容器算的）。
   操作按钮退出 ellipsis 压缩，字号 12px、左右 padding 4px、间距 3px，
   两个三字按钮一行 93px，列内余量充足，任何一档窗口都不再切字。 */
/* ★ 20261116orderalign 列宽策略 ★
   11 列挤在 787px 里，物理上不可能都舒服，所以按"内容有没有用"分两档：
   A. 小数据列（序号 / 用户名 / 金额 / 支付通道 / 回调状态 / 支付时间 / 操作）
      给「表头刚好放得下」的固定 px，宽屏也不会被拉出大片空白；
   B. 大内容列（订单号 / 会员内容）不写宽度 —— table-layout:fixed 下
      它们平分所有剩余空间，窗口越宽、多出来的宽度全进这两列；
   C. 应用 / 终端用百分比：名字要跟着表格一起变宽才读得全，
      但占比压得很低（合计 14%），只在宽屏多拿一点。
   每个小列都在「表头/内容」所需宽度上再放 4px（左右各 2px）留白，
   不然文字贴着竖线，看着又挤又难看。
   → 1190 窗口：订单号 + 会员内容各约 79px（原来是 60 / 70）；
     1440 窗口：这两列各约 186px，订单号和会员内容都能整条显示。 */
#orders #orderManagementTable th:nth-child(1),
#orders #orderManagementTable td:nth-child(1) {
  width: 42px;
}

#orders #orderManagementTable th:nth-child(2),
#orders #orderManagementTable td:nth-child(2) {
  width: 6.4%;
}

#orders #orderManagementTable th:nth-child(3),
#orders #orderManagementTable td:nth-child(3) {
  width: 7.8%;
}

/* 4「订单号」、6「会员内容」故意不写宽度：
   table-layout: fixed 下，没有声明宽度的列会平分所有剩余空间。
   于是窗口越宽，多出来的宽度全进这两列，别的列不会被拉出大片空白。 */

#orders #orderManagementTable th:nth-child(5),
#orders #orderManagementTable td:nth-child(5) {
  width: 50px;
}

#orders #orderManagementTable th:nth-child(7),
#orders #orderManagementTable td:nth-child(7) {
  width: 80px;
}

#orders #orderManagementTable th:nth-child(8),
#orders #orderManagementTable td:nth-child(8) {
  width: 78px;
}

#orders #orderManagementTable th:nth-child(9),
#orders #orderManagementTable td:nth-child(9) {
  width: 78px;
}

#orders #orderManagementTable th:nth-child(10),
#orders #orderManagementTable td:nth-child(10) {
  width: 86px;
}

#orders #orderManagementTable th:nth-child(11),
#orders #orderManagementTable td:nth-child(11) {
  width: 104px;
  overflow: visible;
  text-overflow: clip;
}

/* ★★ 20261116orderalign：「表头跟数据偏了」的原因 ★★
   本表数据单元格是 .data-table td 的 text-align: center（全站统一样式），
   表头也是 center —— 两边本来就一致，唯一例外是金额列：
   数据被改成右对齐（数字对齐好看），表头却还是居中，
   于是「金额」偏左、「￥12.50」贴右，用户截图红框圈的就是这一处。
   改法：金额列的表头和数据一起右对齐（其余列保持 center/center）。
   ★ 别把表头改成 left —— 数据是居中的，改了反而让订单号 / 会员内容
   这类宽列出现几十 px 的新偏差。 */
#orders #orderManagementTable thead th:nth-child(7),
#orders #orderManagementTable td:nth-child(7) {
  text-align: right;
}

/* 20261116ordercols5：支付时间与其它表格统一口径 —— 单元格只显示日期
   （2026-02-16），完整到秒的时间由 JS 放进 title，悬停才看。
   于是 14px 单行只需 71.8px（+16 padding = 87.8），整列宽度回到 88 就够，
   不用降字号、不用折两行，和其它表的时间列长得一样。
   等宽数字让上下行日期对齐。 */
#orders #orderManagementTable td:nth-child(10) {
  font-variant-numeric: tabular-nums;
}

/* 按钮组：一行排开，宽列里限宽居中，避免 1920 下两个小按钮散在一大段空白中间 */
#orders #orderManagementTable td:nth-child(11) > div {
  gap: 3px !important;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

#orders #orderManagementTable code,
#orders #orderManagementTable .admin-status-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#orders #orderManagementTable code {
  display: inline-block;
  vertical-align: middle;
}

/* 操作按钮不参与压缩：宽度交给内容，四个按钮一行放得下 */
#orders #orderManagementTable .btn-sm {
  min-width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  flex: 0 0 auto;
  margin-left: 0;
  margin-right: 0;
  padding-left: 4px !important;
  padding-right: 4px !important;
  font-size: 12px !important;
}

/* Keep order-table dividers from one 1px source; empty-state rows draw their own grid. */
#orders #orderManagementTable {
  border-collapse: collapse;
  border-spacing: 0;
}

#orders #orderManagementTable thead th,
#orders #orderManagementTable tbody td:not(.table-state-cell) {
  border-bottom: 1px solid var(--admin-panel-border-soft) !important;
}

#orders #orderManagementTable .table-state-cell {
  border-bottom: 0 !important;
}

#orders #orderManagementTable .admin-table-spacer-cell {
  border-bottom: 1px solid var(--admin-panel-border-soft) !important;
}

#orders .order-management-pagination {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0;
  min-height: var(--admin-table-pagination-height);
  padding: var(--admin-table-pagination-padding-y) 0;
  border-top: none;
  background: var(--admin-table-bar-surface);
  background-image: var(--admin-table-bar-image);
}

#orders .order-management-pagination-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

#logs.section.active {
  --logs-table-visible-row-count: 10;
  --logs-table-row-height: var(--admin-table-row-height);
  --logs-table-header-height: var(--admin-table-header-height);
  --logs-table-fixed-body-height: calc(var(--logs-table-row-height) * var(--logs-table-visible-row-count));
  --logs-table-fixed-height: calc(var(--logs-table-header-height) + var(--logs-table-fixed-body-height));
  display: flex;
  min-height: 0;
  gap: var(--admin-table-layout-gap);
  overflow: hidden;
}

#logs.section.active.logs-table-fit {
  height: var(--logs-table-viewport-height, var(--admin-first-paint-table-viewport-height));
  min-height: var(--logs-table-viewport-height, var(--admin-first-paint-table-viewport-height));
  overflow: hidden;
}

#logs > .logs-toolbar-card-header,
#logs > .logs-table-shell {
  width: 100%;
  min-width: 0;
}

#logs > .logs-toolbar-card-header {
  flex: 0 0 auto;
  border-radius: 16px !important;
  box-shadow: none !important;
  overflow: hidden;
}

#logs > .logs-table-shell {
  flex: 1 1 auto;
  height: calc(var(--logs-table-viewport-height, var(--admin-first-paint-table-viewport-height)) - var(--logs-toolbar-shell-height, 58px) - var(--admin-table-layout-gap));
  min-height: calc(var(--logs-table-viewport-height, var(--admin-first-paint-table-viewport-height)) - var(--logs-toolbar-shell-height, 58px) - var(--admin-table-layout-gap));
  min-height: 0;
  box-shadow: none !important;
}

#logs.section.active.logs-table-fit > .logs-table-shell {
  height: auto;
  min-height: 0;
}

#logs.section.active.logs-table-fit > .logs-table-shell > .logs-table-scroll {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
}

#logs.section.active.logs-table-fit > .logs-table-shell > .logs-pagination {
  flex: 0 0 auto;
}

#applications .application-management-pane--table-fit {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  /* 顶部 6px：section 的 margin-top:-6px 上拉后标签栏底→内容只剩 2px，
     补 6px 恢复 8px 标准间距（与监控页签面板一致） */
  padding: 6px 0 0;
}

#applications .application-management-pane--table-fit.active {
  display: flex !important;
}

#applications .application-management-pane--table-fit > .card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}

#applications .application-management-list-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
}

#applications .application-management-table-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  border: 1px solid var(--admin-panel-border-soft);
  border-radius: 12px;
  background: var(--admin-panel-surface);
}

#applications .application-management-table-scroll {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
}

#applications {
  --application-management-table-row-height: 52px;
}

#applications #applicationTable {
  margin-bottom: 0;
  }

#applications #applicationTable th {
  height: var(--application-management-table-header-height, var(--admin-table-header-height)) !important;
  max-height: var(--application-management-table-header-height, var(--admin-table-header-height)) !important;
  min-height: 0 !important;
}
#applications #applicationTable thead tr {
  height: var(--application-management-table-header-height, var(--admin-table-header-height)) !important;
  min-height: 0 !important;
}

#applications #applicationTable tbody tr:not(.table-state-row),
#applications #applicationTable td {
  height: var(--application-management-table-row-height, var(--admin-table-row-height));
  
}

#applications #applicationTable .admin-table-spacer-row,
#applications #applicationTable .admin-table-spacer-cell {
  height: var(--application-management-table-row-height, var(--admin-table-row-height));
  
}

#applications #applicationTable > tbody > .table-state-row--fill > .table-state-cell > .table-state-content--fill {
  --table-state-row-height: var(--application-management-table-row-height, var(--admin-table-row-height));
  min-height: var(--application-management-table-fixed-body-height, var(--admin-table-fixed-body-height));
}

#applications .application-management-pagination {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  min-height: var(--admin-table-pagination-height);
  padding: var(--admin-table-pagination-padding-y) 0;
  border-top: none;
  background: var(--admin-table-bar-surface);
  background-image: var(--admin-table-bar-image);
}

#applications .application-management-pagination-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

#applications #applicationManagementOverviewPane.active {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

#applications #applicationManagementOverviewPane.active > .application-overview-monitor-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
  /* 顶部 6px：section 被 .main-content>section 的 margin-top:-6px 上拉，
     标签栏底 → 内容只剩 2px；补 6px 恢复 8px 标准间距 */
  padding: 6px 0 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

#applications #applicationManagementOverviewPane.active .application-overview-layout,
#applications #applicationManagementOverviewPane.active .application-overview-section,
#applications #applicationManagementOverviewPane.active .application-overview-section--combined {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

#applications #applicationManagementOverviewPane.active .application-overview-stats {
  flex: 0 0 auto;
}

#applications #applicationManagementOverviewPane.active .application-overview-charts {
  flex: 1 1 auto;
  min-height: 0;
}


#applications #applicationManagementOverviewPane.active .application-overview-charts .chart-card {
  min-height: 0;
  /* 终端图胶囊标签：卡片左右内边距归零给胶囊让位，底部 10px 让横轴贴近卡片底边 */
  padding: 20px 0 10px;
}

#applications #applicationManagementOverviewPane.active .application-overview-charts .chart-body {
  flex: 1 1 auto;
  height: auto;
  min-height: 220px;
  /* 画布容器底部内边距归零：否则与卡片 20px 叠加成 32px 大空隙，左右仍留 18px 对齐视觉 */
  padding: 8px 18px 0;
}

#distribution .partner-tab-content.active {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.stats-list {
  margin-top: var(--admin-table-layout-gap);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  row-gap: var(--admin-table-layout-gap);
  column-gap: 20px;
  margin-bottom: var(--admin-table-layout-gap);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--admin-panel-surface);
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid var(--admin-panel-border-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: none !important;
  box-shadow: none;
}

.stat-content {
  flex: 1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--wb-theme-accent-soft) 62%, var(--wb-theme-surface-bg) 38%);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--wb-theme-surface-bg) 92%, rgb(var(--admin-accent-rgb)) 8%) 0%,
    color-mix(in srgb, var(--wb-theme-surface-bg) 82%, rgb(var(--admin-accent-rgb)) 18%) 100%
  );
  color: var(--wb-theme-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: 1px solid var(--wb-theme-accent-border);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.stat-icon .icon-orbit {
  stroke: color-mix(in srgb, var(--wb-theme-accent-text) 42%, transparent 58%);
}

.stat-icon .icon-primary {
  stroke: var(--wb-theme-accent-text);
}

.stat-icon .icon-secondary {
  stroke: var(--admin-panel-text-muted);
}

.stat-icon .icon-pulse {
  stroke: var(--wb-theme-accent-text);
}

.stat-icon .icon-core {
  fill: var(--wb-theme-accent-text);
  stroke: color-mix(in srgb, var(--wb-theme-accent-text) 56%, var(--admin-panel-text-strong) 44%);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--admin-panel-text-strong);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--admin-panel-text-muted);
  font-weight: 500;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--admin-panel-surface);
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: none;
  border: 1px solid var(--admin-panel-border-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.table-wrapper {
  overflow-x: auto;
}

th, td {
  height: var(--admin-table-row-height);
  max-height: var(--admin-table-row-height);
  padding: 0 var(--admin-table-cell-padding-x, 15px);
  text-align: left;
  border-bottom: 1px solid var(--admin-panel-border-soft);
  line-height: var(--admin-table-cell-line-height, 20px);
  vertical-align: middle;
}

th {
  height: var(--admin-table-header-height);
  max-height: var(--admin-table-header-height);
  background: var(--admin-table-header-surface);
  background-image: var(--admin-table-header-image);
  font-weight: 600;
  font-size: 14px;
  color: var(--admin-panel-text-muted);
  white-space: nowrap;
}

tr:hover {
  background: var(--admin-panel-muted-surface);
  background-image: var(--admin-panel-muted-surface-image);
}

.status-tag {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

.status {
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.status.active {
  color: var(--wb-theme-success-text);
}

.status.inactive {
  color: var(--wb-theme-danger-text);
}

.status-active {
  color: var(--wb-theme-success-text);
}

.status-inactive {
  color: var(--wb-theme-danger-text);
}

.status-downgrade {
  color: var(--wb-theme-warning-text);
}

.status-pending {
  color: var(--wb-theme-warning-text);
}

.status-completed {
  color: var(--wb-theme-success-text);
}

.status-failed {
  color: var(--wb-theme-danger-text);
}

.expiry-normal {
  color: var(--wb-theme-success-text);
  font-weight: 500;
}

.expiry-soon {
  color: var(--wb-theme-warning-text);
  font-weight: 500;
}

.expiry-warning {
  color: var(--wb-theme-warning-text);
  font-weight: 500;
}

.expiry-expired {
  color: var(--wb-theme-danger-text);
  font-weight: 500;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  min-width: 0;
  align-self: center;
  margin-top: 0;
}

/* Keep the terminal scope centered independently from header actions. */

.global-terminal-scope-shell {
  justify-self: center;
  align-self: center;
  min-width: 0;
  max-width: 100%;
}

.global-terminal-scope-shell[hidden] {
  display: none !important;
}

.global-terminal-scope-shell .login-preview-device-selector {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--admin-panel-border, rgba(120, 130, 150, 0.25));
  background: var(--admin-panel-header-surface) !important;
  background-image: var(--admin-panel-header-image) !important;
  position: static;
  z-index: auto;
  overflow: visible;
  box-shadow: none;
}

.global-terminal-scope-shell .login-preview-device-button {
  flex: 1 1 0;
  min-width: 116px;
}

/* 20261113scope：终端范围合并为单下拉框（替代三按钮 + 单端小箭头） */
.global-terminal-scope-shell .global-terminal-scope-selector {
  width: max-content;
  max-width: 100%;
}

.global-terminal-scope-shell #globalTerminalScopeSelect {
  width: 208px;
  min-width: 208px;
  height: 42px;
  padding: 0 34px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--admin-panel-border, rgba(120, 130, 150, 0.25));
  background: var(--admin-panel-header-surface, #fff);
  color: var(--admin-panel-text-strong, #33465d);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.header-divider {
  width: 100%;
  height: 1px;
  background: var(--admin-panel-border-strong);
  margin: -72px 0 20px 0;
}

.page-title {
  margin-bottom: 0;
  font-size: 18px;
}

.section-description {
  margin-bottom: 0;
  font-size: 12px;
  color: var(--admin-panel-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-renewal-settings {
  display: flex;
  row-gap: var(--admin-table-layout-gap);
  column-gap: 20px;
  margin-bottom: var(--admin-table-layout-gap);
  padding: 15px;
  background: var(--admin-panel-muted-surface);
  background-image: var(--admin-panel-muted-surface-image);
  border-radius: 8px;
  border: 1px solid var(--admin-panel-border-soft);
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setting-item label {
  font-weight: 500;
  color: var(--admin-panel-text-strong);
  white-space: nowrap;
}

.setting-item .form-select,
.setting-item .form-control {
  min-width: 150px;
}

.level-comparison-modal {
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  margin-top: 20px;
}

.comparison-table thead {
  background: var(--wb-theme-button-strong);
  color: var(--wb-theme-button-text);
}

.comparison-table th {
  height: var(--admin-table-header-height);
  max-height: var(--admin-table-header-height);
  padding: 0 12px;
  text-align: left;
  vertical-align: middle;
  font-weight: 600;
  border: 1px solid var(--admin-panel-border-strong);
}

.comparison-table td {
  padding: 12px;
  border: 1px solid var(--admin-panel-border-soft);
  text-align: left;
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--admin-panel-muted-surface);
  background-image: var(--admin-panel-muted-surface-image);
}

.comparison-table tbody tr:hover {
  background: var(--admin-panel-surface-strong);
  background-image: var(--admin-panel-surface-strong-image);
}

.comparison-table tbody tr td:first-child {
  font-weight: 600;
  background: var(--admin-panel-muted-surface);
  background-image: var(--admin-panel-muted-surface-image);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 0;
  background: transparent;
  background-image: none;
  border-radius: 0;
  border: none;
}

.filters input,
.filters select {
  padding: 12px 16px;
  border: 1px solid var(--wb-theme-modal-field-border);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  transition: all 0.3s ease;
  min-width: 200px;
  min-height: 44px;
  background: var(--wb-theme-modal-field-bg);
  color: var(--admin-panel-text-strong);
  box-shadow: none;
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--wb-theme-accent-border-strong);
  box-shadow: none;
}

.filters input:hover,
.filters select:hover {
  border-color: var(--wb-theme-modal-field-border);
}

.form-input,
.form-select {
  padding: 12px 16px;
  border: 1px solid var(--wb-theme-modal-field-border);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  transition: all 0.3s ease;
  min-width: 200px;
  min-height: 44px;
  background: var(--wb-theme-modal-field-bg);
  color: var(--admin-panel-text-strong);
  box-shadow: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--wb-theme-accent-border-strong);
  box-shadow: none;
}

.form-input:hover,
.form-select:hover {
  border-color: var(--wb-theme-modal-field-border);
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: var(--admin-table-layout-gap);
  padding-top: 15px;
  border-top: 1px solid #b0b4bb;
}

.trends-header {
  margin-bottom: var(--admin-table-layout-gap);
}

.trends-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: var(--admin-table-layout-gap);
  column-gap: 16px;
  margin-bottom: var(--admin-table-layout-gap);
}

.trend-stat-card {
  background: var(--admin-panel-surface);
  border: 1px solid var(--admin-panel-border-soft);
  border-radius: 12px;
  padding: 16px;
  box-shadow: none;
}

.trend-stat-label {
  font-size: 14px;
  color: var(--admin-panel-text-muted);
  margin-bottom: 8px;
}

.trend-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--admin-panel-text-strong);
}



/* 拖拽排序 */


.nav-item.dragging {
  opacity: 0.4;
  transform: scale(0.98);
}
.nav-bottom-icon-btn.dragging {
  opacity: 0.4;
  transform: scale(0.9);
}
.drag-insert-indicator {
  height: 3px;
  margin: 2px 8px;
  border-radius: 2px;
  background: var(--wb-theme-accent-strong);
  pointer-events: none;
  flex-shrink: 0;
}
.drag-insert-indicator--vertical {
  width: 3px;
  height: 24px;
  margin: 0 2px;
  align-self: center;
}

/* 第二排分布类卡片：三行 = 近7天 / 近30天 / 近90天，行撑满宽度、标签定宽、数值右对齐 */
.dashboard-page--advanced .stat-card[data-node-metric] .dashboard-stat-data > [data-node-row] {
  width: 100% !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}
.dashboard-page--advanced .stat-card[data-node-metric] [data-node-label] {
  flex: 0 0 50px !important;
  width: 50px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-page--advanced .stat-card[data-node-metric] [data-node-row] > span:last-child {
  flex: 0 0 auto !important;
  min-width: 0;
  justify-content: flex-start !important;
}
