/* css/views/audview_retention.css — 视图私有样式,owner: W20 audit-views agent。
 * 只许 W20 写;本视图专属选择器前缀 .v-audview-retention;颜色/间距用 var(--*)。
 * .v-audview-*(无视图后缀)= audview 分组共享类,各文件同义重复定义,自包含。 */

/* ---- 分组共享(与其他 audview_*.css 同义重复) ---- */
.v-audview-note {
  margin-bottom: var(--space-2);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ---- 本视图专属 ---- */
/* 语义说明行(待擦积压 >0 属正常,不当告警) */
.v-audview-retention-note {
  margin-bottom: var(--space-4);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* 最近一次擦除:kv 网格(vk 详情 modal 同式) */
.v-audview-retention-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
  font-size: 13px;
}
.v-audview-retention-kv-label { color: var(--color-text-secondary); }

.v-audview-retention-empty {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ---- 白画布 + 版头(§9g,2026-07-14,对拍 rate-card) ---- */
.v-audview-retention-canvas {
  background: var(--color-surface);
  border-radius: 24px;
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.v-audview-retention-canvas .section { margin-bottom: 0; }
.v-audview-retention-sub { font-size: 12px; font-weight: 400; color: var(--color-text-muted); margin-left: var(--space-2); }
.v-audview-retention-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.v-audview-retention-sec-head .section-title { margin-bottom: 0; }
.v-audview-retention-subtitle { font-size: 14px; font-weight: 600; margin: var(--space-6) 0 var(--space-3); }

/* 总览卡(全站定稿模型):主数 + 侧计数 + 填充条(积压/批容量,橙阶浅档) */
.v-audview-retention-overview {
  background: var(--color-card);
  border-radius: 18px;
  padding: var(--space-4);
}
.v-audview-retention-ov-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-bottom: var(--space-4);
}
.v-audview-retention-ov-num {
  font-family: var(--font-mono-tabular);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}
.v-audview-retention-ov-lbl { margin-top: 2px; font-size: 12px; color: var(--color-text-muted); }
.v-audview-retention-ov-side { display: flex; gap: var(--space-6); }
.v-audview-retention-ov-item { display: flex; flex-direction: column; gap: 1px; }
.v-audview-retention-ov-val { font-size: 18px; font-weight: 700; color: var(--color-text); font-variant-numeric: tabular-nums; }
.v-audview-retention-ov-l { font-size: 11px; color: var(--color-text-muted); }
.v-audview-retention-ov-cap { font-size: 12px; font-weight: 600; color: var(--color-text-secondary); margin-bottom: var(--space-2); }
.v-audview-retention-hbar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 5px;
  background: var(--color-surface); /* 灰卡上轨道翻白(§9g 第三层) */
  overflow: hidden;
  display: block;
  margin-bottom: var(--space-3);
}
.v-audview-retention-hbar::-webkit-progress-bar { background: var(--color-surface); }
.v-audview-retention-hbar::-webkit-progress-value { background: #FBAB6B; } /* 橙阶浅档(工作量非风险) */
.v-audview-retention-hbar::-moz-progress-bar { background: #FBAB6B; }
.v-audview-retention-note { margin-bottom: 0; }
