/* ============================================================================
 * refined.css — 视觉升级层（v3.9.0）
 *
 * 目标：在不动任何布局结构与 DOM 的前提下，把界面统一到「少而精」的现代语言——
 *   1. 单一强调色（苹果蓝），其余全部走中性灰阶，语义色只在确实表达状态时出现；
 *   2. 大圆角 + 极细边框 + 多层柔和阴影，取代原先的硬边线与高饱和描边；
 *   3. 排版拉开层级：大标题收紧字距，正文提高行高，数字统一等宽对齐；
 *   4. 交互统一到一条缓动曲线，hover / active / focus 都有回应但不吵闹。
 *
 * 本文件必须最后加载（放在 index.html 样式表末尾），并统一用 body 前缀提权，
 * 以便压过 light-theme.css 中 body * / body :is(...) 这类宽泛规则。
 * ========================================================================== */

:root {
  /* 中性灰阶（苹果式：暖白底 + 近黑文字 + 四档灰） */
  --rf-bg: #fbfbfd;
  --rf-bg-soft: #f5f5f7;
  --rf-surface: #ffffff;
  --rf-surface-2: #fafafc;
  --rf-ink: #1d1d1f;
  --rf-ink-2: #424245;
  --rf-muted: #6e6e73;
  --rf-muted-2: #86868b;
  --rf-line: #e8e8ed;
  --rf-line-strong: #d2d2d7;

  /* 强调色与语义色 */
  --rf-accent: #0071e3;
  --rf-accent-press: #0060c0;
  --rf-accent-soft: #eef5fe;
  --rf-accent-line: #cfe3fb;
  --rf-positive: #1d9e5f;
  --rf-positive-soft: #eef8f2;
  --rf-warn: #b06a00;
  --rf-warn-soft: #fff6e8;
  --rf-danger: #d7403a;
  --rf-danger-soft: #fff0ef;
  --rf-violet: #6b5ad6;
  --rf-violet-soft: #f1effd;

  /* 圆角 */
  --rf-r-xs: 8px;
  --rf-r-sm: 10px;
  --rf-r-md: 14px;
  --rf-r-lg: 20px;
  --rf-r-xl: 26px;
  --rf-r-pill: 980px;

  /* 阴影：三层叠出「几乎看不见但拿得起来」的厚度 */
  --rf-sh-xs: 0 1px 2px rgba(16, 24, 40, .04);
  --rf-sh-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px -4px rgba(16, 24, 40, .08);
  --rf-sh-md: 0 1px 2px rgba(16, 24, 40, .03), 0 10px 32px -10px rgba(16, 24, 40, .12);
  --rf-sh-lg: 0 2px 4px rgba(16, 24, 40, .03), 0 24px 60px -20px rgba(16, 24, 40, .16);
  --rf-sh-accent: 0 6px 18px -6px rgba(0, 113, 227, .5);

  --rf-ease: cubic-bezier(.32, .72, 0, 1);
  --rf-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text",
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei",
    system-ui, sans-serif;
  --rf-font-num: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

/* ---------------------------------------------------------------- 基底 --- */

body {
  background: var(--rf-bg);
  color: var(--rf-ink);
  font-family: var(--rf-font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1, "cv05" 1;
}

/* 背景光晕改为极淡的冷色渐层，只提供氛围，不抢内容 */
body .glow { opacity: .5; filter: blur(120px); }
body .glow-a { background: radial-gradient(circle, rgba(0, 113, 227, .16), transparent 70%); }
body .glow-b { background: radial-gradient(circle, rgba(107, 90, 214, .12), transparent 70%); }

body ::selection { background: rgba(0, 113, 227, .16); }

/* 滚动条：细、圆、悬停才显色 */
body * { scrollbar-width: thin; scrollbar-color: var(--rf-line-strong) transparent; }
body ::-webkit-scrollbar { width: 10px; height: 10px; }
body ::-webkit-scrollbar-track { background: transparent; }
body ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .16);
  border: 3px solid transparent;
  border-radius: var(--rf-r-pill);
  background-clip: content-box;
}
body ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .3); background-clip: content-box; }

body :is(h1, h2, h3, h4, strong, b) {
  color: var(--rf-ink);
  letter-spacing: -.015em;
}
body small { color: var(--rf-muted-2); }

body :is(a, button, input, textarea, select, summary, [tabindex]) {
  transition: background-color .22s var(--rf-ease), border-color .22s var(--rf-ease),
    color .22s var(--rf-ease), box-shadow .22s var(--rf-ease), transform .22s var(--rf-ease);
}

body :is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid rgba(0, 113, 227, .35);
  outline-offset: 2px;
  border-radius: var(--rf-r-sm);
}

/* ------------------------------------------------------------ 顶栏 / 导航 --- */

body .topbar { padding: 22px 20px; gap: 18px; }
body .brand { gap: 12px; }
body .brand h1 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; color: var(--rf-ink); }
body .brand p,
body .eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rf-muted-2);
}

body .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(150deg, #3d9bff, #0071e3 55%, #0057b8);
  border: none;
  box-shadow: var(--rf-sh-accent);
}
body .brand-mark span { background: rgba(255, 255, 255, .92); box-shadow: none; }

body .module-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 7px;
  background: var(--rf-bg-soft);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-lg);
  box-shadow: none;
}
body .module-nav button {
  height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: var(--rf-r-sm);
  background: transparent;
  color: var(--rf-ink-2);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
body .module-nav button i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rf-line-strong);
  box-shadow: none;
}
body .module-nav button:hover { background: rgba(0, 0, 0, .04); color: var(--rf-ink); }
body .module-nav button.active {
  background: var(--rf-surface);
  color: var(--rf-ink);
  font-weight: 600;
  box-shadow: var(--rf-sh-sm);
}
body .module-nav button.active i { background: var(--rf-accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, .16); }
body .module-nav small {
  background: rgba(0, 0, 0, .06);
  color: var(--rf-muted);
  border-radius: var(--rf-r-pill);
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
}
body .module-nav button.active small { background: var(--rf-accent-soft); color: var(--rf-accent); }

body .connection-badge {
  padding: 9px 13px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-md);
  color: var(--rf-muted);
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--rf-sh-xs);
}
body .connection-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--rf-muted-2); }
body .connection-badge.connected { color: var(--rf-positive); }
body .connection-badge.connected i { background: var(--rf-positive); box-shadow: 0 0 0 3px rgba(29, 158, 95, .14); }
body .connection-badge.watching { color: var(--rf-violet); }
body .connection-badge.watching i { background: var(--rf-violet); box-shadow: 0 0 0 3px rgba(107, 90, 214, .14); }

/* ------------------------------------------------------------ 卡片 / 容器 --- */

body .panel,
body .insight-card,
body .overview-card,
body .trend-card,
body .material-card,
body .talk-script-panel,
body .speech-block,
body .live-state-card,
body .auto-transcript-card,
body .live-transcript-card,
body .transcript-history-card,
body .product-speech-card,
body .archive-card {
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-lg);
  box-shadow: var(--rf-sh-sm);
}

body .panel { padding: 26px 28px; }
body .hero {
  padding: 40px 40px 34px;
  border-radius: var(--rf-r-xl);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(0, 113, 227, .07), transparent 55%),
    var(--rf-surface);
  box-shadow: var(--rf-sh-md);
}
body .hero h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.03em;
  margin: 12px 0 14px;
}
body .hero h2 em {
  font-style: normal;
  background: linear-gradient(96deg, #0071e3, #6b5ad6 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body .hero-copy { font-size: 14px; line-height: 1.75; max-width: 62ch; }
body .hero .eyebrow { margin-bottom: 4px; }

body .section-divider { border-top: 1px solid var(--rf-line); font-size: 17px; font-weight: 650; letter-spacing: -.02em; padding-top: 18px; margin-top: 26px; }

/* 卡片内的小标题块统一：淡底 + 圆角，取代裸边线 */
body .heading-actions,
body .studio-heading,
body .analytics-head,
body .transcript-head,
body .console-head,
body .knowledge-head,
body .screens-header {
  gap: 12px;
  align-items: center;
}
body :is(.analytics-head, .transcript-head, .console-head, .knowledge-head, .screens-header) h3,
body .studio-heading h3 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }

body .history-bar,
body .rooms-bar,
body .live-status-board,
body .table-head {
  background: var(--rf-surface-2);
  border-radius: var(--rf-r-md);
}

/* 复盘页是「窄卡片 + 长列表」两栏：让左栏按自身内容收高，
   否则趋势卡会被右侧长列表拉长、底部留出一大片空白。 */
body .analytics-grid,
body .two-column,
body .editorial-grid { align-items: start; }
body .analytics-grid > *,
body .two-column > * { align-self: start; }
body .table-head {
  border: 1px solid var(--rf-line);
  border-bottom: 1px solid var(--rf-line);
  color: var(--rf-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 11px 16px;
}

/* ---------------------------------------------------------------- 按钮 --- */

body .primary,
body .speech-block .primary,
body .speech-button-row .primary {
  background: linear-gradient(180deg, #1a86ff, var(--rf-accent));
  color: #fff;
  border: none;
  border-radius: var(--rf-r-md);
  padding: 0 20px;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  box-shadow: var(--rf-sh-accent);
}
body .primary:hover,
body .speech-block .primary:hover {
  background: linear-gradient(180deg, #0b7cf5, var(--rf-accent-press));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(0, 113, 227, .58);
}
body .primary:active { transform: translateY(0); box-shadow: var(--rf-sh-xs); }
body .primary:disabled,
body .secondary:disabled,
body button:disabled { opacity: .42; box-shadow: none; transform: none; cursor: not-allowed; }

body .secondary,
body .outline,
body .icon-button,
body .speech-tabs button,
body .speech-block button,
body .transcript-toggle {
  background: var(--rf-surface);
  color: var(--rf-ink-2);
  border: 1px solid var(--rf-line-strong);
  border-radius: var(--rf-r-md);
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 550;
  box-shadow: var(--rf-sh-xs);
}
body :is(.secondary, .outline, .icon-button, .speech-tabs button, .transcript-toggle):hover {
  background: var(--rf-surface);
  border-color: rgba(0, 0, 0, .22);
  color: var(--rf-ink);
  transform: translateY(-1px);
  box-shadow: var(--rf-sh-sm);
}
body :is(.secondary, .outline, .icon-button):active { transform: translateY(0); }
body .secondary.monitor-action { color: var(--rf-violet); border-color: #d8d2f5; }
body .secondary.monitor-action:hover { background: var(--rf-violet-soft); color: var(--rf-violet); border-color: #c3b9f0; }

body .icon-button { width: 44px; padding: 0; border-radius: var(--rf-r-md); }
body .danger-text, body .history-delete, body .transcript-remove, body .knowledge-remove { color: var(--rf-danger); }
body .history-delete:hover, body .transcript-remove:hover { background: var(--rf-danger-soft); }

body .toast {
  background: rgba(29, 29, 31, .92);
  color: #fff;
  border: none;
  border-radius: var(--rf-r-md);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--rf-sh-lg);
}

/* ------------------------------------------------------------ 指标 / 数字 --- */

body .metric,
body .analytics-metrics article,
body .speech-metrics > div,
body .insight-stats > *,
body .knowledge-stats > * {
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-md);
  box-shadow: var(--rf-sh-xs);
  transition: box-shadow .28s var(--rf-ease), transform .28s var(--rf-ease);
}
body :is(.metric, .analytics-metrics article, .speech-metrics > div):hover {
  transform: translateY(-2px);
  box-shadow: var(--rf-sh-md);
}
body .metric strong,
body .analytics-metrics strong,
body .speech-metrics strong {
  font-family: var(--rf-font);
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.03em;
  color: var(--rf-ink);
  font-variant-numeric: tabular-nums;
}
body .metric span,
body .metric small,
body .analytics-metrics small,
body .speech-metrics span {
  color: var(--rf-muted-2);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
/* 指标卡配色收敛：默认黑，只有真正表达状态时才上色 */
body .metric.cyan strong, body .analytics-metrics .quality strong { color: var(--rf-accent); }
body .metric.magenta strong { color: var(--rf-violet); }
body .metric.lime strong { color: var(--rf-positive); }

/* 指标卡的装饰线：收成底部一小段圆头短条，且只在有语义时上色，
   避免一排卡片底部出现四种颜色的线把视觉打散。 */
body .metric::after,
body .analytics-metrics article::after,
body .insight-stats article::after {
  left: 22px;
  bottom: 0;
  width: 26px;
  height: 3px;
  border-radius: var(--rf-r-pill);
  background: var(--rf-line-strong);
  opacity: 1;
}
body .metric.cyan::after,
body .analytics-metrics .quality::after { background: var(--rf-accent); }
body .metric.magenta::after,
body .analytics-metrics .intent::after { background: var(--rf-violet); }
body .metric.lime::after { background: var(--rf-positive); }

/* ---------------------------------------------------------------- 表单 --- */

body .input-wrap,
body .search,
body .history-date,
body .history-date select,
body .export-menu,
body input,
body textarea,
body select,
body .talk-settings input,
body .speech-editor input,
body .speech-editor textarea,
body .speech-settings-grid input,
body .speech-settings-grid textarea {
  background: var(--rf-surface);
  color: var(--rf-ink);
  border: 1px solid var(--rf-line-strong);
  border-radius: var(--rf-r-md);
  font-size: 14px;
  line-height: 1.7;
}
body input, body select { height: 44px; }
body textarea { padding: 12px 14px; }
body .input-wrap { padding: 0 6px 0 14px; }
body .input-wrap input { border: none; height: 44px; background: transparent; }
body .input-wrap svg { color: var(--rf-muted-2); }
body .input-wrap:focus-within {
  border-color: var(--rf-accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .12);
}
body input:focus, body textarea:focus, body select:focus {
  outline: none;
  border-color: var(--rf-accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .12);
}
body input::placeholder, body textarea::placeholder { color: var(--rf-muted-2); }
body .filter,
body .room-tab,
body .capability-row span {
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-pill);
  color: var(--rf-ink-2);
  font-size: 12px;
  font-weight: 550;
  padding: 7px 13px;
}
body .filter:hover, body .room-tab:hover { border-color: var(--rf-line-strong); background: var(--rf-surface-2); }
body .filter.active, body .room-tab.active {
  background: var(--rf-ink);
  border-color: var(--rf-ink);
  color: #fff;
  box-shadow: var(--rf-sh-sm);
}
body .filter.active span, body .room-tab.active span { color: rgba(255, 255, 255, .72); }
body .filter span, body .room-tab span { color: var(--rf-muted-2); }
body .capability-row span { color: var(--rf-muted); background: transparent; border-color: transparent; padding-left: 0; }
body .capability-row span i { background: var(--rf-accent); width: 5px; height: 5px; border-radius: 50%; box-shadow: none; }
body .status-line { color: var(--rf-muted); font-size: 13px; }
body .status-line i { background: var(--rf-accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, .14); }

body .feishu-panel summary,
body .speech-monitor-controls,
body .speech-settings {
  background: var(--rf-surface-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-md);
}

/* --------------------------------------------------- 列表 / 事件 / 表格 --- */

body .event-row {
  border-bottom: 1px solid var(--rf-line);
  padding: 1px 14px;
  transition: background-color .18s var(--rf-ease);
}
body .event-row:hover { background: var(--rf-accent-soft); }
body .event-row[data-type=lifecycle] { background: var(--rf-bg-soft); }
body .event-row[data-type=lifecycle]:hover { background: var(--rf-violet-soft); }
body .event-time, body .event-room { color: var(--rf-muted-2); font-size: 12px; }
body .event-user { color: var(--rf-ink-2); font-weight: 550; }
body .event-content { color: var(--rf-ink); }
body .event-row .event-content { line-height: 1.65; }

body :is(.room-share-list, .rank-list, .recommendation-list, .intent-list, .question-list, .topic-list) > * {
  border-radius: var(--rf-r-sm);
}
body :is(.rank-bar, .room-share > i, .intent-item > i) {
  background: var(--rf-bg-soft);
  border-radius: var(--rf-r-pill);
  overflow: hidden;
}
body :is(.rank-bar i, .room-share > i i, .intent-item > i i) {
  background: linear-gradient(90deg, #4da3ff, var(--rf-accent));
  border-radius: var(--rf-r-pill);
}
body .rank-index {
  background: var(--rf-bg-soft);
  color: var(--rf-muted);
  border-radius: var(--rf-r-xs);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
body .recommendation-list li {
  background: var(--rf-surface-2);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-sm);
  padding: 11px 14px;
  color: var(--rf-ink-2);
  line-height: 1.7;
}

/* 高频问题 / 高频关注点：每一条都做成可读的软卡片 */
body .topic-item {
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-md);
  padding: 14px 16px;
  box-shadow: var(--rf-sh-xs);
  transition: box-shadow .26s var(--rf-ease), transform .26s var(--rf-ease), border-color .26s var(--rf-ease);
}
body .topic-item:hover {
  transform: translateY(-2px);
  border-color: var(--rf-accent-line);
  box-shadow: var(--rf-sh-md);
}
body .topic-head > span { color: var(--rf-ink); font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
body .topic-head > em {
  color: var(--rf-accent);
  background: var(--rf-accent-soft);
  border-radius: var(--rf-r-pill);
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  font-style: normal;
}
body .topic-head > i { color: var(--rf-muted-2); font-variant-numeric: tabular-nums; font-weight: 600; }
body .topic-samples { color: var(--rf-muted); font-size: 12px; line-height: 1.75; }
body .question-list span {
  background: var(--rf-bg-soft);
  color: var(--rf-ink-2);
  border-radius: var(--rf-r-pill);
  padding: 4px 10px;
  font-size: 12px;
}

/* 趋势柱：单色渐变，去掉彩虹感 */
body .trend-bar i { background: linear-gradient(180deg, #78bcff, var(--rf-accent)); border-radius: var(--rf-r-xs) var(--rf-r-xs) 2px 2px; }
body .trend-bar span, body .trend-bar b, body .analytics-updated { color: var(--rf-muted); }
body .length-distribution i:nth-child(1) { background: #cfe3fb; }
body .length-distribution i:nth-child(2) { background: #78bcff; }
body .length-distribution i:nth-child(3) { background: var(--rf-accent); }
body .length-distribution { background: var(--rf-bg-soft); border-radius: var(--rf-r-md); }

/* ------------------------------------------------------------ 话术 / 编辑 --- */

body .speech-block { padding: 30px 34px; }
body .speech-block header strong { font-size: 17px; font-weight: 650; }
body .speech-paragraph {
  color: var(--rf-ink);
  font-size: 16px;
  line-height: 2.05;
  max-width: 74ch;
}
body .speech-tabs button {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: var(--rf-r-pill);
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}
body .speech-tabs button:hover { background: rgba(0, 0, 0, .05); transform: none; box-shadow: none; }
body .speech-tabs button.active {
  background: var(--rf-surface);
  border-color: var(--rf-line);
  box-shadow: var(--rf-sh-xs);
  color: var(--rf-ink);
  font-weight: 600;
}
body .speech-review,
body .capture-guide,
body .capture-guide.auto {
  background: var(--rf-accent-soft);
  border: 1px solid var(--rf-accent-line);
  border-radius: var(--rf-r-md);
}
body .speech-badge {
  background: var(--rf-positive-soft);
  color: var(--rf-positive);
  border: 1px solid #cdeadd;
  border-radius: var(--rf-r-pill);
  font-weight: 600;
}
body .speech-badge.pending { background: var(--rf-warn-soft); color: var(--rf-warn); border-color: #f0dcb8; }
body .speech-tags span { background: var(--rf-bg-soft); color: var(--rf-ink-2); border-radius: var(--rf-r-pill); padding: 3px 9px; font-size: 11px; }
body .speech-checks span { background: var(--rf-warn-soft); color: var(--rf-warn); border-radius: var(--rf-r-pill); }
body .speech-risk { background: var(--rf-danger-soft); color: var(--rf-danger); border-radius: var(--rf-r-sm); }
body .speech-dimension { background: var(--rf-surface-2); border: 1px solid var(--rf-line); border-radius: var(--rf-r-md); }
body .speech-dimension.found { background: var(--rf-positive-soft); border-color: #cdeadd; }
body .speech-rewrite-list li { background: var(--rf-warn-soft); border-radius: var(--rf-r-sm); }
body .speech-host-reviews article { border: 1px solid var(--rf-line); border-radius: var(--rf-r-md); box-shadow: var(--rf-sh-xs); }

body .audience-review-grid > section,
body .daily-studio {
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-lg);
  box-shadow: var(--rf-sh-sm);
}
body .daily-studio { padding: 28px; }
body .daily-heading h3 { font-size: 24px; font-weight: 680; letter-spacing: -.025em; }
body .daily-hosts button {
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-md);
  box-shadow: var(--rf-sh-xs);
  transition: box-shadow .26s var(--rf-ease), transform .26s var(--rf-ease), border-color .26s var(--rf-ease);
}
body .daily-hosts button:hover { transform: translateY(-2px); box-shadow: var(--rf-sh-md); border-color: var(--rf-accent-line); }
body .daily-hosts button.active { background: var(--rf-accent-soft); border-color: var(--rf-accent-line); }
body .daily-hosts strong { color: var(--rf-ink); font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
body .daily-hosts button.active strong { color: var(--rf-accent); }
body .daily-room-heading > strong { color: var(--rf-ink); font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
body .daily-gap { background: var(--rf-warn-soft); border: 1px solid #f0dcb8; border-radius: var(--rf-r-md); color: var(--rf-warn); }
body .daily-review-grid article { background: var(--rf-surface-2); border-radius: var(--rf-r-md); border: 1px solid var(--rf-line); }
body .daily-themes > div { border-left: 2px solid var(--rf-accent-line); }

/* 素材卡片（视频选题） */
body .material-card header { gap: 16px; }
body .material-rank {
  background: var(--rf-accent-soft);
  color: var(--rf-accent);
  border-radius: var(--rf-r-sm);
  font-family: var(--rf-font-num);
  font-weight: 650;
}
body .material-card h4 { font-weight: 650; letter-spacing: -.02em; line-height: 1.5; }
body .material-topic { color: var(--rf-accent); font-weight: 600; }
body .material-score { background: var(--rf-bg-soft); color: var(--rf-muted); border-radius: var(--rf-r-pill); font-weight: 600; }
body .material-card blockquote {
  background: var(--rf-surface-2);
  border-left: 3px solid var(--rf-accent);
  border-radius: 0 var(--rf-r-md) var(--rf-r-md) 0;
  color: var(--rf-ink);
  font-size: 16px;
  line-height: 1.9;
}
body .material-reasons span {
  border: 1px solid var(--rf-line);
  background: var(--rf-surface-2);
  color: var(--rf-ink-2);
  border-radius: var(--rf-r-pill);
  padding: 3px 10px;
}
body .source-caption { color: var(--rf-muted-2); }

/* 遮罩层与弹窗：苹果式玻璃 + 大圆角 */
body .live-dialog-shell,
body dialog {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: var(--rf-r-xl);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--rf-sh-lg);
}
body .live-dialog-toolbar { background: rgba(255, 255, 255, .6); border-bottom: 1px solid var(--rf-line); }

/* 画面墙：卡片圆角与描边统一 */
body .screens-grid > *,
body .shot,
body .shot-list > * {
  border-radius: var(--rf-r-md);
  border: 1px solid var(--rf-line);
  overflow: hidden;
  box-shadow: var(--rf-sh-xs);
}
body .screens-focus-stage { border-radius: var(--rf-r-lg); overflow: hidden; box-shadow: var(--rf-sh-md); }

/* 空态与加载态：淡灰、居中、不喧哗 */
body .empty-state,
body .empty-list,
body .transcript-empty,
body .screens-empty,
body .knowledge-empty,
body .live-dialog-empty {
  color: var(--rf-muted-2);
  border: 1px dashed var(--rf-line-strong);
  border-radius: var(--rf-r-md);
  background: var(--rf-surface-2);
  padding: 28px 20px;
  font-size: 13px;
}

body footer { color: var(--rf-muted-2); font-size: 12px; }

/* --------------------------------------------------------- 滚动出现的动效 --- */
@media (prefers-reduced-motion: no-preference) {
  body .panel,
  body .insight-card,
  body .analytics-panel,
  body .transcript-panel {
    animation: rf-rise .5s var(--rf-ease) both;
  }
  @keyframes rf-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

/* --------------------------------------------------------------- 响应式 --- */
@media (max-width: 1180px) {
  body .shell { width: calc(100% - 32px); }
  body .panel { padding: 22px; }
  body .hero { padding: 30px 26px; }
}
@media (max-width: 760px) {
  body .hero h2 { font-size: 26px; letter-spacing: -.02em; }
  body .metric strong, body .analytics-metrics strong { font-size: 24px; }
  body .panel { border-radius: var(--rf-r-md); padding: 18px; }
  body .module-nav { border-radius: var(--rf-r-md); }
}

/* ---------- 短视频监测（4.0.0） ---------- */
body .video-accounts { display: grid; gap: 10px; margin: 14px 0 18px; }
body .video-account { border: 1px solid var(--rf-line, #e2e6ee); border-radius: 12px; padding: 12px 14px; background: var(--rf-surface, #fff); }
body .video-account.paused { opacity: .6; }
body .video-account header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body .video-account .speech-note { margin: 6px 0; }
body .video-badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(37, 99, 235, .1); color: #1d4ed8; }
body .video-button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
body .video-button-row button, body .video-link { font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--rf-line, #d7dce6); background: #fff; cursor: pointer; text-decoration: none; color: inherit; }
body .video-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 16px 0 12px; }
body .video-toolbar label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #55607a; }
body .video-toolbar select, body .video-toolbar input { font-size: 14px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--rf-line, #d7dce6); }
body .video-search { flex: 1 1 200px; }
body .video-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
body .video-card { display: flex; gap: 12px; border: 1px solid var(--rf-line, #e2e6ee); border-radius: 12px; padding: 10px; cursor: pointer; background: var(--rf-surface, #fff); }
body .video-card:hover { border-color: #9db4e0; }
body .video-card img, body .video-cover-empty { width: 84px; height: 112px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; background: #eef1f6; }
body .video-card-body { min-width: 0; }
body .video-card-body strong { display: block; font-size: 14px; line-height: 1.5; margin-bottom: 4px; }
body .video-card-body .speech-note { margin: 0 0 6px; font-size: 12px; }
body .video-stats { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #4a5568; }
body .video-stats span { background: #f3f5f9; border-radius: 6px; padding: 2px 7px; }
body .video-detail { margin-top: 16px; border: 1px solid var(--rf-line, #e2e6ee); border-radius: 12px; padding: 14px; background: var(--rf-surface, #fff); }
body .video-detail-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
body .video-detail-head p { margin: 6px 0 0; font-size: 13px; color: #47506a; white-space: pre-wrap; }
body .video-comments { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; max-height: 460px; overflow: auto; }
body .video-comments li { border-left: 3px solid #e2e6ee; padding-left: 10px; }
body .video-comments p { margin: 0 0 3px; font-size: 14px; }
body .video-comments small { color: #6b7280; font-size: 12px; }
body .video-panel .warning { color: #b45309; font-size: 13px; }

/* ---------- 短视频：播放器、口播文案（4.0.0） ---------- */
body .app-version { font-weight: 600; color: #1d4ed8; }
body .video-player { width: 100%; max-height: 420px; margin: 12px 0; border-radius: 10px; background: #000; display: block; }
body .video-script { margin-top: 14px; border: 1px solid var(--rf-line, #e2e6ee); border-radius: 10px; padding: 12px; background: #fafbfd; }
body .video-script header, body .video-comments-wrap header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body .video-script-text { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.85; margin: 10px 0 0; max-height: 420px; overflow: auto; }
body .video-progress { height: 6px; border-radius: 999px; background: #e6eaf2; overflow: hidden; margin: 8px 0; }
body .video-progress i { display: block; height: 100%; background: linear-gradient(90deg, #2563eb, #60a5fa); transition: width .4s ease; }
body .video-badge.running { background: rgba(37, 99, 235, .12); }
body .video-badge.error { background: rgba(220, 38, 38, .12); color: #b91c1c; }
body .video-comments-wrap { margin-top: 16px; }
body .video-account.paused { opacity: .6; }

/* ---------- 文案框架结构分析（4.0.0） ---------- */
body .video-analysis { margin-top: 14px; border: 1px solid var(--rf-line, #e2e6ee); border-radius: 10px; padding: 12px; background: #fff; }
body .video-analysis header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body .video-analysis-structure { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
body .video-analysis-structure li { border-left: 3px solid #16a34a; padding: 4px 0 4px 9px; font-size: 13px; line-height: 1.6; }
body .video-analysis-structure li.missing { border-left-color: #d1d5db; color: #6b7280; }
body .video-analysis-structure li strong { margin-right: 6px; }
body .video-analysis-structure li span { color: #6b7280; font-size: 12px; }
body .video-analysis-structure li em { display: block; color: #334155; font-style: normal; font-size: 12px; margin-top: 2px; }
body .video-analysis-facts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #4a5568; margin: 8px 0; }
body .video-analysis-facts span { background: #f3f5f9; border-radius: 6px; padding: 3px 8px; }
body .video-analysis-advice { margin: 8px 0 0 18px; font-size: 13px; line-height: 1.8; }

/* ---------- 联网校对（LLM） ---------- */
body .llm-config { margin: 14px 0; border: 1px solid var(--rf-line, #e2e6ee); border-radius: 12px; background: var(--rf-surface, #fff); padding: 10px 14px; }
body .llm-config summary { cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 10px; }
body .llm-config-body { padding-top: 10px; }
body .llm-config-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 12px 0; }
body .llm-config-grid label, body .llm-config-prompt { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #55607a; }
body .llm-config-grid input, body .llm-config-prompt textarea { font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--rf-line, #d7dce6); font-family: inherit; }
body .llm-config-prompt textarea { line-height: 1.7; resize: vertical; }
body .llm-config-enable { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #55607a; }
body .llm-config code { background: #f3f5f9; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

body .video-proofread { margin-top: 14px; border: 1px solid var(--rf-line, #e2e6ee); border-radius: 10px; padding: 12px; background: #fff; }
body .video-proofread header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body .proofread-edits { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; max-height: 460px; overflow: auto; }
body .proofread-edits li { border-left: 3px solid #16a34a; padding: 6px 0 6px 10px; font-size: 14px; line-height: 1.8; }
body .proofread-edits li .type { display: inline-block; font-size: 12px; color: #1d4ed8; background: rgba(37, 99, 235, .1); border-radius: 999px; padding: 1px 8px; margin-right: 6px; }
body .proofread-edits li del { color: #b91c1c; background: rgba(220, 38, 38, .08); text-decoration: line-through; padding: 0 2px; border-radius: 3px; }
body .proofread-edits li ins { color: #15803d; background: rgba(22, 163, 74, .1); text-decoration: none; padding: 0 2px; border-radius: 3px; font-weight: 600; }
body .proofread-edits li em { display: block; font-style: normal; font-size: 12px; color: #6b7280; margin-top: 2px; }
body .proofread-rejected { margin-top: 10px; font-size: 13px; }
body .proofread-rejected li { font-size: 12px; line-height: 1.7; color: #6b7280; }
body .proofread-rejected del { color: #9ca3af; text-decoration: line-through; }
body .proofread-rejected ins { color: #6b7280; text-decoration: none; }
body .video-proofread details { margin-top: 10px; font-size: 13px; }
body .video-proofread summary { cursor: pointer; color: #55607a; }
body .video-proofread pre { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.85; margin: 10px 0 0; max-height: 420px; overflow: auto; }

/* ── 话术生成（Lulala 智能体） ─────────────────────────────── */
.writer-form textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  border: 1px solid var(--border, #d8dee9);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: var(--panel, #fff);
  color: inherit;
}
.writer-form .writer-options {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.writer-form .writer-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.writer-form .writer-options select {
  border: 1px solid var(--border, #d8dee9);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  background: var(--panel, #fff);
  color: inherit;
}
.writer-piece { margin: 10px 0 16px; }
.writer-piece .video-button-row { margin-bottom: 6px; }
.writer-history { margin-top: 16px; }
.writer-history summary { cursor: pointer; font-weight: 600; }

/* ── 转文字历史 ─────────────────────────────── */
.transcribe-history { margin: 14px 0; }
.transcribe-history summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.history-body { margin-top: 8px; }
.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.history-list li button {
  width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border: 1px solid var(--border, #d8dee9); border-radius: 8px;
  background: var(--panel, #fff); color: inherit; cursor: pointer; font: inherit;
}
.history-list li button:hover { border-color: var(--accent, #4c6ef5); }
.history-list li.is-error button { opacity: .75; }
.history-time { font-size: 12px; opacity: .65; }
.history-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-meta { font-size: 12px; opacity: .75; }

/* ── 短视频监测：折叠面板 / 类目筛选 / 数据走向图 ─────────────── */
body .panel-collapse { border: 1px solid var(--rf-line, #e2e6ee); border-radius: 12px; background: var(--rf-surface, #fff); margin: 12px 0; overflow: hidden; }
body .panel-collapse > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; }
body .panel-collapse > summary::-webkit-details-marker { display: none; }
body .panel-collapse > summary::before { content: '▸'; color: #8a93a6; transition: transform .15s; }
body .panel-collapse[open] > summary::before { transform: rotate(90deg); }
body .panel-collapse-body { padding: 4px 14px 14px; }
body .video-badge.warn { background: rgba(220, 78, 78, .12); color: #b42318; }
body .account-trend { margin-top: 10px; border-top: 1px dashed var(--rf-line, #e2e6ee); padding-top: 10px; }
body .trend-svg { width: 100%; height: 100px; display: block; }
body .trend-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 12px; color: #5b6472; }
body .trend-legend-item { display: inline-flex; align-items: center; gap: 5px; }
body .trend-legend-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
body .cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
body .cat-chip { border: 1px solid var(--rf-line, #e2e6ee); border-radius: 999px; background: transparent; padding: 3px 10px; font-size: 12px; cursor: pointer; color: inherit; }
body .cat-chip.active { border-color: #c2410c; background: rgba(194, 65, 12, .1); color: #c2410c; font-weight: 600; }
body .video-comments li small .cat-tag { color: #8a93a6; }
body .history-list li.is-comments .history-title { color: #0e7490; }

/* ── 达人类型 tab / 走向条 / 类目 chips 补充 ─────────────────── */
body .kind-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
body .kind-tab { border: 1px solid var(--rf-line, #e2e6ee); border-radius: 999px; background: transparent; padding: 5px 14px; font-size: 13px; cursor: pointer; color: inherit; }
body .kind-tab.active { border-color: #c2410c; background: rgba(194, 65, 12, .1); color: #c2410c; font-weight: 600; }
body .link-btn { border: 0; background: none; color: #0e7490; cursor: pointer; font-size: 12px; padding: 0; text-decoration: underline; }
body .vm-trend-line { width: 100%; height: auto; display: block; background: var(--rf-surface, #fff); border: 1px solid var(--rf-line, #e2e6ee); border-radius: 10px; }
body .vm-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 4px; font-size: 12px; color: #5b6472; }
body .vm-legend-item { display: inline-flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
body .vm-legend-item i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
body .cat-chip.empty { opacity: .45; }
body .video-kind-select { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
body .video-kind-select select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--rf-line, #e2e6ee); background: var(--rf-surface, #fff); color: inherit; }

/* ── 弹幕复盘：话题分类卡片（vm- 前缀，与短视频监测共用 cat-chip）── */
body .topic-samples-box { margin-top: 4px; }
body .topic-samples-box .video-comments { max-height: 320px; }
body .cat-chip.empty { opacity: .4; }

/* ── 火山妙记配置教程步骤 ─────────────────────────────────── */
body .tingwu-guide-steps { margin: 8px 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; line-height: 1.65; }
body .tingwu-guide-steps a { color: #0e7490; text-decoration: underline; }
body .tingwu-guide-steps code { background: rgba(148, 163, 184, .15); border-radius: 4px; padding: 1px 6px; font-size: 12px; }

/* ── 短视频账号数据分析看板（4.8.16）──────────────────────── */
body .vm-overview-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}
body .vm-overview-card {
  position: relative;
  min-width: 0;
  padding: 14px 15px 13px;
  border: 1px solid #dfe6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(30, 52, 79, .05);
  overflow: hidden;
}
body .vm-overview-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: #2563eb; }
body .vm-overview-card[data-tone="videos"]::before { background: #7c3aed; }
body .vm-overview-card[data-tone="digg"]::before { background: #ea580c; }
body .vm-overview-card[data-tone="comments"]::before { background: #0f766e; }
body .vm-overview-card[data-tone="collect"]::before { background: #c026d3; }
body .vm-overview-card[data-tone="share"]::before { background: #0891b2; }
body .vm-overview-card > span { display: block; color: #64748b; font-size: 12px; font-weight: 600; }
body .vm-overview-card > strong { display: block; margin: 5px 0 3px; color: #0f172a; font-size: clamp(22px, 2vw, 30px); line-height: 1.05; letter-spacing: -.03em; }
body .vm-overview-card > small { display: block; color: #94a3b8; font-size: 11px; line-height: 1.45; }

body .vm-dashboard {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0, #fff 190px);
  box-shadow: 0 12px 32px rgba(30, 64, 105, .06);
}
body .vm-dashboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 14px; }
body .vm-dashboard-head h3 { margin: 2px 0 5px; color: #0f172a; font-size: 22px; letter-spacing: -.02em; }
body .vm-dashboard-head p { margin: 0; max-width: 720px; color: #64748b; font-size: 13px; line-height: 1.65; }
body .vm-kicker { color: #2563eb; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
body .vm-dashboard-filters { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
body .vm-segment { display: inline-flex; padding: 3px; border: 1px solid #dbe4ee; border-radius: 10px; background: #f1f5f9; gap: 2px; }
body .vm-segment button { border: 0; border-radius: 7px; padding: 6px 10px; background: transparent; color: #64748b; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
body .vm-segment button:hover { color: #1d4ed8; }
body .vm-segment button.active { background: #fff; color: #1d4ed8; font-weight: 700; box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }

body .vm-insight-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
body .vm-insight-grid article { position: relative; min-width: 0; padding: 13px 14px; border: 1px solid #e3e9f0; border-radius: 11px; background: rgba(255, 255, 255, .94); }
body .vm-insight-grid article::after { content: ''; position: absolute; top: 13px; right: 13px; width: 7px; height: 7px; border-radius: 50%; background: #2563eb; }
body .vm-insight-grid article[data-tone="efficiency"]::after { background: #ea580c; }
body .vm-insight-grid article[data-tone="activity"]::after { background: #0f766e; }
body .vm-insight-grid article[data-tone="freshness"]::after { background: #7c3aed; }
body .vm-insight-grid span { display: block; color: #64748b; font-size: 11px; font-weight: 600; }
body .vm-insight-grid strong { display: block; margin: 4px 18px 3px 0; color: #172033; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .vm-insight-grid small { display: block; color: #64748b; font-size: 11px; }

body .vm-analysis-card { min-width: 0; border: 1px solid #e0e7ef; border-radius: 13px; background: #fff; overflow: hidden; }
body .vm-analysis-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 15px 11px; border-bottom: 1px solid #edf1f5; }
body .vm-analysis-card h4 { margin: 0 0 4px; color: #172033; font-size: 15px; }
body .vm-analysis-card header p { margin: 0; color: #64748b; font-size: 11px; line-height: 1.55; }
body .vm-data-note { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #eef4ff; color: #1d4ed8; font-size: 11px; }
body .vm-account-ranking { margin-bottom: 12px; }
body .vm-table-scroll { overflow-x: auto; }
body .vm-account-ranking table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 12px; }
body .vm-account-ranking th { padding: 9px 10px; background: #f8fafc; color: #64748b; text-align: right; font-size: 11px; font-weight: 600; white-space: nowrap; }
body .vm-account-ranking th:first-child { text-align: left; min-width: 190px; }
body .vm-account-ranking td { padding: 10px; border-top: 1px solid #edf1f5; color: #334155; text-align: right; vertical-align: middle; white-space: nowrap; }
body .vm-account-ranking tbody tr:hover { background: #f8fbff; }
body .vm-account-ranking td:first-child { display: flex; align-items: center; gap: 9px; text-align: left; white-space: normal; }
body .vm-account-ranking td b { display: block; color: #172033; font-size: 13px; }
body .vm-account-ranking td small { display: block; margin-top: 2px; color: #94a3b8; font-size: 10px; }
body .vm-rank { display: inline-grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: #eef2f7; color: #64748b; font-weight: 700; }
body .vm-account-ranking tr:nth-child(1) .vm-rank { background: #fff3e8; color: #c2410c; }
body .vm-account-ranking tr:nth-child(2) .vm-rank { background: #eef4ff; color: #1d4ed8; }
body .vm-account-ranking tr:nth-child(3) .vm-rank { background: #edf9f4; color: #047857; }
body .vm-performance { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 10px; font-weight: 700; }
body .vm-performance.strong { background: #fff0e6; color: #c2410c; }
body .vm-performance.good { background: #eaf2ff; color: #1d4ed8; }
body .vm-performance.steady { background: #eaf8f2; color: #047857; }
body .vm-table-empty { padding: 28px !important; text-align: center !important; color: #94a3b8 !important; }

body .vm-dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 12px; align-items: stretch; }
body .vm-trend-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 12px 15px 0; }
body .vm-trend-controls label { display: flex; min-width: 210px; flex-direction: column; gap: 4px; color: #64748b; font-size: 11px; }
body .vm-trend-controls select { max-width: 260px; padding: 7px 9px; border: 1px solid #dbe4ee; border-radius: 8px; background: #fff; color: #172033; font: inherit; font-size: 12px; }
body #vmTrendContent { padding: 12px 15px 14px; }
body .vm-trend-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 9px; }
body .vm-trend-facts span { padding: 5px 8px; border-radius: 7px; background: #f1f5f9; color: #64748b; font-size: 10px; }
body .vm-trend-facts b { margin-right: 2px; color: #172033; font-size: 12px; }
body .vm-chart-note { margin: 7px 0 0; color: #64748b; font-size: 11px; line-height: 1.55; }
body .vm-empty-state { display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 22px; text-align: center; color: #64748b; }
body .vm-empty-state strong { color: #334155; }
body .vm-empty-state span { max-width: 420px; font-size: 12px; line-height: 1.55; }
body .vm-empty-state.error strong { color: #b42318; }

body .vm-top-list { display: grid; padding: 4px 12px 12px; }
body .vm-top-video { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; padding: 9px 3px; border: 0; border-bottom: 1px solid #edf1f5; background: transparent; color: inherit; text-align: left; cursor: pointer; }
body .vm-top-video:last-child { border-bottom: 0; }
body .vm-top-video:hover .vm-top-copy strong { color: #1d4ed8; }
body .vm-top-index { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; background: #eef2f7; color: #64748b; font-size: 11px; font-weight: 800; }
body .vm-top-video:nth-child(-n+3) .vm-top-index { background: #fff0e6; color: #c2410c; }
body .vm-top-copy, body .vm-top-stats { min-width: 0; }
body .vm-top-copy strong { display: block; overflow: hidden; color: #334155; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
body .vm-top-copy small, body .vm-top-stats small { display: block; margin-top: 2px; color: #94a3b8; font-size: 10px; }
body .vm-top-stats { text-align: right; white-space: nowrap; }
body .vm-top-stats b { color: #172033; font-size: 12px; }
body .vm-method-note { margin: 12px 2px 0; color: #64748b; font-size: 11px; line-height: 1.65; }
body .vm-method-note strong { color: #475569; }
body .vm-library-toolbar { padding-top: 4px; border-top: 1px solid #e7edf4; }
body .vm-library-title { display: flex; min-width: 180px; flex: 1 1 260px; flex-direction: column; gap: 2px; }
body .vm-library-title strong { color: #172033; font-size: 15px; }
body .vm-library-title span { color: #94a3b8; font-size: 11px; }

/* 爆发潜力监测：结论优先、证据可展开，低置信度不伪装成确定预测。 */
body .vm-factor-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
body .vm-factor-row span { padding: 3px 5px; border-radius: 5px; background: #f3f6fa; color: #6b778c; font-size: 9px; }
body .vm-factor-row b { color: #334155; }

/* 数据清洗与文件管理 */
body .data-panel { display: grid; gap: 14px; }
body .data-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
body .data-panel-head h2 { margin-bottom: 5px; }
body .data-panel-head p { margin: 0; max-width: 680px; color: #64748b; font-size: 12.5px; line-height: 1.65; }
body .data-panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
body .data-panel-actions button, body .data-download-manifest { min-height: 38px; padding: 9px 13px; border-radius: 10px; font-size: 12px; text-decoration: none; }
body .data-download-manifest { display: inline-flex; align-items: center; border: 1px solid #dbe3ee; background: #fff; color: #475569; }
body .data-manager-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
body .data-manager-metrics article { position: relative; overflow: hidden; padding: 14px 15px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
body .data-manager-metrics article::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #2563eb; }
body .data-manager-metrics span, body .data-manager-metrics small { display: block; color: #64748b; font-size: 11px; }
body .data-manager-metrics strong { display: block; margin: 5px 0 3px; color: #172033; font-size: 24px; font-variant-numeric: tabular-nums; }
body .data-settings-card, body .data-files-card { border: 1px solid #e0e7ef; border-radius: 14px; background: #fff; overflow: hidden; }
body .data-settings-card > header, body .data-files-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #edf1f5; }
body .data-settings-card h3, body .data-files-card h3 { margin: 0 0 4px; color: #172033; font-size: 15px; }
body .data-settings-card header p, body .data-files-card header p { margin: 0; color: #64748b; font-size: 11px; }
body .data-restart-badge { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; background: #fff0e6; color: #c2410c; font-size: 11px; font-weight: 700; }
body .data-path-form { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) auto; gap: 10px; align-items: end; padding: 14px 16px; }
body .data-path-form label:not(.data-copy-option) { display: grid; gap: 5px; color: #64748b; font-size: 11px; }
body .data-path-form input[type="text"], body .data-path-form input:not([type]) { min-height: 40px; padding: 8px 11px; border: 1px solid #dbe3ee; border-radius: 9px; color: #243047; font: inherit; }
body .data-path-form input[readonly] { background: #f8fafc; color: #64748b; }
body .data-copy-option { grid-column: 1 / 3; display: flex; align-items: center; gap: 7px; color: #475569; font-size: 11px; }
body .data-path-form > button { grid-column: 3; grid-row: 1 / 3; min-height: 40px; align-self: center; }
body .data-file-filters { display: flex; gap: 8px; }
body .data-file-filters select, body .data-file-filters input { min-height: 36px; padding: 7px 9px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; color: #334155; font-size: 11px; }
body .data-clean-note { display: flex; align-items: baseline; gap: 8px; margin: 12px 14px 4px; padding: 10px 12px; border: 1px solid #d9e7dc; border-radius: 9px; background: #f4fbf6; }
body .data-clean-note strong { color: #166534; font-size: 11px; }
body .data-clean-note span { color: #52705b; font-size: 10px; line-height: 1.5; }
body .data-file-table-wrap { max-height: 520px; overflow: auto; padding: 8px 14px 14px; }
body .data-file-table { width: 100%; border-collapse: collapse; font-size: 11px; }
body .data-file-table th { position: sticky; top: 0; z-index: 1; padding: 9px 8px; background: #f8fafc; color: #64748b; text-align: left; white-space: nowrap; }
body .data-file-table td { padding: 9px 8px; border-top: 1px solid #edf1f5; color: #475569; vertical-align: middle; }
body .data-file-table td:first-child { min-width: 260px; }
body .data-file-table strong { display: block; color: #243047; font-weight: 650; }
body .data-file-table small { display: block; max-width: 520px; margin-top: 2px; overflow: hidden; color: #94a3b8; text-overflow: ellipsis; white-space: nowrap; }
body .data-file-table a { color: #1d4ed8; font-weight: 650; text-decoration: none; }
body .data-type, body .data-sensitive { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #eef2f7; color: #64748b; font-size: 10px; white-space: nowrap; }
body .data-type.cleaned { background: #eaf8f0; color: #047857; }
body .data-type.raw { background: #eaf2ff; color: #1d4ed8; }
body .data-type.audio { background: #fff5e8; color: #b45309; }
body .data-sensitive { background: #fff1f2; color: #be123c; }
body .data-empty { padding: 30px !important; text-align: center; color: #94a3b8 !important; }

@media (max-width: 1180px) {
  body .vm-overview-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .vm-dashboard-head { flex-direction: column; }
  body .vm-dashboard-filters { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  body .vm-dashboard-columns { grid-template-columns: 1fr; }
  body .vm-prediction-layout { grid-template-columns: 1fr; }
  body .data-panel-head, body .data-settings-card > header, body .data-files-card > header { flex-direction: column; }
  body .data-panel-actions { justify-content: flex-start; }
  body .data-path-form { grid-template-columns: 1fr; }
  body .data-copy-option, body .data-path-form > button { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  body .vm-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .vm-dashboard { padding: 12px; border-radius: 13px; }
  body .vm-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .vm-dashboard-filters, body .vm-trend-controls { align-items: stretch; flex-direction: column; }
  body .vm-segment { width: 100%; overflow-x: auto; }
  body .vm-segment button { flex: 1 0 auto; }
  body .vm-trend-controls label, body .vm-trend-controls select { width: 100%; max-width: none; }
  body .vm-top-video { grid-template-columns: 28px minmax(0, 1fr); }
  body .vm-top-stats { grid-column: 2; text-align: left; }
  body .vm-prediction-board > header { align-items: flex-start; flex-direction: column; }
  body .vm-copy-brief { width: 100%; }
  body .vm-prediction-summary, body .vm-prediction-list { grid-template-columns: 1fr; }
  body .vm-prediction-layout { padding-inline: 10px; }
  body .data-manager-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .data-panel-actions, body .data-file-filters { width: 100%; }
  body .data-panel-actions > *, body .data-file-filters > * { flex: 1 1 0; min-width: 0; }
  body .data-clean-note { align-items: flex-start; flex-direction: column; }
}

/* ── 账号数据看板（vm- 前缀，避免与其它页面类名撞车）────────────── */
body .vm-up { color: #dc2626; font-style: normal; font-weight: 600; }
body .vm-down { color: #16a34a; font-style: normal; font-weight: 600; }
body .vm-flat { color: #64748b; font-style: normal; }
body .vm-empty-state { display: grid; gap: 4px; padding: 12px; border: 1px dashed #d8e0ea; border-radius: 10px; background: #fbfcfe; }
body .vm-empty-state strong { font-size: 13px; color: #1f2430; }
body .vm-empty-state span { font-size: 12.5px; color: #64748b; line-height: 1.7; }

/* ══ 全局可读性规范（rf- 前缀；只做层级收敛，不改结构语义）════════════
   目标：页面有落点（标题→一句话摘要→主操作）、卡片有骨架（标题+副标题+内容）、
   说明文字统一降噪、长列表限高、按钮分主次。 */
body .panel > .transcript-head,
body .panel > .analytics-head,
body .video-panel > .video-head,
body .panel > header { margin-bottom: 14px; }
body .eyebrow { font-size: 11px; letter-spacing: .14em; font-weight: 700; color: #94a3b8; text-transform: uppercase; }
body h2 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: #0f172a; margin: 4px 0 6px; }
body h3 { font-size: 15px; font-weight: 700; color: #1f2430; }
/* 页面级一句话摘要：把大段说明压成一行 */
body .panel > .transcript-head p,
body .panel > .analytics-head p,
body .video-panel > .video-head p { font-size: 12.5px; color: #64748b; line-height: 1.6; margin: 0; }
/* 说明文字统一降噪 */
body .speech-note { font-size: 12.5px; line-height: 1.6; color: #64748b; }
/* 卡片骨架统一：白底细边、内边距一致、卡片头对齐 */
body .insight-card { background: #fff; border: 1px solid #e6ebf3; border-radius: 12px; padding: 14px; box-shadow: none; }
body .insight-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
body .insight-card > header strong { display: block; font-size: 14px; font-weight: 700; color: #0f172a; }
body .insight-card > header span { display: block; margin-top: 2px; font-size: 12px; color: #8a93a6; line-height: 1.5; }
body .trend-facts span { font-size: 12px; color: #64748b; }
/* 按钮分主次：主按钮实心、次要弱化成浅底描边、行内动作更小 */
body .panel button.primary, body .video-panel button.primary { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
body button.outline, body button.secondary { background: #fff; border: 1px solid #dbe3ee; color: #475569; font-weight: 500; }
body button.outline:hover, body button.secondary:hover { border-color: #b9c6da; color: #1f2430; }
body .speech-primary-actions { gap: 8px; }

/* 页面级「结论条」：一眼看到重点（浅蓝，一行） */
body .rf-lead { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 0 0 12px;
  background: #f2f7ff; border: 1px solid #d9e6ff; border-radius: 10px; font-size: 13px; color: #1f2430; }
body .rf-lead b { color: #1d4ed8; }
body .rf-lead span { color: #64748b; font-size: 12.5px; }

/* 分组折叠：把明细收起来，默认只展开核心 */
body .rf-group { border: 1px solid #e6ebf3; border-radius: 12px; background: #fff; margin: 12px 0; overflow: hidden; }
body .rf-group > summary { cursor: pointer; list-style: none; padding: 10px 14px; display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 700; color: #1f2430; }
body .rf-group > summary::-webkit-details-marker { display: none; }
body .rf-group > summary::before { content: '▸'; color: #94a3b8; font-weight: 400; transition: transform .15s; }
body .rf-group[open] > summary::before { transform: rotate(90deg); }
body .rf-group > summary span { font-size: 12px; font-weight: 400; color: #8a93a6; }
body .rf-group > .analytics-grid,
body .rf-group > .video-analytics-body { padding: 0 14px 14px; }
/* 「更多操作」下拉：把次要按钮收起来 */
body details.rf-menu { position: relative; }
body details.rf-menu > summary { cursor: pointer; list-style: none; padding: 7px 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; font-size: 13px; color: #475569; }
body details.rf-menu > summary::-webkit-details-marker { display: none; }
body details.rf-menu > summary::after { content: ' ▾'; color: #94a3b8; }
body details.rf-menu[open] > summary::after { content: ' ▴'; }
body details.rf-menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 6px; padding: 8px; min-width: 176px;
  background: #fff; border: 1px solid #e6ebf3; border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 23, 42, .1); }
body details.rf-menu > div button { width: 100%; text-align: left; }
/* 长列表限高，页面不被拉长 */
body .video-comments, body .topic-list, body .rank-list, body .question-list, body .history-body { max-height: 340px; overflow: auto; }

/* ── 收尾：设置类入口弱化成「次要入口」，长段口径说明压缩 ── */
body .speech-utility-grid > details { border: 1px dashed #e2e8f2; background: #fcfdff; border-radius: 10px; }
body .speech-utility-grid > details > summary { padding: 10px 14px; font-size: 13px; }
body .speech-utility-grid > details > summary small { font-size: 11.5px; margin-left: 0; }
body .speech-scope { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; color: #94a3b8; line-height: 1.7; }
body .speech-scope:hover { -webkit-line-clamp: unset; }

/* ── 作品明细折叠组：默认收起，展开后网格限高 ── */
body .vm-library-group > summary { align-items: center; }
body .vm-library-count { margin-left: auto; font-size: 12px; font-weight: 600; color: #1d4ed8; }
body .vm-library-group .vm-library-toolbar { margin: 0 14px 10px; }
body .vm-library-group #videoList { padding: 0 14px 14px; max-height: 560px; overflow: auto; }

/* ── 弹幕话题分类：占满整行 + 样本两列，右半空白补齐 ── */
/* 注意：.analytics-grid 是 columns 多列布局（layout.css），不是 grid——跨列要用 column-span */
body .analytics-grid > .topic-card { column-span: all; -webkit-column-span: all; grid-column: 1 / -1; }
body .topic-card .topic-samples-box ol.video-comments,
body .topic-card .topic-samples-box ul { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; max-height: 380px; overflow: auto; }
body .topic-card .topic-samples-box li { border: 1px solid #eef2f7; border-radius: 10px; background: #fcfdff; padding: 8px 10px; margin: 0; }
body .topic-card .topic-samples-box li p { font-size: 12.5px; line-height: 1.65; margin: 0 0 3px; color: #1f2430; }
body .topic-card .topic-samples-box li small { font-size: 11.5px; color: #94a3b8; }

/* ── AI 运营建议（弹幕复盘页）────────────────────────── */
body .ai-advice { margin: 12px 0 14px; padding: 14px; border: 1px solid #cfe0ff; border-radius: 12px; background: linear-gradient(180deg, #f7fbff, #fff); }
body .ai-advice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
body .ai-advice-head h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #0f172a; }
body .ai-advice-head h4 small { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: #8a93a6; }
body .ai-advice-head p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #64748b; max-width: 620px; }
body .ai-advice-body { font-size: 13.5px; line-height: 1.9; color: #1f2430; }
body .ai-advice-body p { margin: 0 0 10px; }
body .ai-advice-body ol { margin: 0 0 10px; padding-left: 22px; }
body .ai-advice-hint { color: #8a93a6; font-size: 12.5px; }

/* ── 实时转写内联区（Eric 定：不用弹窗，直接摆在页面上）────────────── */
body .live-transcript-inline { margin: 14px 0 16px; padding: 16px; border: 1px solid #e6ebf3; border-radius: 14px; background: #fff; }
body .lt-inline-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
body .lt-inline-head h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 700; color: #0f172a; }
body .lt-inline-head p { margin: 0; font-size: 12.5px; color: #64748b; }
body .lt-inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body .lt-follow { font-size: 12.5px; color: #64748b; }
body .lt-record-group { display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; border-left: 1px solid #eef2f7; }
body .lt-record-status { font-size: 12px; color: #8a93a6; }
body .lt-record-status[data-tone="rec"] { color: #dc2626; font-weight: 600; }
body .lt-record-status[data-tone="ok"] { color: #047857; }
body .lt-record-status[data-tone="warn"] { color: #b45309; }
body .lt-inline-grid { display: grid; gap: 12px; }
body .lt-inline-feed .live-dialog-feed { max-height: 420px; }
body .lt-inline-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; font-size: 12px; color: #8a93a6; }
/* 画面卡上的「每路声音开关」 */
body .screen-card-audio { position: absolute; left: 8px; top: 8px; z-index: 3; padding: 3px 8px; border-radius: 999px;
  border: 1px solid #ffffff40; background: #0f172ab3; color: #fff; font-size: 11.5px; cursor: pointer; }
body .screen-card-audio.on { background: #16a34acc; border-color: #ffffff60; }

/* ── 实时转写：左转写 / 右单路画面 ─────────────────── */
body .lt-inline-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 980px) { body .lt-inline-grid { grid-template-columns: 1fr; } }
body .lt-room-pane { display: grid; gap: 8px; }
body .lt-room-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body .lt-room-head strong { font-size: 13.5px; color: #0f172a; }
body .lt-room-head span { font-size: 12px; color: #8a93a6; }
body .lt-room-head button { margin-left: auto; }
body .lt-room-video { position: relative; min-height: 200px; aspect-ratio: 3 / 4; background: #0b1220; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
body .lt-room-video .screen-card { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 12px; }
body .lt-room-video .screen-card video { width: 100%; height: 100%; object-fit: contain; }
body .lt-room-hint { padding: 14px; font-size: 12.5px; line-height: 1.7; color: #c7d2e0; text-align: center; }

/* ── 场复盘（弹幕复盘页）──────────────────────────────── */
body .sr-panel { margin: 14px 0 16px; padding: 16px; border: 1px solid #e6ebf3; border-radius: 14px; background: #fff; }
body .sr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
body .sr-head h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #0f172a; }
body .sr-head p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #64748b; max-width: 520px; }
body .sr-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
body .sr-controls label { display: grid; gap: 4px; font-size: 11.5px; color: #8a93a6; }
body .sr-controls select { max-width: 300px; }
body .sr-hint { margin: 0; font-size: 12.5px; line-height: 1.7; color: #8a93a6; }
body .sr-summary { margin-bottom: 12px; }
body .sr-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
body .sr-metrics article { padding: 12px 14px; border: 1px solid #e8eef7; border-radius: 10px; background: #fafcff; }
body .sr-metrics span { font-size: 11.5px; color: #8a93a6; }
body .sr-metrics strong { display: block; margin: 4px 0 3px; font-size: 20px; color: #1f2b45; }
body .sr-metrics strong i { margin-left: 2px; font-size: 12px; font-style: normal; color: #8a93a6; }
body .sr-metrics small { font-size: 11.5px; color: #94a3b8; }
body .sr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
body .sr-card { border: 1px solid #e8eef7; border-radius: 10px; padding: 12px 14px; background: #fff; }
body .sr-card h5 { margin: 0 0 8px; font-size: 13px; color: #334155; }
body .sr-list { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.9; color: #475569; }
body .sr-list b { margin-left: 6px; color: #2563eb; font-size: 11.5px; }
body .sr-bars { display: grid; gap: 6px; }
body .sr-bar { display: grid; grid-template-columns: 84px 1fr 40px; align-items: center; gap: 8px; font-size: 12px; color: #475569; }
body .sr-bar i { display: block; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #93c5fd, #2563eb); }
body .sr-bar b { text-align: right; font-size: 11.5px; color: #64748b; }
body .sr-spark { display: flex; align-items: flex-end; gap: 2px; height: 72px; padding: 4px; border-radius: 8px; background: #f8fafc; }
body .sr-spark i { flex: 1; min-width: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #60a5fa, #2563eb); }
body .sr-ai { margin-top: 12px; padding: 14px; border: 1px solid #cfe0ff; border-radius: 12px; background: linear-gradient(180deg, #f7fbff, #fff); }
body .sr-ai-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
body .sr-ai-head h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #0f172a; }
body .sr-ai-head h4 small { margin-left: 6px; font-size: 11.5px; font-weight: 400; color: #8a93a6; }
body .sr-ai-head p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #64748b; max-width: 560px; }

/* ── 场复盘：模式切换与新增卡片 ───────────────────────── */
body .sr-modes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e3ecf9; border-radius: 10px; background: #f7fbff; }
body .sr-modes-label { font-size: 12px; color: #64748b; }
body .sr-modes button { padding: 4px 12px; border-radius: 999px; border: 1px solid #cbd9ee; background: #fff; color: #475569; font-size: 12.5px; cursor: pointer; }
body .sr-modes button.active { border-color: #2563eb; background: #2563eb; color: #fff; }
body .sr-mode-hint { font-size: 11.5px; line-height: 1.6; color: #8a93a6; }
body .sr-window { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 12.5px; color: #475569; border-bottom: 1px dashed #eef2f7; }
body .sr-window:last-child { border-bottom: 0; }
body .sr-window b { color: #1f2b45; }
body .sr-window em { font-style: normal; color: #2563eb; }
body .sr-window.low em { color: #b45309; }
body .sr-legend { display: grid; gap: 5px; font-size: 12.5px; color: #475569; }
body .sr-legend div { display: flex; justify-content: space-between; gap: 8px; }
body .sr-legend b { color: #1f2b45; }

/* ── 数据与设置：AI 接入卡片 ────────────────────────── */
body .ai-setup-card { margin: 14px 0 16px; padding: 16px; border: 1px solid #e3ecf9; border-radius: 14px; background: #fff; }
body .ai-setup-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
body .ai-setup-card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #0f172a; }
body .ai-setup-card header p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #64748b; max-width: 620px; }
body .ai-setup-badge { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; background: #f1f5f9; color: #64748b; }
body .ai-setup-badge[data-state="ok"] { background: #dcfce7; color: #166534; }
body .ai-setup-badge[data-state="warn"] { background: #fef3c7; color: #92400e; }
body .ai-setup-form { display: grid; gap: 10px; }
body .ai-setup-form label { display: grid; gap: 4px; font-size: 12px; color: #64748b; }
body .ai-setup-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 数据分析（账号研究报告）────────────────────────── */
body .report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
body .report-head h2 { margin: 2px 0 6px; }
body .report-head p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #64748b; max-width: 560px; }
body .report-controls { display: flex; align-items: flex-end; gap: 10px; }
body .report-controls label { display: grid; gap: 4px; font-size: 11.5px; color: #8a93a6; }
body .report-body { display: grid; gap: 14px; }
body .ar-empty { margin: 8px 0; font-size: 13px; color: #8a93a6; }
body .ar-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body .ar-report-head h3 { margin: 0 0 4px; font-size: 16px; }
body .ar-report-head p { margin: 0; font-size: 12px; color: #8a93a6; }
body .ar-block { border: 1px solid #e6ebf3; border-radius: 12px; padding: 14px 16px; background: #fff; }
body .ar-block > h4 { margin: 0 0 10px; font-size: 14px; color: #0f172a; }
body .ar-block > h4 small { margin-left: 6px; font-weight: 400; color: #8a93a6; }
body .ar-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
body .ar-kpis article { padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e8eef7; }
body .ar-kpis span { font-size: 11.5px; color: #8a93a6; }
body .ar-kpis strong { display: block; font-size: 19px; color: #1f2b45; margin: 3px 0 2px; }
body .ar-kpis strong i { font-style: normal; font-size: 12px; color: #8a93a6; margin-left: 2px; }
body .ar-kpis small { font-size: 11px; color: #94a3b8; }
body .ar-read { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.9; color: #475569; }
body .ar-best { margin: 8px 0 0; font-size: 12.5px; color: #2563eb; }
body .ar-trend { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding: 8px 4px 4px; border-radius: 10px; background: #f8fafc; }
body .ar-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
body .ar-trend-col i { width: 100%; max-width: 26px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #60a5fa, #2563eb); }
body .ar-trend-col span { font-size: 10px; color: #94a3b8; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
body .ar-breakdown { border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
body .ar-breakdown header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
body .ar-breakdown header b { color: #2563eb; }
body .ar-breakdown header a { color: #1f2b45; text-decoration: none; font-weight: 600; font-size: 13px; }
body .ar-breakdown header a:hover { text-decoration: underline; }
body .ar-meta { font-size: 11.5px; color: #8a93a6; }
body .ar-structure { margin: 8px 0; font-size: 12.5px; line-height: 1.7; color: #475569; }
body .ar-golden { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 10px; }
body .ar-golden > span { font-size: 11px; color: #92400e; }
body .ar-golden ul { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.8; color: #475569; }
body .ar-transcript { margin-top: 8px; }
body .ar-transcript summary { font-size: 11.5px; color: #2563eb; cursor: pointer; }
body .ar-transcript p { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: #64748b; }
body .ar-need { border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
body .ar-need header { display: flex; align-items: baseline; gap: 10px; }
body .ar-need header b { font-size: 13px; color: #0f172a; }
body .ar-need header span { font-size: 11.5px; color: #8a93a6; }
body .ar-evidence { margin: 6px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.8; color: #64748b; }
body .ar-idea { border: 1px solid #dcfce7; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #f0fdf4; }
body .ar-idea b { font-size: 13px; color: #166534; }
body .ar-idea p { margin: 6px 0; font-size: 12.5px; line-height: 1.7; color: #374151; }
body .report-ai { margin-top: 12px; padding: 14px; border: 1px solid #cfe0ff; border-radius: 12px; background: linear-gradient(180deg, #f7fbff, #fff); }
body .report-ai p { margin: 4px 0; font-size: 13px; line-height: 1.8; color: #334155; }
body .ar-hint { font-size: 12.5px; color: #8a93a6; }

/* ── 数据分析：量化分析区块 ─────────────────────────── */
body .ar-quant { border-color: #c7d8f5; background: linear-gradient(180deg, #f8fbff, #fff); }
body .ar-score { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin-bottom: 12px; }
body .ar-score-total { text-align: center; padding: 12px 8px; border-radius: 12px; background: #2563eb; color: #fff; }
body .ar-score-total strong { display: block; font-size: 34px; line-height: 1.1; }
body .ar-score-total span { font-size: 11px; opacity: .85; }
body .ar-score-dims { display: grid; gap: 7px; }
body .ar-score-dim { display: grid; grid-template-columns: 108px 1fr 34px; align-items: center; gap: 8px; font-size: 12.5px; }
body .ar-score-dim span small { color: #94a3b8; margin-left: 2px; }
body .ar-score-track { height: 8px; border-radius: 99px; background: #e8eef7; overflow: hidden; }
body .ar-score-track i { display: block; height: 100%; border-radius: 99px; transition: width .4s; }
body .ar-score-track i[data-level="good"] { background: #16a34a; }
body .ar-score-track i[data-level="mid"] { background: #f59e0b; }
body .ar-score-track i[data-level="low"] { background: #ef4444; }
body .ar-score-dim b { text-align: right; color: #1f2b45; }
body .ar-quant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 10px 0; }
body .ar-quant-grid article { border: 1px solid #e6ebf3; border-radius: 10px; padding: 10px 12px; background: #fff; }
body .ar-quant-grid h5 { margin: 0 0 6px; font-size: 12.5px; color: #0f172a; }
body .ar-quant-grid p { margin: 3px 0; font-size: 12px; line-height: 1.7; color: #475569; }
body .ar-quant-grid p b { color: #1f2b45; }
body .ar-dim { color: #94a3b8; }
body .ar-up { color: #dc2626; font-weight: 600; }
body .ar-down { color: #16a34a; font-weight: 600; }

/* ── Easel 桥接 ───────────────────────────────────── */
body .easel-panel { border-color: #dbe6f5; background: linear-gradient(180deg, #f8fbff, #fff); }
body .easel-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
body .easel-panel h4 { margin: 0 0 4px; }
body .easel-panel > header p { margin: 0; color: #64748b; font-size: 12px; }
body .easel-badge { padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; }
body .easel-badge[data-state="ok"] { background: #dcfce7; color: #166534; }
body .easel-badge[data-state="warn"] { background: #fef3c7; color: #92400e; }
body .easel-setup, body .easel-run { display: grid; gap: 8px; margin-bottom: 10px; }
body .easel-setup { grid-template-columns: minmax(280px, 1fr) auto auto; align-items: end; }
body .easel-run { grid-template-columns: minmax(180px, .45fr) minmax(280px, 1fr) auto; align-items: end; }
body .easel-setup label, body .easel-run label { display: grid; gap: 4px; color: #64748b; font-size: 11px; }
body .easel-setup input, body .easel-run input, body .easel-run select { min-height: 38px; padding: 8px 10px; border: 1px solid #dbe3ee; border-radius: 8px; font: inherit; font-size: 12px; }
body .easel-output { max-height: 360px; overflow: auto; margin: 8px 0 0; padding: 10px 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #f8fafc; color: #334155; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
body #easelHistoryWrap { margin-top: 10px; border-top: 1px solid #edf1f5; padding-top: 8px; }
body #easelHistoryWrap summary { cursor: pointer; color: #475569; font-size: 12px; font-weight: 700; }
body #easelHistory article { display: grid; gap: 3px; padding: 8px 0; border-bottom: 1px solid #edf1f5; }
body #easelHistory strong { color: #334155; font-size: 12px; }
body #easelHistory span { color: #94a3b8; font-size: 11px; }
body #easelHistory p { margin: 0; color: #64748b; font-size: 11px; line-height: 1.6; }
@media (max-width: 900px) {
  body .easel-setup, body .easel-run { grid-template-columns: 1fr; }
}
/* ── 直播量化看板 ───────────────────────────────────── */
body .la-board { display: grid; gap: 12px; margin: 0 0 14px; padding: 14px; border: 1px solid #dbe6f5; border-radius: 13px; background: linear-gradient(180deg,#f8fbff,#fff); }
body .la-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body .la-head h4 { margin: 0 0 3px; font-size: 15px; color: #172033; }
body .la-head h4 small { margin-left: 5px; font-size: 10.5px; color: #7b879b; }
body .la-head p { margin: 0; font-size: 11.5px; color: #64748b; }
body .la-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 8px; }
body .la-metrics article { padding: 11px 12px; border: 1px solid #e6ebf3; border-radius: 10px; background: #fff; }
body .la-metrics span { display: block; font-size: 10.5px; color: #7b879b; }
body .la-metrics strong { display: block; margin: 3px 0; font-size: 20px; color: #172033; }
body .la-metrics small { font-size: 10.5px; color: #94a3b8; }
body .la-room-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 9px; }
body .la-room { padding: 11px 12px; border: 1px solid #e6ebf3; border-radius: 11px; background: #fff; }
body .la-room header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
body .la-room strong { font-size: 13px; color: #172033; }
body .la-room header span { font-size: 10.5px; color: #7b879b; }
body .la-room-metrics { display: flex; flex-wrap: wrap; gap: 4px; }
body .la-room-metrics span { padding: 3px 6px; border-radius: 5px; background: #f3f6fa; color: #6b778c; font-size: 9.5px; }
body .la-room-metrics b { color: #334155; }
body .la-spark { display: flex; align-items: flex-end; gap: 2px; height: 58px; margin-top: 8px; padding: 4px; border-radius: 8px; background: #f8fafc; overflow: hidden; min-width: 0; }
body .la-spark i { flex: 1; min-width: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg,#60a5fa,#2563eb); }
body .la-peaks { display: grid; gap: 2px; margin-top: 7px; }
body .la-peaks strong { font-size: 10.5px; color: #475569; }
body .la-peaks span { font-size: 10px; color: #64748b; }
body .la-note { margin: 0; font-size: 10.5px; line-height: 1.6; color: #64748b; }
/* ── Easel 结构化看板 ───────────────────────────────── */

/* Calm UI overrides remain in the owner stylesheet for structural namespaces. */
body.calm-ui :is(.rf-group,.panel-collapse)>summary{color:#718bad;padding:16px 17px;font-size:12px}
body.calm-ui .rf-group{border:1px solid #e3eaf3;border-radius:11px;background:#fff;box-shadow:none;margin:14px 0;min-width:0}
body.calm-ui .vm-insight-grid{gap:12px}
body.calm-ui .vm-insight-grid>article{background:#f7fafd;border:1px solid #e5edf6;border-radius:10px;box-shadow:none}
@media(max-width:650px){body.calm-ui .vm-insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.calm-ui .rf-lead{background:#f7fafd;border:1px solid #e5edf5;color:#869cb6;border-radius:10px;padding:15px;font-size:11px}

body.calm-ui .rf-group>summary{color:#58779b}

/* Stronger dashboard accents, owner-scoped structural namespaces. */
body.calm-ui .vm-insight-grid>article{background:linear-gradient(135deg,#edf5ff,#fff);border-color:#cbdff6}body.calm-ui .vm-insight-grid>article strong{color:#1764b8}body.calm-ui .vm-insight-grid>article:nth-child(even){background:linear-gradient(135deg,#ecf8f1,#fff);border-color:#c6e7d5}body.calm-ui .vm-insight-grid>article:nth-child(even) strong{color:#117e59}
