/* 经营概览视图专属样式：只消费 social-v2.css 的 token，类名前缀 sbi-ov-。 */

.sbi-ov {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sbi-ov-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* ---------- Hero KPI ---------- */

.sbi-ov-hero {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.sbi-ov-hero-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 10px;
}

.sbi-ov-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sbi-ov-hero-label {
  overflow: hidden;
  color: var(--sbi-text-2);
  font-size: 12.5px;
  font-weight: 640;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sbi-ov-hero-value {
  color: var(--sbi-text);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.sbi-ov-hero-spark {
  height: 38px;
  margin-top: auto;
}

.sbi-ov-spark-chart {
  width: 100%;
  height: 38px;
}

/* ---------- 卡片主体 / 图表容器 ---------- */

.sbi-ov-card-body {
  padding: 12px 18px 16px;
}

.sbi-ov-trend-chart {
  height: 300px;
}

.sbi-ov-channel-chart {
  height: 240px;
}

.sbi-ov-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- App 对比 / 区域 Top5 横向条 ---------- */

.sbi-ov-compare {
  display: grid;
  gap: 12px;
}

.sbi-ov-compare-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) max-content max-content;
  align-items: center;
  gap: 10px;
}

.sbi-ov-compare-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: var(--sbi-text);
  font-size: 13px;
  font-weight: 640;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sbi-ov-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sbi-ov-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f9;
}

.sbi-ov-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--sbi-accent-grad);
}

.sbi-ov-num {
  min-width: 84px;
  color: var(--sbi-text);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sbi-ov-link {
  padding: 2px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sbi-accent);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.sbi-ov-link:hover {
  background: rgba(37, 87, 214, 0.08);
}

.sbi-ov-top {
  display: grid;
  gap: 12px;
}

.sbi-ov-top-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
}

.sbi-ov-top-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 640;
}

.sbi-ov-top-name > strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- 骨架 ---------- */

.sbi-ov-skeleton-card {
  display: grid;
  padding: 16px 18px;
}

@media (max-width: 1280px) {
  .sbi-ov-hero {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
