/* 收纳师管理后台 custom.css 同源 */
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: #d1d5db; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background-color: #9ca3af; }

.tab-active-curve::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -16px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 0% 0%, transparent 16px, #eef4ff 16px);
  pointer-events: none;
}
.tab-active-curve::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -16px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 100% 0%, transparent 16px, #eef4ff 16px);
  pointer-events: none;
}

/* 品牌 Tab（质检 / 数据分析共用） */
.cs-brand-tab {
  display: flex; align-items: center; padding: 10px 20px; font-size: 13px;
  border-radius: 8px 8px 0 0; transition: color .15s, background .15s, border-color .15s;
  border: 1px solid transparent; background: #F2F3F5; color: #1a1a1a; cursor: pointer;
}
.cs-brand-tab:hover:not(.cs-brand-tab-active) { background: #e8e9eb; }
.cs-brand-tab-active {
  background: #fff; color: #1890FF; font-weight: 500;
  border-color: #f0f0f0; border-bottom-color: #fff; margin-bottom: -1px; position: relative; z-index: 10;
}

/* 数据分析 · 分组表头（弱色条，对齐主控台白卡风格） */
.analytics-th-group {
  font-weight: 500;
  color: #666;
  background: #fbfbfb;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px;
  font-size: 12px;
}
.analytics-th-group.in { border-top: 2px solid #10b981; }
.analytics-th-group.out { border-top: 2px solid #f59e0b; }
.analytics-th-group.resp { border-top: 2px solid #1890FF; }
.analytics-th-group.wx { border-top: 2px solid #a855f7; }
.analytics-th-cell.is-sortable { cursor: pointer; user-select: none; }
.analytics-th-cell.is-sortable:hover { color: #1890FF; }
tr.row-summary { background: #f8fafc !important; font-weight: 500; }
tr.row-summary td { border-top: 2px solid #e8e8e8; }
td.analytics-delta-down { color: #ff4d4f; }
td.analytics-delta-up { color: #10b981; }
td.analytics-delta-flat { color: #999; }

/* 数据分析 · 指标口径 / 超时条 / 视图切换 */
.cs-metric-hint {
  margin-top: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fafbfc;
  overflow: hidden;
}
.cs-metric-hint__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  font-size: 12px;
  color: #666;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.cs-metric-hint__toggle:hover { color: #1890FF; }
.cs-metric-hint__body {
  padding: 0 12px 12px;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  border-top: 1px solid #f0f0f0;
}
.cs-metric-hint__body.is-collapsed { display: none; }
.cs-metric-hint__body dl { margin: 10px 0 0; display: grid; gap: 8px; }
.cs-metric-hint__body dt { color: #333; font-weight: 500; }
.cs-metric-hint__body dd { margin: 2px 0 0; color: #666; }

/* 指标口径 · 问号帮助（不占独立区块） */
.cs-metric-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  flex-shrink: 0;
}
.cs-metric-help__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #999;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.cs-metric-help__btn:hover,
.cs-metric-help__btn[aria-expanded="true"] {
  color: #1890FF;
  border-color: #91caff;
  background: #eef4ff;
}
.cs-metric-help__popover {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  width: min(380px, calc(100vw - 48px));
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}
.cs-metric-help__popover.is-hidden { display: none; }
.cs-metric-help__popover-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}
.cs-metric-help__popover dl { margin: 0; display: grid; gap: 8px; }
.cs-metric-help__popover dt { color: #333; font-weight: 500; }
.cs-metric-help__popover dd { margin: 2px 0 0; color: #666; }

.cs-metric-help--toolbar .cs-metric-help__btn--toolbar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 0;
  background: #f7f7fa;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}
.cs-metric-help--toolbar .cs-metric-help__btn--toolbar:hover,
.cs-metric-help--toolbar .cs-metric-help__btn--toolbar[aria-expanded="true"] {
  background: #eef4ff;
  color: #1890FF;
}
.cs-metric-help--toolbar .cs-metric-help__popover {
  left: auto;
  right: 0;
}

.cs-timeout-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12px;
  color: #92400e;
}
.cs-timeout-strip a,
.cs-timeout-strip button {
  color: #1890FF;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
}
.cs-timeout-strip a:hover,
.cs-timeout-strip button:hover { text-decoration: underline; }

.cs-assessment-view-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: #f7f7fa;
  border: 1px solid #eee;
}
.cs-assessment-view-seg__btn {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
}
.cs-assessment-view-seg__btn.is-active {
  background: #fff;
  color: #1890FF;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.drawer-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}
.drawer-sparkline__bar {
  flex: 1;
  min-width: 6px;
  max-width: 20px;
  border-radius: 3px 3px 0 0;
  background: #1890FF;
  opacity: 0.75;
}
.drawer-sparkline__bar.is-low { background: #ff4d4f; opacity: 0.85; }
.drawer-sparkline__label {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

/* 订单资源 · SLA 条 */
.cs-sla-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  font-size: 12px;
  color: #0369a1;
}
.cs-sla-strip button {
  color: #1890FF;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
}
.cs-sla-strip button:hover { text-decoration: underline; }

/* 呼出分时 · 洞察卡片 */
.cs-hourly-insight {
  margin: 0 16px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0fdf4 0%, #eff6ff 100%);
  border: 1px solid #d1fae5;
  font-size: 12px;
  color: #333;
  line-height: 1.55;
}
.cs-hourly-insight strong { color: #059669; }
.cs-hourly-insight em { font-style: normal; color: #1890FF; }

.drawer-slow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}
.drawer-slow-table th,
.drawer-slow-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}
.drawer-slow-table th {
  background: #fafafa;
  color: #666;
  font-weight: 500;
}
.drawer-slow-table td.is-warn { color: #ff4d4f; font-weight: 500; }

.cs-hourly-rank-table { max-height: 280px; }
.analytics-th-cell {
  background: #fbfbfb;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px;
  font-weight: 400;
  color: #666;
  font-size: 12px;
}
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: #fafafa !important; }
tr.row-warn { background: #fff7f7 !important; }

.chart-area { display: flex; align-items: flex-end; gap: 3px; height: 200px; padding: 8px 0; }
.chart-bar { flex: 1; display: flex; flex-direction: column-reverse; align-items: stretch; gap: 1px; cursor: pointer; min-width: 6px; max-width: 28px; }
.chart-bar:hover { opacity: 0.85; }

/* 主控台 · 区块与图表 */
.cs-dash-block { margin: 0; }
.cs-dash-block__head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 8px 16px; margin-bottom: 12px;
}
.cs-dash-block__title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin: 0; line-height: 1.4; }
.cs-dash-block__desc { font-size: 12px; color: #999; margin: 4px 0 0; }
.cs-dash-block--primary .cs-dash-block__title { font-size: 17px; }
.cs-dash-block--primary .bg-white { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cs-dash-block--muted { opacity: 0.92; }
.cs-dash-block--muted .cs-dash-block__title { font-size: 14px; font-weight: 600; color: #666; }
.cs-dash-kpi-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px; background: #f7f8fa; border: 1px solid #eef0f3; color: #666;
}
.cs-dash-kpi-chip strong { color: #1a1a1a; font-weight: 600; }
.cs-dash-kpi-chip--warn { background: #fff7f7; border-color: #fecdd3; color: #991b1b; }
.cs-dash-kpi-chip--warn strong { color: #f43f5e; }
.cs-dash-chart { height: 260px; width: 100%; }

/* 分组柱状图（通话趋势 · 圆顶柱） */
/* 主控台图表 · X/Y 轴刻度文案（合格率趋势、听评状态分布等统一） */
.cs-dash-chart-axis-label {
  font-size: 11px;
  fill: #8c8c8c;
}
.cs-dash-bar-chart__grid {
  stroke: #f0f0f0;
  stroke-width: 1;
}
.cs-dash-bar-chart .cs-dash-bar-group {
  cursor: default;
}
.cs-dash-bar-chart .cs-dash-bar-group path {
  transition: opacity 0.15s ease;
}
.cs-dash-bar-chart .cs-dash-bar-group:hover path {
  opacity: 0.82;
}

/* 线路通次 · 竖向圆顶柱 */
.cs-dash-line-share-chart {
  min-height: 200px;
}
.cs-dash-line-share {
  min-height: 0;
}
.cs-dash-line-share__group {
  cursor: pointer;
  outline: none;
}
.cs-dash-line-share__group path {
  transition: opacity 0.15s ease;
}
.cs-dash-line-share__group:hover path {
  opacity: 0.82;
}
.cs-dash-line-share__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  padding: 8px 4px 0;
  border-top: 1px solid #f5f5f5;
  margin-top: 4px;
}
.cs-dash-line-share__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #8c8c8c;
}
.cs-dash-line-share__legend-item i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.cs-dash-chart--wide { height: 220px; }
.cs-dash-chart--compact { height: 180px; }
.cs-dash-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 11px; color: #666; }
.cs-dash-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.cs-dash-legend__dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.cs-dash-section-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; background: #fff1f2;
}
.cs-dash-section-icon--users { background: #eef4ff; }
.cs-dash-alert-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.cs-dash-alert-row:last-child { border-bottom: 0; }
.cs-dash-alert-badge {
  display: inline-flex; padding: 1px 8px; border-radius: 4px; font-size: 11px; border: 1px solid transparent;
}
.cs-dash-alert-badge--critical { color: #f43f5e; background: #fff1f2; border-color: #fecdd3; }
.cs-dash-alert-badge--warn { color: #d97706; background: #fffbeb; border-color: #fde68a; }
.cs-dash-alert-badge--info { color: #64748b; background: #f8fafc; border-color: #e2e8f0; }
.cs-dash-bar-group { cursor: default; }
.cs-dash-bar-group:hover rect { opacity: 1; }

/* 主控台 · 数据总控台（对齐收纳师管理后台 Dashboard） */
.cs-dash-console {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px 24px;
  max-width: 100%;
}
.cs-dash-console--metrics-first,
.cs-dash-console--layout-ref { gap: 16px; }

/* 分层栅格（指标 → 三栏趋势 → 双栏 × N） */
.cs-dash-tier {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.cs-dash-tier--cols-2,
.cs-dash-tier--cols-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .cs-dash-tier--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cs-dash-tier--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cs-dash-tier--cols-2 > .cs-dash-chart-card,
.cs-dash-tier--cols-3 > .cs-dash-chart-card,
.cs-dash-tier > .cs-dash-chart-card--span-full {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.cs-dash-tier--cols-2 > .cs-dash-chart-card .cs-dash-chart,
.cs-dash-tier--cols-3 > .cs-dash-chart-card .cs-dash-chart,
.cs-dash-tier--cols-2 > .cs-dash-chart-card .cs-dash-chart--bars,
.cs-dash-tier--cols-3 > .cs-dash-chart-card .cs-dash-chart--bars,
.cs-dash-tier--cols-2 > .cs-dash-chart-card .cs-dash-pie-chart,
.cs-dash-tier--cols-3 > .cs-dash-chart-card .cs-dash-pie-chart,
.cs-dash-tier--cols-2 > .cs-dash-chart-card .cs-dash-leaderboard,
.cs-dash-tier--cols-3 > .cs-dash-chart-card .cs-dash-leaderboard {
  flex: 1;
  min-height: 0;
}
.cs-dash-chart-card--span-full {
  width: 100%;
}
.cs-dash-chart--hero {
  height: 260px;
  flex: 1;
  min-height: 220px;
}
@media (min-width: 1280px) {
  .cs-dash-chart--hero { height: 280px; }
}
.cs-dash-section__head--in-card {
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f5f5f5;
}
.cs-dash-chart-card__head--tight {
  margin-bottom: 8px;
}
.cs-dash-resource-card {
  display: flex;
  flex-direction: column;
}
.cs-dash-resource-card .cs-dash-chart {
  flex: 1;
  min-height: 0;
}
.cs-dash-qa-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
  padding-top: 4px;
}
.cs-dash-qa-block > .cs-dash-hero__grid {
  margin-bottom: 0;
}

/* 质检区 · 待处理清单（独立卡片） */
.cs-dash-qa-pending-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 220px;
  overflow: hidden;
}
.cs-dash-qa-block .cs-dash-tier--cols-3 > .cs-dash-chart-card .cs-dash-qa-pending-list {
  flex: 1;
  min-height: 0;
}
.cs-dash-qa-pending-list__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.cs-dash-qa-pending-list__grid {
  table-layout: fixed;
  width: 100%;
}
.cs-dash-qa-pending-list__grid thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
.cs-dash-qa-pending-list__grid thead th {
  background: #fafafa;
}
.cs-dash-qa-pending-list__grid th:nth-child(1),
.cs-dash-qa-pending-list__grid td:nth-child(1) { width: 28%; }
.cs-dash-qa-pending-list__grid th:nth-child(2),
.cs-dash-qa-pending-list__grid td:nth-child(2) { width: 34%; }
.cs-dash-qa-pending-list__grid th:nth-child(3),
.cs-dash-qa-pending-list__grid td:nth-child(3) { width: 20%; }
.cs-dash-qa-pending-list__grid th:nth-child(4),
.cs-dash-qa-pending-list__grid td:nth-child(4) { width: 18%; }

.cs-dash-rank-chart--wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  min-height: auto;
  padding: 4px 0;
}
@media (min-width: 768px) {
  .cs-dash-rank-chart--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
}
.cs-dash-rank-chart--wide .cs-dash-rank-row--qa {
  margin: 0;
}

/* 主控台 · 卡片无描边、无阴影（仅靠白底与间距区分） */
.cs-dash-console .cs-dash-chart-card,
.cs-dash-console .cs-dash-toolbar,
.cs-dash-console .cs-dash-panel,
.cs-dash-console .cs-dash-alert-feed,
.cs-dash-console .cs-dash-details,
.cs-dash-console .cs-dash-hero__grid > .bg-white,
.cs-dash-console .cs-dash-hero-panel {
  border: none;
  box-shadow: none;
}

/* 首屏 · 指标墙（参考物业总览单面板 + 右侧预警） */
.cs-dash-hero-panel {
  background: #fff;
  border-radius: 10px;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.cs-dash-hero-panel__layout {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1100px) {
  .cs-dash-hero-panel__layout {
    flex-direction: row;
    align-items: stretch;
  }
}
.cs-dash-hero-panel__body {
  flex: 1;
  min-width: 0;
  padding: 20px 0 16px;
}
@media (min-width: 1024px) {
  .cs-dash-hero-panel__body {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 0.95fr 0.95fr;
  }
}
.cs-dash-hero-panel__aside {
  flex-shrink: 0;
  border-top: 1px solid #f0f0f0;
  padding: 14px 12px 12px;
  background: #fff;
}
@media (min-width: 1100px) {
  .cs-dash-hero-panel__aside {
    width: 272px;
    border-top: 0;
    border-left: 1px solid #f0f0f0;
    padding: 16px 14px 14px;
  }
}
.cs-dash-hero-alerts {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
  min-width: 0;
  overflow: hidden;
}
.cs-dash-hero-alerts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.cs-dash-hero-alerts__tabs {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}
.cs-dash-hero-alerts__tab {
  border: 0;
  background: transparent;
  padding: 0 8px;
  font-size: 13px;
  color: #8c8c8c;
  cursor: pointer;
  white-space: nowrap;
}
.cs-dash-hero-alerts__tab:first-child { padding-left: 0; }
.cs-dash-hero-alerts__tab em {
  font-style: normal;
  margin-left: 2px;
}
.cs-dash-hero-alerts__tab.is-active {
  color: #1890ff;
  font-weight: 500;
}
.cs-dash-hero-alerts__tab-divider {
  width: 1px;
  height: 14px;
  background: #e8e8e8;
  flex-shrink: 0;
}
.cs-dash-hero-alerts__rule {
  border: 0;
  background: transparent;
  font-size: 12px;
  color: #1890ff;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.cs-dash-hero-alerts__rule:hover { text-decoration: underline; }
.cs-dash-hero-alerts__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  max-height: 320px;
}
.cs-dash-hero-alert__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 8px 7px 11px;
  border-radius: 6px;
  background: var(--alert-bg, #fafafa);
  cursor: pointer;
  transition: background 0.12s;
  overflow: hidden;
}
.cs-dash-hero-alert__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--alert-bar, #e8e8e8);
  border-radius: 3px 0 0 3px;
}
.cs-dash-hero-alert__item:hover {
  background: #f5f5f5;
}
.cs-dash-hero-alert__tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 400;
  line-height: 18px;
  border-radius: 3px;
  border: 1px solid #ebebeb;
  background: #fff;
  color: #8c8c8c;
  white-space: nowrap;
}
.cs-dash-hero-alert__tag--critical {
  color: #a66;
  border-color: #ecdcdc;
  background: #fff;
}
.cs-dash-hero-alert__tag--warn {
  color: #6a9090;
  border-color: #dceaea;
  background: #fff;
}
.cs-dash-hero-alert__tag--info {
  color: #9a8455;
  border-color: #ece4d4;
  background: #fff;
}
.cs-dash-hero-alert__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-dash-hero-alert__time {
  flex-shrink: 0;
  font-size: 10px;
  color: #c4c4c4;
  line-height: 1.4;
  white-space: nowrap;
}
.cs-dash-hero-panel__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 1024px) {
  .cs-dash-hero-panel__main {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }
}
.cs-dash-hero-col {
  padding: 0 22px;
  border-right: 1px solid #f0f0f0;
  min-width: 0;
}
.cs-dash-hero-col__head,
.cs-dash-hero-ring__title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
}
.cs-dash-hero-panel__main > .cs-dash-hero-col:last-child {
  border-right: 0;
}
@media (max-width: 1023px) {
  .cs-dash-hero-col {
    border-right: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .cs-dash-hero-panel__main > .cs-dash-hero-col:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}
.cs-dash-hero-metric__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  transition: opacity 0.12s;
}
.cs-dash-hero-metric__row:first-child { padding-top: 0; }
.cs-dash-hero-metric__row:last-child { padding-bottom: 0; }
.cs-dash-hero-metric__row + .cs-dash-hero-metric__row {
  border-top: 1px solid #f5f5f5;
}
.cs-dash-hero-metric__row:hover { opacity: 0.92; }
.cs-dash-hero-metric__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cs-dash-hero-metric__icon svg {
  width: 16px;
  height: 16px;
}
.cs-dash-hero-metric__label {
  font-size: 13px;
  color: #8c8c8c;
  margin-bottom: 6px;
}
.cs-dash-hero-metric__value {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cs-dash-hero-metric__num {
  font-size: 0.8em;
  font-weight: inherit;
  letter-spacing: inherit;
}
.cs-dash-hero-metric__unit {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.06em;
}
.cs-dash-hero-metric__meta {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px 6px;
  margin-top: 4px;
  font-size: 11px;
  color: #999;
  line-height: 1.35;
  white-space: nowrap;
  min-width: 0;
}
.cs-dash-hero-metric__meta-sep {
  color: #d9d9d9;
  user-select: none;
}
.cs-dash-hero-metric__meta-delta {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  font-size: 12px;
  flex-shrink: 0;
}
.cs-dash-hero-metric__meta-sub {
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-dash-hero-metric__sub {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}
.cs-dash-hero-metric__delta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 6px;
  font-size: 12px;
}
.cs-dash-hero-metric__delta-val { font-weight: 500; }
.cs-dash-hero-metric__meta-delta.is-up .cs-dash-hero-metric__delta-val,
.cs-dash-hero-metric__delta.is-up .cs-dash-hero-metric__delta-val { color: #1890ff; }
.cs-dash-hero-metric__meta-delta.is-down .cs-dash-hero-metric__delta-val,
.cs-dash-hero-metric__delta.is-down .cs-dash-hero-metric__delta-val { color: #ff4d4f; }
.cs-dash-hero-metric__delta-hint {
  font-size: 11px;
  color: #999;
}
.cs-dash-hero-col--ring {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.cs-dash-hero-ring__chart {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 132px;
  padding: 8px 0;
}
.cs-dash-hero-ring__svg {
  width: 128px;
  height: 128px;
}
.cs-dash-hero-ring__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #f5f5f5;
}
.cs-dash-hero-ring__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cs-dash-hero-ring__stat-label {
  font-size: 12px;
  color: #8c8c8c;
}
.cs-dash-hero-ring__stat-val {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}
.cs-dash-hero-ring__stat-val.is-hl { color: #1890ff; }
.cs-dash-hero-panel__foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #f0f0f0;
}
@media (min-width: 1024px) {
  .cs-dash-hero-panel__foot {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }
  .cs-dash-hero-panel__foot .cs-dash-hero-metric__row {
    border-top: 0;
    padding: 0 22px;
    border-right: 1px solid #f0f0f0;
  }
  .cs-dash-hero-panel__foot .cs-dash-hero-metric__row:last-child {
    border-right: 0;
  }
}
@media (max-width: 1023px) {
  .cs-dash-hero-panel__foot .cs-dash-hero-metric__row + .cs-dash-hero-metric__row {
    border-top: 1px solid #f5f5f5;
    margin-top: 14px;
    padding-top: 14px;
  }
}
/* 质检区仍用旧栅格 */
.cs-dash-hero__grid {
  display: grid;
  gap: 12px;
  align-items: stretch;
  width: 100%;
}
.cs-dash-hero__grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .cs-dash-hero__grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}
.cs-dash-hero__grid > .bg-white,
.cs-dash-hero__grid > .cs-metric-compare-card {
  min-width: 0;
  width: 100%;
}

/* 指标卡 · 呼入/呼出对比 */
.cs-metric-compare-card { cursor: default; }
.cs-metric-compare-card:hover { background: #fafbfc; }
.cs-metric-compare__col {
  cursor: pointer;
  padding: 2px 0;
  transition: opacity 0.12s;
}
.cs-metric-compare__col:hover { opacity: 0.92; }
.cs-metric-compare__divider {
  width: 1px;
  align-self: stretch;
  background: #f0f0f0;
  margin: 0 14px;
  flex-shrink: 0;
}
.cs-metric-compare__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8c8c8c;
}
.cs-metric-compare__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* 双栏 / 三栏卡片等高 */
.cs-dash-tier--cols-2 > .cs-dash-chart-card,
.cs-dash-tier--cols-3 > .cs-dash-chart-card {
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  .cs-dash-tier--cols-2 > .cs-dash-chart-card {
    min-height: 340px;
  }
  .cs-dash-tier--cols-3 > .cs-dash-chart-card {
    min-height: 320px;
  }
  .cs-dash-tier--cols-3.cs-dash-tier--dist > .cs-dash-chart-card {
    min-height: 0;
  }
  .cs-dash-tier--cols-2 > .cs-dash-overview__alerts,
  .cs-dash-tier--cols-3 > .cs-dash-overview__alerts {
    min-height: 320px;
  }
}
/* 质检区 · 三栏含预警 */
.cs-dash-qa-block .cs-dash-tier--cols-3 > .cs-dash-overview__alerts .cs-dash-alert-feed--compact {
  flex: 1;
  overflow-y: auto;
}
.cs-dash-qa-block .cs-dash-alert-row--compact {
  grid-template-columns: 36px 1fr auto;
  gap: 6px 8px;
}
.cs-dash-qa-block .cs-dash-alert-row--compact .cs-dash-alert-row__title {
  font-size: 12px;
}
.cs-dash-qa-block .cs-dash-alert-row__action {
  font-size: 11px;
}
.cs-dash-chart-card__head--compact {
  margin-bottom: 8px;
  gap: 6px;
}
.cs-dash-chart-card__head--with-time {
  align-items: flex-start;
}
.cs-dash-chart-card__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.cs-dash-pill-group--sm {
  padding: 1px;
  gap: 0;
  border-radius: 5px;
}
.cs-dash-pill-group--sm [data-v] {
  padding: 2px 5px;
  font-size: 10px;
  line-height: 1.2;
  border-radius: 4px;
}
.cs-dash-tier--cols-3 .cs-dash-chart-card__title {
  font-size: 14px;
  line-height: 1.35;
}
.cs-dash-tier--cols-3 .cs-dash-chart-card__sub {
  font-size: 11px;
}
.cs-dash-legend--inline {
  flex-shrink: 0;
  gap: 8px;
}
.cs-dash-legend--inline .cs-dash-legend__item {
  font-size: 11px;
  white-space: nowrap;
}

/* 三栏 · 排行 / 线路 / 资源（窄列适配） */
.cs-dash-tier--cols-3 .cs-dash-leaderboard {
  gap: 8px;
}
.cs-dash-tier--cols-3 .cs-dash-leaderboard__row .w-9 {
  width: 2rem;
  height: 2rem;
  font-size: 11px;
}
.cs-dash-tier--cols-3 .cs-dash-chart--bars {
  min-height: 200px;
}
.cs-dash-tier--cols-3 .cs-dash-pie-chart {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--source {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 100%;
  min-height: 0;
  width: 100%;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  height: 100%;
  min-height: 0;
  width: 100%;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--source .cs-dash-pie-visual,
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line .cs-dash-pie-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 4px 0 2px;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--source .cs-dash-pie-visual--donut,
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line .cs-dash-pie-visual--donut {
  max-width: 200px;
  margin: 0 auto;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--source .cs-dash-pie-svg--donut,
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line .cs-dash-pie-svg--donut {
  width: 100%;
  height: auto;
  max-height: 168px;
  aspect-ratio: 1;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--source .cs-dash-pie-legend {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 0 2px;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line .cs-dash-pie-legend {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0 4px;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line .cs-dash-pie-legend__item {
  width: 100%;
  max-width: 100%;
  padding: 4px 6px;
  margin: 0;
  box-sizing: border-box;
}
/* 线路通次 · 实心环：环+图例横排居中，环加大、底部少留白 */
.cs-dash-tier--dist #chart-line-share {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line.cs-dash-pie-wrap--filled {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  height: 100%;
  width: 100%;
  padding: 0 6px;
  box-sizing: border-box;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line.cs-dash-pie-wrap--filled .cs-dash-pie-visual {
  padding: 0;
  width: auto;
  flex: 0 0 auto;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line.cs-dash-pie-wrap--filled .cs-dash-pie-visual--donut {
  max-width: none;
  width: 188px;
  margin: 0;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line.cs-dash-pie-wrap--filled .cs-dash-pie-svg--donut {
  width: 188px;
  height: 188px;
  max-height: none;
}
@media (min-width: 1280px) {
  .cs-dash-tier--cols-3 .cs-dash-pie-wrap--line.cs-dash-pie-wrap--filled .cs-dash-pie-visual--donut {
    width: 200px;
  }
  .cs-dash-tier--cols-3 .cs-dash-pie-wrap--line.cs-dash-pie-wrap--filled .cs-dash-pie-svg--donut {
    width: 200px;
    height: 200px;
  }
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line.cs-dash-pie-wrap--filled .cs-dash-pie-legend {
  flex: 0 0 auto;
  width: auto;
  min-width: 132px;
  max-width: 156px;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.cs-dash-tier--cols-3 .cs-dash-pie-wrap--line.cs-dash-pie-wrap--filled .cs-dash-pie-legend__item {
  padding: 3px 5px;
}
.cs-dash-tier--cols-3 .cs-dash-pie-svg {
  width: 148px;
  height: 148px;
}
.cs-dash-tier--cols-3 .cs-dash-pie-legend {
  min-width: 0;
  width: 100%;
  gap: 6px;
  max-height: 168px;
  overflow-y: auto;
}
.cs-dash-tier--cols-3 .cs-dash-pie-legend__name {
  font-size: 12px;
}
.cs-dash-tier--cols-3 .cs-dash-pie-legend__sub {
  font-size: 10px;
}
.cs-dash-tier--cols-3 .cs-dash-pie-legend__pct {
  font-size: 12px;
}
.cs-dash-overview__alerts.cs-dash-chart-card--span-full {
  width: 100%;
}
.cs-dash-overview__alerts.cs-dash-chart-card {
  display: flex;
  flex-direction: column;
  padding: 12px 14px 10px;
}
.cs-dash-overview__alerts .cs-dash-chart-card__head {
  margin-bottom: 8px;
  padding: 0;
}
.cs-dash-overview__alerts .cs-dash-alert-feed--compact {
  border: 0;
  box-shadow: none;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}
.cs-dash-overview__alerts .cs-dash-alert-feed--compact .cs-dash-alert-row--compact {
  padding: 8px 4px;
  margin: 0;
}
/* 预警行 · 紧凑三列（级别 | 文案+时间 | 操作） */
.cs-dash-alert-row--compact {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 8px 10px;
  align-items: start;
  border-bottom: 1px solid #f5f5f5;
}
.cs-dash-alert-row--compact:last-child { border-bottom: 0; }
.cs-dash-alert-row--compact:hover { background: transparent; }
.cs-dash-overview__alerts .cs-dash-alert-row--compact:hover { background: #fafbfc; border-radius: 6px; }
.cs-dash-alert-row--compact .cs-dash-alert-badge {
  margin-top: 2px;
  justify-content: center;
  min-width: 36px;
}
.cs-dash-alert-row__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cs-dash-alert-row--compact .cs-dash-alert-row__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.cs-dash-alert-row--compact .cs-dash-alert-row__time {
  font-size: 11px;
  color: #999;
  line-height: 1.3;
}
.cs-dash-alert-row__action {
  margin-top: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}
.cs-dash-chart-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.cs-dash-chart.cs-dash-chart--tall { height: 240px; }
@media (min-width: 1280px) {
  .cs-dash-chart.cs-dash-chart--tall { height: 260px; }
}
.cs-dash-chart--bars { min-height: 240px; }
.cs-dash-section__head--inline { margin-bottom: 12px; }

/* 质检 · 总任务进度条 */
.cs-dash-rank-row--qa {
  grid-template-columns: minmax(120px, 1.2fr) 1fr auto;
}
.cs-dash-rank-chart--qa { min-height: 160px; }
.cs-dash-qa-task-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f2f5;
}
.cs-dash-qa-task-bar__done {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  flex-shrink: 0;
}
.cs-dash-qa-task-bar__pending {
  height: 100%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.cs-dash-rank-row--qa.is-warn .cs-dash-qa-task-bar__pending {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* 横向排行条 */
.cs-dash-rank-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 4px 0;
}
.cs-dash-rank-row {
  display: grid;
  grid-template-columns: 22px 88px 1fr 52px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
  border-radius: 6px;
  transition: background 0.12s;
}
.cs-dash-rank-row:hover { background: #f8fafc; }
.cs-dash-rank-row__idx {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f5f5f5;
  color: #8c8c8c;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-dash-rank-row:nth-child(1) .cs-dash-rank-row__idx { background: #fff7e6; color: #fa8c16; }
.cs-dash-rank-row:nth-child(2) .cs-dash-rank-row__idx { background: #f5f5f5; color: #666; }
.cs-dash-rank-row__meta { min-width: 0; }
.cs-dash-rank-row__name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  overflow: hidden;
  white-space: nowrap;
}
.cs-dash-rank-row__team {
  display: block;
  font-size: 11px;
  color: #999;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cs-dash-rank-row__bar-wrap {
  height: 8px;
  background: #f0f2f5;
  border-radius: 4px;
  overflow: hidden;
}
.cs-dash-rank-row__bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.3s ease;
}
.cs-dash-rank-row.is-warn .cs-dash-rank-row__bar {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}
.cs-dash-rank-row__val {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: right;
  tabular-nums: true;
  font-variant-numeric: tabular-nums;
}
.cs-dash-rank-row.is-warn .cs-dash-rank-row__val { color: #f43f5e; }
/* 资源渠道 · 饼图 */
.cs-dash-pie-chart {
  min-height: 220px;
  padding: 4px 0;
}
.cs-dash-pie-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
}
@media (min-width: 768px) {
  .cs-dash-pie-wrap {
    justify-content: flex-start;
    padding: 0 8px;
  }
}
.cs-dash-pie-svg {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}
.cs-dash-pie-slice {
  cursor: pointer;
  transition: opacity 0.15s, filter 0.15s, stroke-width 0.15s;
}
.cs-dash-pie-slice--arc {
  pointer-events: stroke;
  stroke-opacity: 1;
}
.cs-dash-pie-slice:hover,
.cs-dash-pie-slice.is-active {
  filter: brightness(1.05);
}
.cs-dash-pie-slice--arc.is-active,
.cs-dash-pie-slice--arc:hover {
  stroke-opacity: 1;
  filter: brightness(1.08);
}
.cs-dash-pie-slice--fill {
  cursor: pointer;
  transition: opacity 0.15s ease, filter 0.15s ease;
}
.cs-dash-pie-slice--fill:hover,
.cs-dash-pie-slice--fill.is-active {
  filter: brightness(1.06) saturate(1.05);
}
.cs-dash-pie-donut__track {
  pointer-events: none;
}
.cs-dash-pie-wrap--line.cs-dash-pie-wrap--filled:has(.cs-dash-pie-slice.is-active) .cs-dash-pie-slice--fill:not(.is-active),
.cs-dash-pie-wrap--line.cs-dash-pie-wrap--filled:has(.cs-dash-pie-legend__item.is-active) .cs-dash-pie-slice--fill:not(.is-active) {
  opacity: 0.42;
}
.cs-dash-pie-donut__value {
  font-size: 26px;
  font-weight: 600;
  fill: #1a1a1a;
  font-variant-numeric: tabular-nums;
}
.cs-dash-pie-donut__num {
  font-size: 22px;
  font-weight: 600;
}
.cs-dash-pie-donut__unit {
  font-size: 11px;
  font-weight: 600;
  fill: #595959;
}
.cs-dash-pie-donut__label {
  font-size: 11px;
  fill: #8c8c8c;
}
.cs-dash-pie-svg--donut {
  overflow: visible;
}
.cs-dash-pie-wrap--source:has(.cs-dash-pie-slice.is-active) .cs-dash-pie-slice:not(.is-active),
.cs-dash-pie-wrap--source:has(.cs-dash-pie-legend__item.is-active) .cs-dash-pie-slice:not(.is-active) {
  opacity: 0.4;
}
.cs-dash-pie-legend {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-dash-pie-legend--grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  min-width: 0;
}
.cs-dash-pie-legend--grid-2 .cs-dash-pie-legend__item {
  min-width: 0;
}
.cs-dash-pie-legend__item {
  display: flex;
  align-items: stretch;
  gap: 8px;
  cursor: pointer;
  padding: 5px 6px;
  margin: 0 -4px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.cs-dash-pie-legend__item:hover,
.cs-dash-pie-legend__item.is-active {
  background: #fafbfc;
  border-color: #f0f0f0;
}
.cs-dash-pie-legend__swatch {
  width: 14px;
  min-height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--legend-color, #d9d9d9);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  align-self: center;
}
.cs-dash-pie-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.cs-dash-pie-legend__text {
  flex: 1;
  min-width: 0;
}
.cs-dash-pie-legend__row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 4px;
  flex-wrap: nowrap;
}
.cs-dash-pie-legend__name {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.35;
}
.cs-dash-pie-legend__item:hover .cs-dash-pie-legend__name,
.cs-dash-pie-legend__item.is-active .cs-dash-pie-legend__name {
  color: #1890ff;
}
.cs-dash-pie-legend__sub {
  display: block;
  font-size: 11px;
  color: #8c8c8c;
  margin-top: 2px;
  line-height: 1.35;
}
.cs-dash-pie-legend__warn {
  color: #f5222d;
  font-weight: 600;
}
.cs-dash-pie-legend__pct {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  flex-shrink: 0;
}

/* 明细折叠 */
.cs-dash-details-zone { margin-top: 4px; }
.cs-dash-details {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.cs-dash-details summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.cs-dash-details summary::-webkit-details-marker { display: none; }
.cs-dash-details summary::after {
  content: "展开";
  font-size: 12px;
  font-weight: 400;
  color: #999;
}
.cs-dash-details[open] summary::after { content: "收起"; }
.cs-dash-details[open] summary { border-bottom: 1px solid #f0f0f0; background: #fafafa; }
.cs-dash-details__hint {
  font-size: 12px;
  font-weight: 400;
  color: #999;
  margin-left: 8px;
}
.cs-dash-details .cs-dash-panel { border: 0; border-radius: 0; box-shadow: none; }
.cs-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 10px;
}
.cs-dash-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.cs-dash-toolbar__label {
  font-size: 13px;
  color: #8c8c8c;
  flex-shrink: 0;
}
.cs-dash-toolbar__scope {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cs-dash-toolbar__select {
  min-width: 108px;
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  color: #333;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  appearance: none;
}
.cs-dash-toolbar__select:hover {
  border-color: #d9d9d9;
}
.cs-dash-toolbar__select:focus {
  border-color: #91caff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.12);
}
.cs-dash-toolbar__time {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cs-dash-time-range {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.cs-dash-time-range__sep {
  font-size: 13px;
  color: #8c8c8c;
  user-select: none;
}
.cs-dash-toolbar__date {
  padding: 6px 10px;
  font-size: 13px;
  color: #333;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}
.cs-dash-toolbar__date:hover {
  border-color: #d9d9d9;
}
.cs-dash-toolbar__date:focus {
  border-color: #91caff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.12);
}
.cs-dash-time-range__apply {
  padding: 6px 14px;
  font-size: 13px;
  color: #fff;
  background: #1890ff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.cs-dash-time-range__apply:hover {
  background: #40a9ff;
}
.cs-dash-pill-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px;
  background: #f5f5f5;
  border-radius: 8px;
}
.cs-dash-pill-group [data-v] {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #666;
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.cs-dash-pill-group [data-v].is-active {
  background: #fff;
  color: #1890ff;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.cs-dash-toolbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
}
.cs-dash-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.cs-dash-section__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.cs-dash-section__title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.35;
}
.cs-dash-section--primary .cs-dash-section__title { font-size: 16px; }
.cs-dash-section__desc {
  font-size: 12px;
  color: #8c8c8c;
  margin: 3px 0 0;
}
.cs-dash-section--muted .cs-dash-section__title { font-size: 14px; color: #666; }
.cs-dash-section--muted { opacity: 0.95; }
.cs-dash-panel {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.cs-dash-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}
.cs-dash-panel__body {
  padding: 0;
}
.cs-dash-panel__body--padded { padding: 16px; }
.cs-dash-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1280px) {
  .cs-dash-split { grid-template-columns: 1.05fr 0.95fr; }
}
.cs-dash-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1280px) {
  .cs-dash-dual { grid-template-columns: 1fr 1fr; }
}
.cs-dash-chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1280px) {
  .cs-dash-chart-grid { grid-template-columns: 1fr 1fr; }
}
.cs-dash-chart-card {
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  min-width: 0;
}
.cs-dash-overview__rank {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 10px;
}
/* 三栏 · 排行 / 线路 / 资源 — 与「线路通次占比」同高（标题 + chart--tall） */
.cs-dash-tier--dist > .cs-dash-chart-card {
  min-height: 0;
}
.cs-dash-tier--dist > .cs-dash-overview__rank {
  padding: 16px;
  min-height: 0;
}
.cs-dash-tier--dist > .cs-dash-chart-card > .cs-dash-chart--tall,
.cs-dash-tier--dist > .cs-dash-chart-card .cs-dash-chart.cs-dash-chart--tall {
  flex: 0 0 auto;
  min-height: 240px;
  height: 240px;
  max-height: 240px;
  overflow: hidden;
}
@media (min-width: 1280px) {
  .cs-dash-tier--cols-3.cs-dash-tier--dist > .cs-dash-chart-card > .cs-dash-chart--tall,
  .cs-dash-tier--cols-3.cs-dash-tier--dist > .cs-dash-chart-card .cs-dash-chart.cs-dash-chart--tall {
    min-height: 260px;
    height: 260px;
    max-height: 260px;
  }
}
.cs-dash-tier--dist .cs-dash-agent-rank-scroll {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.cs-dash-tier--dist .cs-dash-agent-rank-scroll .cs-dash-recent-table__body {
  flex: 1;
  min-height: 0;
}
.cs-dash-recent-table {
  min-width: 0;
  width: 100%;
}
.cs-dash-recent-table--fill {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cs-dash-recent-table__head {
  flex-shrink: 0;
}
.cs-dash-recent-table__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.cs-dash-overview__rank .cs-dash-recent-table__grid {
  font-size: 12px;
}
.cs-dash-overview__rank .cs-dash-recent-table__grid thead th {
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.4;
}
.cs-dash-overview__rank .cs-dash-recent-table__grid tbody td {
  padding-top: 11px;
  padding-bottom: 11px;
  line-height: 1.45;
}
.cs-dash-overview__rank .cs-dash-status-tag {
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.35;
}
.cs-dash-recent-table__grid {
  table-layout: fixed;
  min-width: 280px;
}
.cs-dash-recent-table__grid th:first-child,
.cs-dash-recent-table__grid td:first-child {
  width: 28px;
  max-width: 28px;
  padding-left: 6px;
  padding-right: 4px;
  text-align: center;
}
.cs-dash-status-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.35;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
}
.cs-dash-status-tag--success {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}
.cs-dash-status-tag--danger {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.05);
}
.cs-dash-status-tag--info {
  color: #1890ff;
  border-color: rgba(24, 144, 255, 0.3);
  background: rgba(24, 144, 255, 0.05);
}
.cs-dash-tier--cols-3 > .cs-dash-overview__rank {
  min-height: 320px;
}
.cs-dash-tier--cols-3.cs-dash-tier--dist > .cs-dash-overview__rank {
  min-height: 0;
}
.cs-dash-tier--cols-3 > .cs-dash-overview__rank .cs-dash-recent-table--fill {
  flex: 1;
  min-height: 0;
}

/* 排行榜列表（对齐收纳师营收排行榜） */
.cs-dash-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
  padding: 2px 0;
}
.cs-dash-leaderboard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
}
.cs-dash-leaderboard__row:hover {
  background: #fafbfc;
}
.cs-dash-chart-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.cs-dash-chart-card__sub {
  font-size: 11px;
  color: #999;
  margin: 4px 0 0;
}
.cs-dash-table-wrap {
  overflow-x: auto;
  border-radius: 0 0 10px 10px;
}
.cs-dash-table.cs-table {
  font-size: 12px;
}
.cs-dash-table.cs-table thead th {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #8c8c8c;
  background: #fafafa;
}
.cs-dash-table.cs-table tbody td {
  padding: 10px 12px;
  border-bottom-color: #f5f5f5;
}
.cs-dash-table--dense.cs-table tbody td {
  padding: 8px 12px;
}
.cs-dash-line-list {
  display: flex;
  flex-direction: column;
}
.cs-dash-line-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 16px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s;
}
@media (min-width: 640px) {
  .cs-dash-line-item {
    grid-template-columns: minmax(88px, 1fr) 72px 56px 72px 72px;
  }
}
.cs-dash-line-item:hover { background: #fafafa; }
.cs-dash-line-item:last-child { border-bottom: 0; }
.cs-dash-line-item__name { font-weight: 500; color: #1a1a1a; }
.cs-dash-line-item__meta { color: #8c8c8c; text-align: right; tabular-nums; }
.cs-dash-line-item__pct {
  font-weight: 600;
  color: #1890ff;
  text-align: right;
  tabular-nums;
}
.cs-dash-line-item__head {
  display: none;
}
@media (min-width: 640px) {
  .cs-dash-line-list__head {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) 72px 56px 72px 72px;
    gap: 8px 16px;
    padding: 8px 16px;
    font-size: 12px;
    color: #8c8c8c;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
  }
}
.cs-dash-alert-feed {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.cs-dash-alert-feed .cs-dash-alert-row {
  padding: 12px 16px;
  margin: 0;
}
.cs-dash-alert-feed .cs-dash-alert-row:hover { background: #fafafa; }
.cs-dash-alert-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cs-dash-alert-row__text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-dash-alert-row__time {
  flex-shrink: 0;
  font-size: 12px;
  color: #999;
  tabular-nums;
}
.cs-dash-link {
  font-size: 12px;
  color: #1890ff;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.cs-dash-link:hover { text-decoration: underline; }
.cs-dash-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* 呼出分时 · 组合柱图 */
.cs-hourly-chart {
  position: relative;
  height: 260px;
  padding: 12px 8px 28px 44px;
  box-sizing: border-box;
}
.cs-hourly-chart__yaxis {
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 28px;
  width: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.cs-hourly-chart__ytick {
  font-size: 10px;
  color: #999;
  text-align: right;
  padding-right: 6px;
  line-height: 1;
}
.cs-hourly-chart__plot {
  position: relative;
  height: 100%;
  border-left: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}
.cs-hourly-chart__gridlines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.cs-hourly-chart__gridline {
  border-top: 1px dashed #f0f0f0;
  width: 100%;
}
.cs-hourly-chart__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 4px;
}
.cs-hourly-chart__col {
  flex: 1;
  min-width: 0;
  max-width: 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: background .15s;
}
.cs-hourly-chart__col:hover,
.cs-hourly-chart__col.is-active {
  background: rgba(24, 144, 255, 0.06);
}
.cs-hourly-chart__col.is-peak .cs-hourly-chart__rate {
  color: #1890FF;
  font-weight: 600;
}
.cs-hourly-chart__rate {
  font-size: 9px;
  color: #999;
  line-height: 1;
  white-space: nowrap;
  min-height: 10px;
}
.cs-hourly-chart__barpair {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.cs-hourly-chart__bar {
  width: 42%;
  max-width: 12px;
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  transition: opacity .15s;
}
.cs-hourly-chart__bar--out { background: #cbd5e1; }
.cs-hourly-chart__bar--ans { background: #1890FF; }
.cs-hourly-chart__col:hover .cs-hourly-chart__bar { opacity: 0.92; }
.cs-hourly-chart__label {
  font-size: 10px;
  color: #999;
  line-height: 1;
  margin-top: 2px;
}
.cs-hourly-team-scroll {
  min-width: 0;
  flex: 1;
  max-width: 100%;
}
@media (min-width: 1024px) {
  .cs-hourly-team-scroll { max-width: 480px; }
}

/* 列表表：与 ResourceTable 一致 */
.cs-table thead th {
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 8px;
  font-weight: 500;
  color: #666;
  background: #fbfbfb;
}
.cs-table tbody td {
  border-bottom: 1px solid #f4f5f7;
  padding: 10px 8px;
  color: #333;
}
.cs-table tbody tr:hover { background: #fafafa; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; }

/* 通话记录表 · 标签列固定宽度（同列对齐） */
.cs-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  vertical-align: middle;
  white-space: nowrap;
}
.cs-tag--line { min-width: 5.25rem; }
.cs-tag--dir { min-width: 3rem; }
.cs-tag--answer { min-width: 4rem; }
.cs-tag--timeout-type { min-width: 4.5rem; }
.cs-tag--blacklist { min-width: 3.25rem; }
.cs-tag--qa-status { min-width: 3.25rem; }
.cs-tag--qa-result { min-width: 3.25rem; }
.cs-tag--placeholder {
  border: 1px solid transparent;
  background: transparent;
}

/* 详情抽屉 · 对齐收纳师管理后台 Modal（动态 DOM 不用 Tailwind） */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
}
.drawer-overlay.is-open { display: block; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 880px;
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  border-left: 1px solid #e5e5e5;
  overflow: hidden;
}
.drawer-close {
  position: absolute;
  top: 10px;
  right: 16px;
  z-index: 2;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 4px;
}
.drawer-close:hover { color: #666; }
.drawer-summary {
  flex-shrink: 0;
  padding: 12px 20px;
  padding-right: 56px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
}
.drawer-summary.is-hidden { display: none; }
.drawer-summary--call { display: block; }
.drawer-summary:not(.drawer-summary--call) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.drawer-summary-strong { color: #333; font-weight: 500; }
.drawer-summary-muted { color: #999; font-size: 12px; }
.drawer-summary-sep { color: #e5e5e5; user-select: none; margin: 0 4px; }

/* 顶栏信息条 · 对齐收纳师 OrderTotalDetailHeader / PeopleDetailModal */
.drawer-detail-header { display: flex; flex-direction: column; gap: 8px; }
.drawer-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.drawer-header-row--sub {
  padding-top: 4px;
  border-top: 1px dashed #ebebeb;
  margin-top: 2px;
  padding-top: 10px;
}
.drawer-header-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.drawer-header-divider {
  width: 1px;
  height: 16px;
  background: #e5e5e5;
  flex-shrink: 0;
}
.drawer-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  min-width: 0;
  flex: 1;
}
.drawer-header-meta-item {
  font-size: 13px;
  white-space: nowrap;
}
.drawer-header-meta-item--route { white-space: normal; }
.drawer-header-meta-label { color: #666; }
.drawer-header-meta-value { color: #333; }
.drawer-header-meta-item--order .drawer-header-meta-value {
  color: #1890ff;
  font-weight: 500;
}
.drawer-header-meta-arrow {
  color: #bfbfbf;
  margin: 0 6px;
}
.drawer-header-alert {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
}
.drawer-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.drawer-scroll-inner {
  padding: 20px;
  flex: 1;
  background: #fff;
}
.drawer-player {
  background: #f7f7fa;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 20px;
}
.drawer-player.is-hidden { display: none; }
.drawer-player-bar {
  height: 6px;
  background: #e8e8e8;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}
.drawer-player-progress {
  height: 100%;
  width: 35%;
  background: #1890FF;
  border-radius: 999px;
}
.drawer-player-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #999;
}
.drawer-player-speeds { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-speed-btn {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid #eee;
  background: #fff;
  color: #666;
  cursor: pointer;
}
.drawer-speed-btn.is-active {
  border-color: #1890FF;
  color: #1890FF;
  background: #eef4ff;
}
.drawer-tabbar {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 12px 20px 0;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  flex-shrink: 0;
}
.drawer-tabbar.is-hidden { display: none; }
.drawer-tab {
  padding: 0 0 10px;
  margin-bottom: -1px;
  font-size: 13px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.drawer-tab:hover { color: #333; }
.drawer-tab.is-active {
  color: #1890FF;
  border-bottom-color: #1890FF;
  font-weight: 500;
}
.drawer-body { padding-top: 0; }
.drawer-panel-section.is-hidden { display: none; }
.drawer-panel-section + .drawer-panel-section { margin-top: 0; }
.drawer-section {
  margin-bottom: 24px;
}
.drawer-section:last-child { margin-bottom: 0; }
.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.drawer-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.drawer-section-bar {
  width: 2px;
  height: 16px;
  border-radius: 999px;
  background: #1890FF;
  flex-shrink: 0;
}
.drawer-section-link {
  font-size: 12px;
  color: #1890FF;
  text-decoration: none;
}
.drawer-section-link:hover { text-decoration: underline; }
.drawer-desc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 40px;
  margin: 0;
  padding-left: 6px;
}
.drawer-desc-item { min-width: 0; }
.drawer-desc-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.drawer-desc-value {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  word-break: break-word;
}
.drawer-desc-muted { color: #999; }
.drawer-two-way-alert {
  color: #d97706;
  font-size: 12px;
  line-height: 1.55;
}
.drawer-empty-note {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: #999;
  border: 1px dashed #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
}
.drawer-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.drawer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.drawer-action-btn:hover {
  border-color: #1890FF;
  color: #1890FF;
}
.drawer-action-btn.is-primary {
  background: #1890FF;
  border-color: #1890FF;
  color: #fff;
}
.drawer-action-btn.is-primary:hover {
  background: #40a9ff;
  border-color: #40a9ff;
  color: #fff;
}

/* 转写对话 */
.drawer-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 2px;
}
.drawer-chat-row {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}
.drawer-chat-row:hover { background: #fafafa; }
.drawer-chat-row.is-customer { flex-direction: row-reverse; }
.drawer-chat-row:focus-visible {
  outline: 2px solid rgba(24, 144, 255, 0.35);
  outline-offset: 2px;
}
.drawer-chat-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #1890FF;
}
.drawer-chat-row.is-customer .drawer-chat-avatar {
  background: #f0f0f0;
  color: #666;
}
.drawer-chat-main {
  min-width: 0;
  max-width: 78%;
  display: flex;
  flex-direction: column;
}
.drawer-chat-row.is-customer .drawer-chat-main { align-items: flex-end; }
.drawer-chat-meta {
  font-size: 11px;
  color: #999;
  margin: 0 0 4px;
}
.drawer-chat-row.is-customer .drawer-chat-meta { text-align: right; }
.drawer-chat-bubble {
  display: inline-block;
  text-align: left;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
  background: #eef4ff;
  color: #1a1a1a;
}
.drawer-chat-row.is-customer .drawer-chat-bubble {
  background: #f7f7fa;
  color: #333;
}

/* 关键词命中 · 表格 */
.drawer-kw-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: #666;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}
.drawer-kw-summary-item strong { color: #333; font-weight: 600; }
.drawer-kw-summary-sep { color: #e5e5e5; user-select: none; }
.drawer-kw-summary-hint {
  flex: 1 1 100%;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
@media (min-width: 640px) {
  .drawer-kw-summary-hint { flex: 1 1 auto; margin-top: 0; text-align: right; }
}
.drawer-kw-table-wrap { margin-top: 0; }
.drawer-kw-seek {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}

/* 非通话详情 · 信息列表 */
.drawer-info-list { margin: 0; padding: 0; }
.drawer-info-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}
.drawer-info-row dt {
  width: 112px;
  flex-shrink: 0;
  color: #999;
  margin: 0;
}
.drawer-info-row dd {
  color: #333;
  margin: 0;
  flex: 1;
}

/* 列表数据范围 · 我的 / 全部（略紧凑，与工具栏 pill 协调） */
.cs-scope-seg {
  display: inline-flex;
  flex-shrink: 0;
  height: 32px;
  padding: 2px;
  gap: 2px;
  align-items: stretch;
  border-radius: 6px;
  background: #f7f7fa;
  border: none;
  box-sizing: border-box;
}
.cs-scope-seg__btn {
  border: none;
  margin: 0;
  padding: 0 12px;
  min-width: 52px;
  min-height: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 5px;
  cursor: pointer;
  background: transparent;
  color: #595959;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.cs-scope-seg__btn:hover:not(.is-active) {
  color: #262626;
}
.cs-scope-seg__btn.is-active {
  background: #fff;
  color: #1890ff;
  font-weight: 600;
  box-shadow: none;
}
.cs-scope-seg__btn:focus-visible {
  outline: 2px solid rgba(24, 144, 255, 0.45);
  outline-offset: 1px;
}
