/* 数据服务平台 · 首页 */
:root {
  --wb-bg: #f0f2f7;
  --wb-surface: #ffffff;
  --wb-border: #e2e8f0;
  --wb-text: #0f172a;
  --wb-muted: #64748b;
  --wb-primary: #1e40af;
  --wb-primary-soft: #eff6ff;
  --wb-accent: #0f766e;
  --wb-warn: #b45309;
  --wb-danger: #dc2626;
  --wb-radius: 10px;
  --wb-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
  --wb-nav-h: 56px;
  --wb-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.wb-body {
  margin: 0;
  font-family: var(--wb-font);
  font-size: 14px;
  color: var(--wb-text);
  background: var(--wb-bg);
  line-height: 1.5;
}

a { color: var(--wb-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top bar ── */
.wb-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--wb-nav-h);
  background: #0b1220;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.wb-brand__logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #3b82f6, #0d9488);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 13px;
}
.wb-brand__name { font-weight: 600; font-size: 15px; color: #f8fafc; }
.wb-brand__name:hover { text-decoration: none; color: #fff; }
.wb-badge {
  font-size: 10px; padding: 2px 7px; border-radius: 4px;
  background: rgba(251,191,36,0.15); color: #fbbf24; font-weight: 500;
}

.wb-nav { display: flex; gap: 2px; flex-shrink: 0; }
.wb-nav__item {
  padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
  color: #94a3b8; transition: background .15s, color .15s;
}
.wb-nav__item:hover { background: rgba(255,255,255,0.06); color: #e2e8f0; text-decoration: none; }
.wb-nav__item.is-active { background: rgba(59,130,246,0.2); color: #93c5fd; }

.wb-search {
  flex: 1; max-width: 420px; position: relative;
}
.wb-search input {
  width: 100%; padding: 8px 12px 8px 36px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  background: rgba(255,255,255,0.06); color: #f1f5f9; font-size: 13px;
  outline: none;
}
.wb-search input::placeholder { color: #64748b; }
.wb-search input:focus { border-color: #3b82f6; background: rgba(255,255,255,0.1); }
.wb-search__icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: #64748b; pointer-events: none;
}

.wb-topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.wb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 500;
  border: none; cursor: pointer; font-family: inherit; transition: background .15s;
}
.wb-btn--ghost {
  background: rgba(255,255,255,0.08); color: #e2e8f0;
}
.wb-btn--ghost:hover { background: rgba(255,255,255,0.14); }
.wb-btn--primary {
  background: #2563eb; color: #fff;
}
.wb-btn--primary:hover { background: #1d4ed8; }
.wb-btn--sm { padding: 5px 10px; font-size: 12px; }
/* 页面白底区域：ghost 按钮需深色字，避免与顶栏样式混用看不见 */
.wb-page .wb-btn--ghost,
.wb-discover-batch .wb-btn--ghost {
  background: #fff; color: var(--wb-primary); border: 1px solid #bfdbfe;
}
.wb-page .wb-btn--ghost:hover,
.wb-discover-batch .wb-btn--ghost:hover { background: var(--wb-primary-soft); }

/* ── Page shell ── */
.wb-page { max-width: 1440px; margin: 0 auto; padding: 24px 24px 48px; }

.wb-page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.wb-page-header h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.wb-page-header__desc { margin: 0; color: var(--wb-muted); font-size: 13px; }
.wb-page-header__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Situation strip ── */
.wb-situ-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .wb-situ-strip { grid-template-columns: repeat(2, 1fr); } }

.wb-data-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 900px) { .wb-data-strip { grid-template-columns: repeat(2, 1fr); } }
.wb-situ-card--data { background: linear-gradient(180deg, #fafbff 0%, var(--wb-surface) 100%); }
.wb-situ-card__icon--data { background: #eef2ff; color: #4338ca; }

.wb-panel--accent .wb-panel__head { background: linear-gradient(90deg, #fff7ed 0%, var(--wb-surface) 55%); }
.wb-panel--accent .wb-panel__title svg { color: #ea580c; }

.wb-hotspot-rank { list-style: none; margin: 0; padding: 0; }
.wb-hotspot-rank__item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 18px; border-bottom: 1px solid var(--wb-border);
}
.wb-hotspot-rank__item:last-child { border-bottom: none; }
.wb-hotspot-rank__num {
  width: 28px; height: 28px; border-radius: 8px; background: #f1f5f9;
  font-size: 13px; font-weight: 700; color: var(--wb-muted);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wb-hotspot-rank__item:nth-child(-n+3) .wb-hotspot-rank__num { background: #fef2f2; color: #dc2626; }
.wb-hotspot-rank__row { flex: 1; min-width: 0; }
.wb-hotspot-rank__row--link { cursor: pointer; }
.wb-hotspot-rank__row--link:hover .wb-hotspot-rank__title { color: var(--wb-primary); }
.wb-hotspot-rank__title { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.wb-hotspot-rank__meta { font-size: 12px; color: var(--wb-muted); margin-bottom: 0rem;}

.wb-hot-keywords-wrap {
  padding: 14px 18px 16px; border-top: 1px solid var(--wb-border); background: #fafafa;
}
.wb-hot-keywords__label {
  margin: 0 0 10px; font-size: 12px; font-weight: 650; color: var(--wb-muted);
  display: flex; align-items: center; gap: 6px;
}
.wb-hot-keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-hot-kw {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 20px;
  padding: 4px 12px; cursor: pointer; font-family: inherit; color: var(--wb-text);
  transition: border-color .15s, background .15s;
}
.wb-hot-kw span { color: var(--wb-muted); font-weight: 600; margin-left: 2px; }
.wb-hot-kw:hover { border-color: #93c5fd; background: #eff6ff; color: var(--wb-primary); }

/* 搜索结果中关键词高亮（蓝色） */
.kw-hl { color: var(--wb-primary); font-weight: 600; background: var(--wb-primary-soft); border-radius: 2px; padding: 0 1px; }

.wb-sub-match-item {
  display: block; padding: 12px 18px; border-bottom: 1px solid var(--wb-border);
  text-decoration: none; color: inherit; cursor: pointer; transition: background .12s, color .12s;
}
.wb-sub-match-item:hover { background: #f8fafc; }
.wb-sub-match-item:hover .wb-sub-match-item__title { color: var(--wb-primary); }
.wb-sub-match-item__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.wb-sub-match-item__sub { font-size: 11px; color: var(--wb-primary); font-weight: 600; }
.wb-sub-match-item__time { font-size: 11px; color: var(--wb-muted); margin-left: auto; }
.wb-sub-match-item__title { margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.wb-sub-match-item__source { margin: 0; font-size: 11px; color: var(--wb-muted); }

/* 最新匹配数据 — 按内容大类分组 */
.wb-match-group + .wb-match-group { border-top: 1px solid var(--wb-border); }
.wb-match-group__head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; background: #f8fafc;
  position: sticky; top: 0; z-index: 1;
}
.wb-match-group__tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 8px;
  font-size: 11px; font-weight: 700; color: #fff; border-radius: 10px;
  background: var(--wb-primary);
}
.wb-match-group__name { font-size: 13px; font-weight: 700; color: var(--wb-text); }
.wb-match-group__count { margin-left: auto; font-size: 11px; color: var(--wb-muted); }

/* 最新匹配数据 — tab 形式（每个内容大类一个 tab） */
.wb-match { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.wb-match-tabs {
  display: flex; gap: 5px; overflow-x: auto; flex: 0 0 auto;
  padding: 8px 10px; border-bottom: 1px solid var(--wb-border);
  background: #f8fafc; scrollbar-width: thin;
}
.wb-match-tab {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  border: 1px solid var(--wb-border); background: #fff; color: var(--wb-text);
  border-radius: 18px; padding: 5px 13px; font-size: 12px; cursor: pointer;
  font-family: inherit; transition: border-color .15s, background .15s, color .15s;
}
.wb-match-tab:hover { border-color: #93c5fd; }
.wb-match-tab.is-active { background: var(--wb-primary); border-color: var(--wb-primary); color: #fff; }
.wb-match-tab__count {
  font-size: 10px; line-height: 1; padding: 2px 6px; border-radius: 10px;
  background: rgba(15, 23, 42, .06); color: var(--wb-muted);
}
.wb-match-tab.is-active .wb-match-tab__count { background: rgba(255, 255, 255, .28); color: #fff; }
.wb-match-panes { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.wb-match-pane { display: none; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.wb-match-pane.is-active { display: block; }

.wb-sub-overview-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px;
}
.wb-sub-overview-stat {
  padding: 12px; background: #f8fafc; border: 1px solid var(--wb-border); border-radius: 8px; text-align: center;
}
.wb-sub-overview-stat__val { margin: 0; font-size: 20px; font-weight: 700; color: var(--wb-primary); }
.wb-sub-overview-stat__lbl { margin: 4px 0 0; font-size: 11px; color: var(--wb-muted); }
.wb-sub-overview-hint { margin: 0; font-size: 11px; color: var(--wb-muted); line-height: 1.45; }
.wb-panel--sub-overview .wb-panel__head { align-items: center; }

/* ── Personal area (top of homepage, login only) ── */
/* quick-website.css 有全局 `section { background-color:#fff }`，
   这里的区块包裹层必须显式透明，避免卡片外面出现一层白底 */
.wb-personal,
.wb-public { background: transparent; }
.wb-personal { margin-bottom: 8px; }
.wb-personal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px; margin-bottom: 20px;
  background: linear-gradient(100deg, #e8edff 0%, #efeafe 55%, #faf3ff 100%);
  border: 1px solid #dbe3ff; border-radius: var(--wb-radius);
  box-shadow: var(--wb-shadow);
}
.wb-personal__greet h2 { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.wb-personal__greet p { margin: 0; font-size: 13px; color: var(--wb-muted); }
.wb-personal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* min-height 是安全网：右栏异常偏矮时，避免左栏"最新匹配数据"被压得过扁 */
.wb-personal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; min-height: 480px; }
.wb-personal-col { display: flex; flex-direction: column; height: 100%; }
.wb-personal-col .wb-panel { margin-bottom: 20px; }
.wb-personal-col .wb-panel:last-child { margin-bottom: 0; }
/* 左栏"最新匹配数据"撑满整列，与右栏(4个面板)保持等高 */
.wb-panel--grow { flex: 1 1 auto; display: flex; flex-direction: column; margin-bottom: 0; min-height: 0; }
.wb-panel--grow > .wb-panel__body { flex: 1 1 auto; min-height: 0; }
/* 左栏"最新匹配数据"：高度锁定为右栏高度，内容超长时卡片内部滚动。
   注意：grid 的 auto 行高 = 两列内容的最大值，若左栏内容参与行高计算，
   行会被 15 条内容撑高导致永远"刚好装下"、overflow 不触发。
   故让卡片绝对定位脱离行高计算，行高仅由右栏内容决定。 */
.wb-personal-col--matches { position: relative; }
.wb-personal-col--matches > .wb-panel--grow {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin-bottom: 0;
}
@media (max-width: 1100px) {
  .wb-personal-grid { grid-template-columns: 1fr; align-items: start; }
  .wb-panel--grow { flex: none; }
  /* 单列时无右栏可参照，退回文档流并给定固定高度，保持内部滚动 */
  .wb-personal-col--matches { position: static; }
      .wb-personal-col--matches > .wb-panel--grow {
    position: static; height: 560px;
  }
}

/* ── Public area rows (homepage, no login needed) ── */
/* 两排均用 1fr 1fr，与个人区左右分割比例一致；列内两卡片等高 */
.wb-public-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  align-items: stretch; margin-bottom: 20px;
}
.wb-public-grid:last-child { margin-bottom: 0; }
/* 直接作为网格子项的面板：取消默认下边距并撑满列高，实现等高 */
.wb-public-grid > .wb-panel { margin-bottom: 0; }
/* 第二排右栏：三卡片纵向堆叠，撑满左栏高度 */
.wb-public-side { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.wb-public-side > .wb-panel { margin-bottom: 0; }
/* 上排：分类分布 / 来源TOP10 并排 */
.wb-public-side__top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wb-public-side__top > .wb-panel { margin-bottom: 0; }
/* 摘要列：相对定位容器，供内部滚动面板绝对填充；行高由左列(今日热点)决定，左右等高 */
.wb-public-col { position: relative; min-width: 0; }
/* 摘要过长时内部滚动：脱离网格行高计算，贴满左列高度，不再无限撑高整页 */
.wb-panel--scroll {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column; margin-bottom: 0;
}
.wb-panel--scroll > .wb-panel__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
@media (max-width: 1100px) {
  .wb-public-grid { grid-template-columns: 1fr; }
  .wb-public-side__top { grid-template-columns: 1fr; }
  /* 单列堆叠时退回文档流并给定固定高度，保持内部滚动 */
  .wb-panel--scroll { position: static; height: 560px; }
}

/* Stat rows inside personal panels (今日/本周/本月匹配 + 交付) */
.wb-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wb-stat-cell {
  display: block; padding: 12px 10px; text-align: center;
  background: #f8fafc; border: 1px solid var(--wb-border); border-radius: 8px;
  transition: border-color .15s, background .15s;
}
a.wb-stat-cell:hover { border-color: #93c5fd; background: #f1f5ff; }
.wb-stat-cell__val { margin: 0; font-size: 20px; font-weight: 700; color: var(--wb-primary); letter-spacing: -0.02em; }
.wb-stat-cell__val--ok { color: var(--wb-accent); }
.wb-stat-cell__val--fail { color: var(--wb-danger); }
.wb-stat-cell__val--pending { color: var(--wb-warn); }
.wb-stat-cell__lbl { margin: 4px 0 0; font-size: 11px; color: var(--wb-muted); }

/* Guest login banner (not logged in) */
.wb-guest-banner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 26px; margin-bottom: 24px;
  background: linear-gradient(100deg, #eef2ff 0%, #f0f4ff 60%, #f7f9ff 100%);
  border: 1px dashed #cbd5e1; border-radius: var(--wb-radius);
  box-shadow: var(--wb-shadow);
}
.wb-guest-banner__icon {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: #eef2ff; color: #4338ca;
}
.wb-guest-banner__icon svg { width: 28px; height: 28px; }
.wb-guest-banner__text { flex: 1; min-width: 200px; }
.wb-guest-banner__text h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.wb-guest-banner__text p { margin: 0; font-size: 13px; color: var(--wb-muted); line-height: 1.5; }

.wb-filter-bar--compact { padding: 10px 18px 0; }
.wb-trend-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 18px 0; font-size: 12px; color: var(--wb-muted);
}
.wb-trend-toolbar label { font-weight: 600; }
.wb-trend-input {
  padding: 5px 8px; border: 1px solid var(--wb-border); border-radius: 6px;
  font-size: 12px; font-family: inherit;
}
.wb-trend-toolbar__sep { color: var(--wb-muted); }
.wb-trend-type {
  display: inline-flex; border: 1px solid var(--wb-border); border-radius: 6px; overflow: hidden; margin-left: auto;
}
.wb-trend-type button {
  border: none; background: #fff; padding: 5px 10px; font-size: 11px; cursor: pointer; font-family: inherit;
}
.wb-trend-type button.is-active { background: var(--wb-primary); color: #fff; }
.wb-chart-side { height: 200px; width: 100%; }
.wb-chart-main { height: 260px; width: 100%; }
.wb-chart-main--sm { height: 220px; }
.wb-home-charts {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .wb-home-charts { grid-template-columns: 1fr; }
}
.wb-panel__badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: #f1f5f9; color: var(--wb-muted); margin-left: 8px;
}
.wb-panel--private .wb-panel__head { flex-wrap: wrap; gap: 6px; }
.wb-summary-card {
  display: block; padding: 14px 18px; border-bottom: 1px solid var(--wb-border);
  text-decoration: none; color: inherit; transition: background .12s;
}
.wb-summary-card:last-child { border-bottom: none; }
.wb-summary-card:hover { background: #f8fafc; text-decoration: none; }
.wb-summary-card__title { margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--wb-text); }
.wb-summary-card:hover .wb-summary-card__title { color: var(--wb-primary); }
.wb-summary-card__excerpt { margin: 0 0 8px; font-size: 12px; color: var(--wb-muted); line-height: 1.5; }
.wb-summary-card__author { margin: 0; font-size: 11px; color: var(--wb-muted); }
.wb-match-feed__item {
  display: block; padding: 12px 18px; border-bottom: 1px solid var(--wb-border);
  text-decoration: none; color: inherit;
}
.wb-match-feed__item:last-child { border-bottom: none; }
.wb-match-feed__item:hover { background: #f8fafc; text-decoration: none; }
.wb-match-feed__title { margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.wb-match-feed__meta { font-size: 11px; color: var(--wb-muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wb-match-type {
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  background: #dbeafe; color: #1d4ed8;
}
.wb-match-type--kw { background: #dbeafe; color: #1d4ed8; }
.wb-panel--compact .wb-panel__head { padding: 10px 18px; }
.wb-panel--compact .wb-insight-item { padding: 10px 18px; }

.wb-situ-card {
  background: var(--wb-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius);
  padding: 16px 18px;
  box-shadow: var(--wb-shadow);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.wb-situ-card__label { font-size: 12px; color: var(--wb-muted); margin: 0 0 4px; font-weight: 500; }
.wb-situ-card__value { font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -0.03em; line-height: 1.1; }
.wb-situ-card__delta { font-size: 11px; margin-top: 4px; }
.wb-situ-card__delta--up { color: var(--wb-danger); }
.wb-situ-card__delta--down { color: var(--wb-accent); }
.wb-situ-card__delta--ok { color: var(--wb-accent); }
.wb-situ-card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wb-situ-card__icon--risk { background: #fef2f2; color: var(--wb-danger); }
.wb-situ-card__icon--event { background: #eff6ff; color: var(--wb-primary); }
.wb-situ-card__icon--inbox { background: #fff7ed; color: var(--wb-warn); }
.wb-situ-card__icon--pipe { background: #f0fdf4; color: var(--wb-accent); }

/* ── Service quick strip ── */
.wb-services {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px; padding: 12px 16px;
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius); box-shadow: var(--wb-shadow);
}
.wb-services__label { font-size: 12px; color: var(--wb-muted); font-weight: 600; align-self: center; margin-right: 4px; }
.wb-service-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  background: var(--wb-primary-soft); color: var(--wb-primary);
  border: 1px solid #bfdbfe; cursor: pointer; transition: background .15s;
}
.wb-service-chip:hover { background: #dbeafe; text-decoration: none; }

/* ── Layout grid ── */
.wb-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1100px) { .wb-grid { grid-template-columns: 1fr; } }

/* ── Panel card ── */
.wb-panel {
  background: var(--wb-surface);
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius);
  box-shadow: var(--wb-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.wb-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--wb-border);
  gap: 12px; flex-wrap: wrap;
}
.wb-panel__title {
  margin: 0; font-size: 14px; font-weight: 650;
  display: flex; align-items: center; gap: 8px;
}
.wb-panel__title svg { color: var(--wb-primary); flex-shrink: 0; }
.wb-panel__link { font-size: 12px; font-weight: 500; white-space: nowrap; }
.wb-panel__body { padding: 14px 18px; }
.wb-panel__body--flush { padding: 0; }

.wb-filter-bar {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 12px;
}
.wb-filter-btn {
  padding: 4px 11px; border-radius: 16px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--wb-border); background: #fff; color: var(--wb-muted);
  cursor: pointer; font-family: inherit; transition: all .15s;
}
.wb-filter-btn:hover { border-color: #93c5fd; color: var(--wb-primary); }
.wb-filter-btn.is-active { background: var(--wb-primary); border-color: var(--wb-primary); color: #fff; }

/* ── Event stream ── */
.wb-event-list { list-style: none; margin: 0; padding: 0; }
.wb-event-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px; align-items: start;
  padding: 14px 18px; border-bottom: 1px solid var(--wb-border);
  transition: background .12s;
}
.wb-event-item:last-child { border-bottom: none; }
.wb-event-item:hover { background: #f8fafc; }
.wb-event-item__risk {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.wb-event-item__risk--high { background: #fef2f2; color: var(--wb-danger); }
.wb-event-item__risk--mid { background: #fff7ed; color: var(--wb-warn); }
.wb-event-item__risk--low { background: #f0fdf4; color: var(--wb-accent); }
.wb-event-item__title {
  font-weight: 600; font-size: 14px; color: var(--wb-text); margin: 0 0 4px;
  display: block;
}
.wb-event-item__title:hover { color: var(--wb-primary); text-decoration: none; }
.wb-event-item__meta { font-size: 12px; color: var(--wb-muted); margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.wb-tag {
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.wb-tag--cat { background: #f1f5f9; color: #475569; }
.wb-tag--heat { background: #fef3c7; color: #92400e; }
.wb-event-item__stats { text-align: right; font-size: 12px; color: var(--wb-muted); white-space: nowrap; }

/* ── Inbox ── */
.wb-inbox-tabs {
  display: flex; border-bottom: 1px solid var(--wb-border); padding: 0 18px;
}
.wb-inbox-tab {
  padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--wb-muted);
  border: none; background: none; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s;
}
.wb-inbox-tab:hover { color: var(--wb-text); }
.wb-inbox-tab.is-active { color: var(--wb-primary); border-bottom-color: var(--wb-primary); }
.wb-inbox-tab__count {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px;
  background: #e2e8f0; border-radius: 9px; font-size: 10px; text-align: center;
}
.wb-inbox-tab.is-active .wb-inbox-tab__count { background: var(--wb-primary-soft); color: var(--wb-primary); }

.wb-inbox-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 18px; border-bottom: 1px solid var(--wb-border);
  transition: background .12s; cursor: pointer;
}
.wb-inbox-item:last-child { border-bottom: none; }
.wb-inbox-item:hover { background: #f8fafc; }
.wb-inbox-item.is-unread { background: #fafbff; }
.wb-inbox-item__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--wb-primary);
  margin-top: 6px; flex-shrink: 0;
}
.wb-inbox-item.is-read .wb-inbox-item__dot { background: transparent; }
.wb-inbox-item__type {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: 4px; flex-shrink: 0; margin-top: 2px;
}
.wb-inbox-item__type--match { background: #dbeafe; color: #1d4ed8; }
.wb-inbox-item__type--report { background: #d1fae5; color: #065f46; }
.wb-inbox-item__type--entity { background: #ede9fe; color: #5b21b6; }
.wb-inbox-item__type--insight { background: #fce7f3; color: #9d174d; }
.wb-inbox-item__type--pipeline { background: #ffedd5; color: #9a3412; }
.wb-inbox-item__body { flex: 1; min-width: 0; }
.wb-inbox-item__title { font-size: 13px; font-weight: 600; margin: 0 0 2px; color: var(--wb-text); }
.wb-inbox-item__sub { font-size: 11px; color: var(--wb-muted); margin: 0; }
.wb-inbox-item__time { font-size: 11px; color: var(--wb-muted); white-space: nowrap; flex-shrink: 0; }

/* ── Tasks ── */
.wb-task-list { list-style: none; margin: 0; padding: 0; }
.wb-task-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-bottom: 1px solid var(--wb-border);
}
.wb-task-item:last-child { border-bottom: none; }
.wb-task-item__prio {
  width: 4px; height: 32px; border-radius: 2px; flex-shrink: 0;
}
.wb-task-item__prio--high { background: var(--wb-danger); }
.wb-task-item__prio--mid { background: var(--wb-warn); }
.wb-task-item__prio--low { background: #94a3b8; }
.wb-task-item__body { flex: 1; min-width: 0; }
.wb-task-item__title { font-size: 13px; font-weight: 600; margin: 0 0 2px; }
.wb-task-item__sub { font-size: 11px; color: var(--wb-muted); margin: 0; }

/* ── Evidence inbox ── */
.wb-evidence-item {
  display: block; padding: 12px 18px; border-bottom: 1px solid var(--wb-border);
  transition: background .12s;
}
.wb-evidence-item:last-child { border-bottom: none; }
.wb-evidence-item:hover { background: #f8fafc; text-decoration: none; }
.wb-evidence-item__title { font-size: 13px; font-weight: 600; color: var(--wb-text); margin: 0 0 4px; }
.wb-evidence-item:hover .wb-evidence-item__title { color: var(--wb-primary); }
.wb-evidence-item__excerpt { font-size: 12px; color: var(--wb-muted); margin: 0 0 6px; line-height: 1.45; }
.wb-evidence-item__links { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; }
.wb-evidence-link {
  color: var(--wb-primary); background: var(--wb-primary-soft);
  padding: 2px 8px; border-radius: 4px; font-weight: 500;
}
.wb-evidence-link:hover { background: #dbeafe; text-decoration: none; }

/* ── Insights ── */
.wb-insight-item {
  padding: 12px 18px; border-bottom: 1px solid var(--wb-border);
}
.wb-insight-item:last-child { border-bottom: none; }
.wb-insight-item__layer {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--wb-accent); margin-bottom: 4px;
}
.wb-insight-item__title { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.wb-insight-item__author { font-size: 11px; color: var(--wb-muted); margin: 0; }

/* ── Widgets row (compact charts) ── */
.wb-widgets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 900px) { .wb-widgets { grid-template-columns: 1fr; } }
.wb-widget {
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius); box-shadow: var(--wb-shadow); overflow: hidden;
}
.wb-widget__head {
  padding: 10px 14px; font-size: 12px; font-weight: 650;
  border-bottom: 1px solid var(--wb-border); color: var(--wb-muted);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.wb-widget__canvas { height: 140px; }

/* ── Data health ── */
.wb-health-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.wb-health-item {
  text-align: center; padding: 10px; background: #f8fafc; border-radius: 8px;
}
.wb-health-item__val { font-size: 18px; font-weight: 700; margin: 0; }
.wb-health-item__lbl { font-size: 11px; color: var(--wb-muted); margin: 2px 0 0; }

/* ── Object quick access ── */
.wb-obj-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 700px) { .wb-obj-grid { grid-template-columns: repeat(2, 1fr); } }
.wb-obj-card {
  display: block; padding: 14px; border-radius: 8px;
  border: 1px solid var(--wb-border); background: #f8fafc;
  text-align: center; transition: border-color .15s, background .15s;
}
.wb-obj-card:hover { border-color: #93c5fd; background: var(--wb-primary-soft); text-decoration: none; }
.wb-obj-card__count { font-size: 20px; font-weight: 700; color: var(--wb-text); margin: 0; }
.wb-obj-card__label { font-size: 12px; color: var(--wb-muted); margin: 2px 0 0; }

/* ── View switching ── */
.wb-view { display: none; }
.wb-view.is-active { display: block; }

/* ── Discover search ── */
.wb-discover-hero {
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius); box-shadow: var(--wb-shadow);
  padding: 20px; margin-bottom: 16px;
}
.wb-discover-hero__input-wrap {
  display: flex; gap: 10px; align-items: center;
}
.wb-discover-hero__input {
  flex: 1; padding: 12px 16px; font-size: 15px;
  border: 1px solid var(--wb-border); border-radius: 8px;
  outline: none; font-family: inherit;
}
.wb-discover-hero__input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

/* 搜索 + 预设 合并到一行 */
.wb-discover-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wb-discover-bar .wb-discover-hero__input-wrap { flex: 1; min-width: 280px; }
.wb-preset-inline { display: inline-flex; align-items: center; gap: 8px; }
.wb-preset-label { font-size: 13px; color: var(--wb-muted); white-space: nowrap; }
.wb-preset-select {
  max-width: 240px; padding: 9px 10px; font-size: 14px;
  border: 1px solid var(--wb-border); border-radius: 8px;
  background: var(--wb-bg); color: var(--wb-text); outline: none; font-family: inherit;
}
.wb-preset-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
/* 图标触发按钮 + 下拉菜单 */
.wb-preset-menu { position: relative; }
.wb-btn--icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0; border-radius: 8px;
  border: 1px solid var(--wb-border); background: var(--wb-bg); color: var(--wb-text); cursor: pointer;
}
.wb-btn--icon:hover { background: var(--wb-hover, #f1f3f7); }
.wb-btn--icon svg { width: 18px; height: 18px; }
.wb-preset-menu__list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  display: none; min-width: 184px; padding: 6px; list-style: none;
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.wb-preset-menu__list .wb-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 7px;
  background: transparent; color: var(--wb-text); font-size: 14px;
  font-family: inherit; text-align: left; cursor: pointer;
}
.wb-preset-menu__list .wb-menu-item:hover { background: var(--wb-hover, #f1f3f7); }
.wb-preset-menu__list .wb-menu-item:disabled { color: var(--wb-muted); opacity: .5; cursor: not-allowed; }
.wb-preset-menu__list .wb-menu-item:disabled:hover { background: transparent; }
.wb-preset-menu__list .wb-menu-item--danger { color: #e11d48; }
.wb-preset-menu__list .wb-menu-item--danger:hover { background: #fff1f3; }
.wb-preset-menu__list .wb-menu-item svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 720px) {
  .wb-discover-bar .wb-discover-hero__input-wrap { min-width: 100%; }
}

/* 首页"为你推荐" */
.wb-recommend-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.wb-recommend-col-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--wb-muted); margin: 0 0 8px; }
.wb-recommend-col-title svg { width: 14px; height: 14px; }
.wb-recommend-list { display: flex; flex-direction: column; }
.wb-recommend-item { display: block; padding: 12px 18px; border-bottom: 1px solid var(--wb-border); text-decoration: none; color: inherit; transition: background .12s; }
.wb-recommend-item:last-child { border-bottom: none; }
.wb-recommend-item:hover { background: #f8fafc; text-decoration: none; }
.wb-recommend-item:focus, .wb-recommend-item:active { text-decoration: none; }
.wb-recommend-item__title { margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--wb-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wb-recommend-item__meta { margin-top: 0; font-size: 11px; color: var(--wb-muted); }
@media (max-width: 720px) { .wb-recommend-cols { grid-template-columns: 1fr; } }
.wb-discover-promo {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--wb-border);
}
@media (max-width: 1100px) {
  .wb-discover-promo { grid-template-columns: 1fr; gap: 16px; }
}
.wb-discover-promo__label {
  margin: 0 0 10px; font-size: 12px; font-weight: 650; color: var(--wb-text);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.wb-discover-promo__label svg { width: 14px; height: 14px; color: var(--wb-primary); }
.wb-discover-promo__hint { font-weight: 400; color: var(--wb-muted); font-size: 11px; }
.wb-discover-promo__live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
  animation: wb-live-pulse 1.8s ease-in-out infinite;
}
@keyframes wb-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.wb-discover-promo__keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-discover-kw {
  border: 1px solid var(--wb-border); border-radius: 999px; padding: 5px 12px;
  background: #f8fafc; cursor: pointer; font-family: inherit; color: var(--wb-text);
  display: inline-flex; align-items: center; gap: 4px; transition: border-color .12s, background .12s;
}
.wb-discover-kw span { color: var(--wb-muted); font-size: 11px; font-weight: 600; }
.wb-discover-kw:hover { border-color: #93c5fd; background: #eff6ff; color: var(--wb-primary); }
.wb-discover-kw__trend { font-size: 10px; font-weight: 700; margin-left: 2px; }
.wb-discover-kw__trend--up { color: #dc2626; }
.wb-discover-kw__trend--new { color: #059669; background: #d1fae5; padding: 0 4px; border-radius: 4px; }
.wb-discover-hot-events { list-style: none; margin: 0; padding: 0; }
.wb-discover-hot-ev {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px;
}
.wb-discover-hot-ev__rank {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: #f1f5f9;
  font-size: 11px; font-weight: 700; color: var(--wb-muted); display: flex; align-items: center; justify-content: center;
}
.wb-discover-hot-ev:nth-child(-n+3) .wb-discover-hot-ev__rank { background: #fef2f2; color: #dc2626; }
.wb-discover-hot-ev__btn {
  flex: 1; min-width: 0; border: none; background: none; padding: 0; cursor: pointer;
  text-align: left; font-family: inherit;
}
.wb-discover-hot-ev__btn:hover .wb-discover-hot-ev__title { color: var(--wb-primary); }
.wb-discover-hot-ev__title {
  display: block; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--wb-text);
}
.wb-discover-hot-ev__meta { font-size: 11px; color: var(--wb-muted); }
.wb-discover-live { list-style: none; margin: 0; padding: 0; max-height: 168px; overflow-y: auto; }
.wb-discover-live__item { margin-bottom: 4px; }
.wb-discover-live__btn {
  width: 100%; border: none; background: transparent; padding: 6px 8px; border-radius: 8px;
  cursor: pointer; text-align: left; font-family: inherit; transition: background .12s;
}
.wb-discover-live__btn:hover { background: #f8fafc; }
.wb-discover-live__time {
  display: inline-block; font-size: 10px; font-weight: 600; color: var(--wb-primary);
  margin-right: 8px; min-width: 36px;
}
.wb-discover-live__title {
  display: block; font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--wb-text);
  margin-top: 2px;
}
.wb-discover-live__source { font-size: 10px; color: var(--wb-muted); }

/* 发现 · 原始采集标签 */
.wb-raw-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.wb-raw-tag {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; line-height: 1.3;
}
.wb-raw-tag--news { background: #dbeafe; color: #1d4ed8; }
.wb-raw-tag--social { background: #ffedd5; color: #c2410c; }
.wb-raw-tag--format { background: #f1f5f9; color: #475569; }
.wb-raw-tag--domain { font-weight: 650; }
.wb-raw-tag--domain-intl { background: #dbeafe; color: #1d4ed8; }
.wb-raw-tag--domain-politics { background: #e0e7ff; color: #4338ca; }
.wb-raw-tag--domain-economy { background: #d1fae5; color: #047857; }
.wb-raw-tag--domain-society { background: #ffedd5; color: #c2410c; }
.wb-raw-tag--domain-military { background: #fee2e2; color: #b91c1c; }
.wb-raw-tag--domain-tech { background: #cffafe; color: #0e7490; }
.wb-raw-tag--domain-entertainment { background: #fce7f3; color: #be185d; }
.wb-raw-tag--domain-culture { background: #fef3c7; color: #b45309; }
.wb-raw-tag--domain-sports { background: #dcfce7; color: #15803d; }
.wb-raw-tag--domain-other { background: #f1f5f9; color: #64748b; }
.wb-raw-tag--sent-positive { background: #dcfce7; color: #15803d; }
.wb-raw-tag--sent-negative { background: #fee2e2; color: #b91c1c; }
.wb-raw-tag--sent-neutral { background: #f1f5f9; color: #64748b; }
.wb-raw-tag--sent-unanalyzed { background: #fef3c7; color: #b45309; }
.wb-raw-tag--danger-low { background: #ecfdf5; color: #047857; }
.wb-raw-tag--danger-mid { background: #fef3c7; color: #b45309; }
.wb-raw-tag--danger-high { background: #fee2e2; color: #b91c1c; }
.wb-raw-tag--danger-critical { background: #450a0a; color: #fecaca; }
.wb-search-result__type--social { background: #ffedd5; color: #c2410c; }
.wb-discover-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 16px; align-items: start;
}
@media (max-width: 900px) {
  .wb-discover-layout { grid-template-columns: 1fr; }
}
.wb-raw-list { display: flex; flex-direction: column; gap: 0; }
.wb-raw-list__empty {
  padding: 32px 16px; text-align: center; color: var(--wb-muted); font-size: 13px;
}
.wb-raw-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--wb-border);
  background: var(--wb-surface);
}
.wb-raw-card:last-child { border-bottom: none; }
.wb-raw-card__check {
  flex-shrink: 0; margin: 4px 0 0; cursor: pointer; display: flex; align-items: center;
}
.wb-raw-card__check input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--wb-primary); }
.wb-raw-card__body { flex: 1; min-width: 0; }
.wb-raw-card__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px;
}
.wb-raw-card__tags-wrap { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; min-width: 0; }
.wb-raw-card__detail-btn { flex-shrink: 0; }
.wb-raw-card__title { font-size: 15px; font-weight: 700; margin: 0 0 6px; line-height: 1.35; color: var(--wb-text); }
.wb-raw-card__source { font-size: 11px; color: var(--wb-muted); margin: 0 0 4px; }
.wb-raw-card__note { font-size: 11px; color: var(--wb-muted); margin: 0 0 10px; }
.wb-raw-card__snippet { font-size: 13px; color: var(--wb-text); line-height: 1.55; margin: 0 0 12px; }
.wb-raw-card__related { margin: 0 0 12px; padding-top: 10px; border-top: 1px solid var(--wb-border); }
.wb-raw-card__related-label { margin: 0 0 6px; font-size: 11px; font-weight: 650; color: var(--wb-muted); }
.wb-raw-card__related-list { list-style: none; margin: 0; padding: 0; }
.wb-raw-card__rel-btn {
  display: block; width: 100%; text-align: left; border: none; background: none; padding: 5px 0;
  font-size: 12px; color: var(--wb-primary); cursor: pointer; font-family: inherit;
}
.wb-raw-card__rel-btn:hover { text-decoration: underline; }
.wb-raw-card__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wb-raw-card--compact .wb-raw-card__head { margin-bottom: 6px; }
.wb-raw-card--compact .wb-raw-card__snippet { margin-bottom: 6px; }

/* 发现页卡片媒体缩略图（图片 / 视频 / PDF） */
.wb-raw-card__media { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wb-media-thumb { position: relative; display: inline-flex; flex: none; overflow: hidden; border-radius: 6px; border: 1px solid var(--wb-border); background: #0f172a; }
.wb-media-thumb img { display: block; height: 72px; width: auto; max-width: 128px; object-fit: cover; }
.wb-media-thumb--video { width: 112px; height: 72px; align-items: center; justify-content: center; background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }
.wb-media-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; }
.wb-media-play svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.wb-media-pdf { display: inline-flex; align-items: center; gap: 6px; height: 72px; padding: 0 14px; border: 1px solid var(--wb-border); border-radius: 6px; background: #fff; color: var(--wb-primary); font-weight: 600; font-size: 13px; text-decoration: none; }
.wb-media-pdf svg { width: 18px; height: 18px; color: #dc2626; }
.wb-media-pdf:hover { border-color: #93c5fd; background: var(--wb-primary-soft); }

.wb-discover-sidebar {
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius); box-shadow: var(--wb-shadow);
  padding: 14px; position: sticky; top: calc(var(--wb-nav-h) + 16px);
}
.wb-discover-sidebar h3 { margin: 0 0 10px; font-size: 12px; color: var(--wb-muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.wb-type-list { list-style: none; margin: 0 0 16px; padding: 0; }
.wb-type-list li { margin-bottom: 4px; }
.wb-type-btn {
  width: 100%; text-align: left; padding: 8px 10px; border: none; border-radius: 6px;
  background: transparent; cursor: pointer; font-family: inherit; font-size: 13px;
  display: flex; justify-content: space-between; color: var(--wb-text);
}
.wb-type-btn:hover { background: #f1f5f9; }
.wb-type-btn.is-active { background: var(--wb-primary-soft); color: var(--wb-primary); font-weight: 600; }
.wb-type-btn__count { font-size: 11px; color: var(--wb-muted); }
.wb-discover-taxonomy { margin-bottom: 14px; }
.wb-discover-taxonomy > h3 { margin: 14px 0 8px; }
.wb-tax-group { margin-bottom: 12px; }
.wb-tax-group__title { margin: 0 0 6px; font-size: 11px; font-weight: 650; color: var(--wb-muted); }
.wb-tax-chip {
  display: inline-block; margin: 0 4px 6px 0; padding: 4px 9px; border: 1px solid var(--wb-border);
  border-radius: 999px; background: #fff; font-size: 11px; cursor: pointer; font-family: inherit; color: var(--wb-text);
}
.wb-tax-chip:hover { border-color: #93c5fd; color: var(--wb-primary); }
.wb-tax-chip.is-active { background: var(--wb-primary-soft); border-color: #93c5fd; color: var(--wb-primary); font-weight: 600; }

/* 搜索条件显示区 (news_list 筛选提示区改造) */
.wb-filter-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-filter-tag {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: var(--wb-primary-soft, #eef2ff);
  border: 1px solid #c7d2fe;
  color: var(--wb-primary, #4338ca);
  border-radius: 8px;
  font-size: 12px; line-height: 1.5;
  max-width: 100%;
}
.wb-filter-tag__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 每个 item 右上角的叉号：移除该条件 */
.wb-filter-tag__close {
  position: absolute; top: -7px; right: -7px;
  width: 16px; height: 16px; line-height: 14px; text-align: center;
  border-radius: 50%; background: var(--wb-primary, #4338ca); color: #fff;
  font-size: 12px; cursor: pointer; box-shadow: 0 0 0 2px #fff;
}
.wb-filter-tag__close:hover { background: #ef4444; }
.wb-filter-clear-btn {
  margin-left: auto;
  font-size: 11px; color: #dc2626;
  background: #fff; border: 1px solid #fca5a5;
  border-radius: 6px; padding: 2px 8px; cursor: pointer; flex: none;
}
.wb-filter-clear-btn:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.wb-discover-filters label { display: block; font-size: 11px; color: var(--wb-muted); margin: 8px 0 4px; font-weight: 600; }
.wb-discover-filters select {
  width: 100%; padding: 6px 8px; border: 1px solid var(--wb-border);
  border-radius: 6px; font-size: 12px; font-family: inherit;
}
.wb-discover-filters__hint { margin: 10px 0 0; font-size: 11px; color: var(--wb-muted); line-height: 1.4; }
.wb-discover-filters__hint a { color: var(--wb-primary); }
.wb-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.wb-discover-results {
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius); box-shadow: var(--wb-shadow); overflow: hidden;
}
.wb-discover-results__head {
  padding: 12px 16px; border-bottom: 1px solid var(--wb-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--wb-muted);
}
.wb-search-result {
  display: block; padding: 14px 16px; border-bottom: 1px solid var(--wb-border);
  cursor: pointer; transition: background .12s; text-decoration: none; color: inherit;
}
.wb-search-result:last-child { border-bottom: none; }
.wb-search-result:hover { background: #f8fafc; text-decoration: none; }
.wb-search-result.is-selected { background: #eff6ff; border-left: 3px solid var(--wb-primary); padding-left: 13px; }
.wb-search-result__type {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: 4px; display: inline-block; margin-bottom: 4px;
}
.wb-search-result__type--event { background: #fef3c7; color: #92400e; }
.wb-search-result__type--document { background: #dbeafe; color: #1d4ed8; }
.wb-search-result__type--entity { background: #ede9fe; color: #5b21b6; }
.wb-search-result__type--topic { background: #d1fae5; color: #065f46; }
.wb-search-result__title { font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--wb-text); }
.wb-search-result__snippet { font-size: 12px; color: var(--wb-muted); margin: 0 0 6px; line-height: 1.4; }
.wb-search-result__meta { font-size: 11px; color: var(--wb-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.wb-search-result--selectable {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
}
.wb-search-result--selectable.is-selected { padding-left: 11px; }
.wb-search-result__check {
  flex-shrink: 0; margin: 2px 0 0; cursor: pointer; display: flex; align-items: center;
}
.wb-search-result__check input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--wb-primary); }
.wb-search-result__body { flex: 1; min-width: 0; }
.wb-discover-batch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 10px 14px; margin: 0 16px 8px; background: #f8fafc; border: 1px solid var(--wb-border); border-radius: 8px;
}
.wb-discover-batch__check { font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.wb-discover-batch__count { font-size: 12px; color: var(--wb-muted); }
.wb-discover-batch__actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.wb-raw-card.is-selected { background: #f0f7ff; border-left: 3px solid var(--wb-primary); padding-left: 15px; }
.wb-discover-wizard-steps {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.wb-discover-wizard-step {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #f1f5f9; color: var(--wb-muted);
}
.wb-discover-wizard-step.is-active { background: var(--wb-primary-soft); color: var(--wb-primary); }
.wb-wizard-field { display: block; margin-bottom: 14px; }
.wb-wizard-field > span, .wb-wizard-field > legend { font-size: 12px; font-weight: 650; color: var(--wb-text); }
.wb-wizard-input {
  width: 100%; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--wb-border);
  border-radius: 8px; font-size: 13px; font-family: inherit;
}
.wb-wizard-radio, .wb-wizard-check {
  display: block; margin: 8px 0 0; font-size: 13px; cursor: pointer;
}
.wb-discover-results-head__hint { font-size: 11px; color: var(--wb-muted); }
.wb-brief-preview__meta { margin: 0 0 8px; font-size: 12px; color: var(--wb-muted); }
.wb-brief-preview__summary {
  margin: 0 0 14px; padding: 10px 12px; background: #f8fafc; border-radius: 8px;
  font-size: 13px; line-height: 1.5; color: var(--wb-text-secondary, #475569);
}
.wb-brief-preview__body {
  max-height: min(52vh, 480px); overflow-y: auto; padding-right: 4px;
  border-top: 1px solid var(--wb-border); padding-top: 14px;
}
.wb-brief-preview__body cite { font-size: 11px; color: #94a3b8; font-style: normal; }
.wb-brief-preview__body .wb-brief-refs { font-size: 12px; color: var(--wb-muted); }
.wb-discover-wizard-summary {
  margin-top: 12px; padding: 12px; background: #f8fafc; border-radius: 8px; border: 1px solid #eef2f7;
}
.wb-cluster-progress__title { margin: 0 0 10px; font-weight: 650; }
.wb-cluster-progress__bar {
  height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 12px;
}
.wb-cluster-progress__bar span {
  display: block; height: 100%; background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 999px; transition: width 0.35s ease;
}
.wb-cluster-progress__log {
  margin: 0; padding-left: 18px; font-size: 12px; color: var(--wb-muted); line-height: 1.6;
}
.wb-ev-user-criteria {
  margin-bottom: 14px; padding: 12px 14px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px;
}
.wb-ev-user-criteria__query { margin: 0; font-size: 13px; font-weight: 600; }
.wb-ev-user-criteria__run { margin: 6px 0 0; font-size: 11px; color: var(--wb-muted); }
.wb-ev-user-criteria__clusters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wb-ev-lane-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.wb-ev-lane-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--wb-border); border-radius: 8px;
  background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  color: var(--wb-muted); transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wb-ev-lane-tab:hover { border-color: #93c5fd; color: var(--wb-primary); background: #f8fafc; }
.wb-ev-lane-tab.is-active {
  background: var(--wb-primary-soft); border-color: #93c5fd; color: var(--wb-primary);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}
.wb-ev-lane-tab__count {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: #f1f5f9; color: var(--wb-muted);
}
.wb-ev-lane-tab.is-active .wb-ev-lane-tab__count { background: rgba(37, 99, 235, 0.15); color: var(--wb-primary); }
.wb-ev-timeline-lanes { min-height: 120px; }
.wb-ev-timeline-lane-panel { display: none; }
.wb-ev-timeline-lane-panel.is-active { display: block; animation: wb-lane-fade 0.2s ease; }
@keyframes wb-lane-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.wb-ev-timeline-lane-panel__meta {
  margin: 0 0 12px; padding: 8px 12px; font-size: 12px; color: var(--wb-muted);
  background: #f8fafc; border-radius: 8px; border: 1px solid #eef2f7;
}
.wb-ev-timeline-lane-empty { margin: 0; padding: 24px 16px; text-align: center; font-size: 13px; color: var(--wb-muted); }
/* 发现 · 我的简报（独立二级页 #discover/briefings） */
.wb-discover-briefings-page__back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--wb-primary);
  text-decoration: none; margin-bottom: 8px;
}
.wb-discover-briefings-page__back:hover { text-decoration: underline; }
.wb-discover-briefings-page { margin-top: 0; }
.wb-discover-briefings__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.wb-discover-briefings__hint { display: block; font-size: 12px; font-weight: 400; color: var(--wb-muted); margin-top: 4px; }
.wb-discover-briefings__count { font-size: 12px; color: var(--wb-muted); white-space: nowrap; }
.wb-discover-briefings__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}
.wb-discover-briefings__empty { margin: 8px 0 0; font-size: 13px; color: var(--wb-muted); text-align: center; padding: 20px; }
.wb-discover-brief-card {
  padding: 14px 16px; border: 1px solid var(--wb-border); border-radius: 10px; background: #fff;
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
}
.wb-discover-brief-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08); }
.wb-discover-brief-card__top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px;
}
.wb-discover-brief-card__type {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  background: #e0f2fe; color: #0369a1;
}
.wb-discover-brief-card__date { font-size: 10px; color: var(--wb-muted); }
.wb-discover-brief-card__title { margin: 0 0 6px; font-size: 14px; font-weight: 650; line-height: 1.35; }
.wb-discover-brief-card__meta { margin: 0 0 8px; font-size: 11px; color: var(--wb-muted); }
.wb-discover-brief-card__theme {
  font-size: 10px; padding: 3px 8px; border-radius: 999px; background: #f0fdf4; color: #047857;
}
.wb-discover-brief-card__theme--none { background: #f1f5f9; color: #64748b; }
.wb-discover-briefing-detail {
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius); box-shadow: var(--wb-shadow); padding: 16px 20px 24px;
}
#view-discover-briefings .wb-discover-briefing-detail { margin-top: 0; }
.wb-discover-brief-detail__head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--wb-border);
}
.wb-discover-brief-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-discover-brief-detail__meta-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px;
  font-size: 12px; color: var(--wb-muted);
}
.wb-discover-brief-detail__title { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.wb-discover-brief-detail__criteria { margin: 0 0 14px; font-size: 12px; color: var(--wb-muted); }
.wb-discover-brief-detail__body { margin-bottom: 24px; }
.wb-discover-brief-detail__evidence {
  padding-top: 16px; border-top: 1px solid var(--wb-border);
}
.wb-discover-brief-detail__evidence-title { margin: 0 0 12px; font-size: 14px; font-weight: 650; }
.wb-discover-brief-evidence { list-style: none; margin: 0; padding: 0; }
.wb-discover-brief-evidence li {
  padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; line-height: 1.45;
}
.wb-discover-brief-evidence li:last-child { border-bottom: none; }
.wb-discover-brief-evidence__n { font-weight: 700; color: var(--wb-primary); margin-right: 6px; }
.wb-discover-brief-evidence__link {
  border: none; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--wb-text);
  cursor: pointer; text-align: left;
}
.wb-discover-brief-evidence__link:hover { color: var(--wb-primary); }
.wb-discover-brief-evidence__src { display: block; font-size: 11px; color: var(--wb-muted); margin-top: 4px; }
.wb-discover-brief-insight-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.wb-discover-brief-insight-card {
  padding: 14px; border: 1px solid var(--wb-border); border-radius: 10px; background: #f8fafc; cursor: pointer;
}
.wb-discover-brief-insight-card:hover { border-color: #93c5fd; }
.wb-discover-brief-insight-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wb-discover-brief-insight-card__title { margin: 0 0 6px; font-size: 14px; font-weight: 650; }
.wb-discover-brief-insight-card__meta { margin: 0 0 6px; font-size: 11px; color: var(--wb-muted); }
.wb-discover-brief-insight-card__summary { margin: 0 0 10px; font-size: 12px; color: var(--wb-muted); line-height: 1.45; }

.wb-discover-saved {
  margin-top: 16px; padding: 12px 16px;
  background: #f8fafc; border: 1px dashed var(--wb-border); border-radius: 8px;
  font-size: 12px; color: var(--wb-muted);
}
.wb-saved-query-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.wb-saved-query-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 10px 12px; background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: 8px; font-size: 13px; color: var(--wb-text);
}
.wb-saved-query-item__meta { font-size: 11px; color: var(--wb-muted); margin-top: 4px; }
.wb-saved-query-item__actions { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.wb-saved-query-item__actions a { color: var(--wb-primary); font-weight: 600; text-decoration: none; font-size: 12px; }
.wb-saved-query-item__actions a:hover { text-decoration: underline; }
.wb-discover-saved__empty { margin: 8px 0 0; font-size: 12px; }

/* ── Event detail shell ── */
.wb-breadcrumb {
  font-size: 12px; color: var(--wb-muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.wb-breadcrumb a { color: var(--wb-muted); }
.wb-breadcrumb a:hover { color: var(--wb-primary); }
.wb-breadcrumb__sep { color: #cbd5e1; }
.wb-obj-header {
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius); box-shadow: var(--wb-shadow);
  padding: 20px; margin-bottom: 0;
}
.wb-obj-header__top {
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.wb-obj-header__risk-lg {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; flex-shrink: 0;
}
.wb-obj-header__main { flex: 1; min-width: 200px; }
.wb-obj-header__type {
  font-size: 11px; font-weight: 700; color: var(--wb-primary);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.wb-obj-header h1 { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.35; }
.wb-obj-header__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--wb-muted); }
.wb-obj-header__actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.wb-obj-tabs {
  display: flex; gap: 0; background: var(--wb-surface);
  border: 1px solid var(--wb-border); border-top: none;
  border-radius: 0 0 var(--wb-radius) var(--wb-radius);
  overflow-x: auto; margin-bottom: 20px;
}
.wb-obj-tab {
  padding: 12px 18px; font-size: 13px; font-weight: 500; color: var(--wb-muted);
  border: none; background: none; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.wb-obj-tab:hover { color: var(--wb-text); background: #f8fafc; }
.wb-obj-tab.is-active { color: var(--wb-primary); border-bottom-color: var(--wb-primary); font-weight: 600; }
.wb-obj-tab--articles.is-active { background: #f0f7ff; }
.wb-obj-tab__count {
  display: inline-block; margin-left: 4px; min-width: 18px; padding: 0 6px;
  font-size: 10px; font-weight: 700; line-height: 18px; border-radius: 999px;
  background: #e0e7ff; color: #4338ca; vertical-align: middle;
}
.wb-obj-tab.is-active .wb-obj-tab__count { background: var(--wb-primary); color: #fff; }
.wb-obj-tab.is-locked { color: var(--wb-muted); }
.wb-obj-tab.is-locked::after { content: ' 🔒'; font-size: 10px; }
.wb-obj-tab-panel { display: none; }
.wb-obj-tab-panel.is-active { display: block; }
.wb-studio-disabled .wb-feature-studio,
.wb-studio-disabled [data-view="studio"],
.wb-studio-disabled [data-view="studio-wizard"],
.wb-studio-disabled [data-view="studio-task"] {
  display: none !important;
}
.wb-obj-detail-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start;
}
@media (max-width: 1000px) { .wb-obj-detail-grid { grid-template-columns: 1fr; } }
.wb-timeline { list-style: none; margin: 0; padding: 0; }
.wb-timeline li {
  position: relative; padding: 0 0 20px 24px; border-left: 2px solid var(--wb-border);
  margin-left: 8px;
}
.wb-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.wb-timeline li::before {
  content: ''; position: absolute; left: -5px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--wb-primary);
}
.wb-timeline__time { font-size: 11px; color: var(--wb-muted); margin-bottom: 2px; }
.wb-timeline__text { font-size: 13px; margin: 0; }
.wb-evidence-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wb-evidence-table th, .wb-evidence-table td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--wb-border);
}
.wb-evidence-table th { font-size: 11px; color: var(--wb-muted); font-weight: 600; background: #f8fafc; }
.wb-evidence-table tr:hover td { background: #f8fafc; }
.wb-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.wb-tag-pill {
  padding: 4px 10px; border-radius: 16px; font-size: 12px; font-weight: 500;
  background: #f1f5f9; color: #475569;
}
.wb-related-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--wb-border); border-radius: 8px; margin-bottom: 8px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.wb-related-card:hover { border-color: #93c5fd; background: #f8fafc; }
.wb-related-card__icon {
  width: 36px; height: 36px; border-radius: 8px; background: var(--wb-primary-soft);
  display: flex; align-items: center; justify-content: center; color: var(--wb-primary);
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.wb-related-card__body { flex: 1; min-width: 0; }
.wb-related-card__title { font-size: 13px; font-weight: 600; margin: 0; }
.wb-related-card__sub { font-size: 11px; color: var(--wb-muted); margin: 0; }
.wb-insight-card {
  padding: 14px; border: 1px solid var(--wb-border); border-radius: 8px;
  margin-bottom: 10px; background: #fafbff;
}
.wb-insight-card__layer { font-size: 10px; font-weight: 700; color: var(--wb-accent); margin-bottom: 6px; }

/* ── 智库 / 专家解读 · 分层试读 ── */
.wb-insight-article {
  position: relative;
  padding: 16px;
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius);
  margin-bottom: 14px;
  background: #fff;
}
.wb-insight-article--compact { padding: 12px 14px; margin-bottom: 0; }
.wb-insight-article__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.35;
}
.wb-insight-article__author { font-size: 12px; color: var(--wb-muted); margin: 0 0 8px; }
.wb-insight-article__summary {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 10px;
  color: var(--wb-text);
}
.wb-insight-article__body { font-size: 13px; line-height: 1.6; margin: 0; }
.wb-insight-article__body p { margin: 0; }
.wb-insight-article__body--faded {
  max-height: 88px;
  overflow: hidden;
  mask-image: linear-gradient(#000 55%, transparent);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
}
.wb-insight-article__locked-note {
  font-size: 12px;
  color: var(--wb-muted);
  margin: 0;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
}
.wb-insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--wb-muted);
  margin-bottom: 10px;
}
.wb-insight-meta span { display: inline-flex; align-items: center; gap: 4px; }
.wb-insight-meta svg { width: 12px; height: 12px; }
.wb-insight-paywall { position: relative; margin-top: -4px; }
.wb-insight-paywall__fade {
  height: 36px;
  margin-top: -36px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 85%);
  pointer-events: none;
}
.wb-insight-paywall__bar {
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px dashed #cbd5e1;
  border-radius: 0 0 8px 8px;
}
.wb-insight-paywall__remain {
  font-size: 12px;
  color: var(--wb-muted);
  margin: 0 0 10px;
  text-align: center;
}
.wb-insight-paywall__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.wb-insight-funnel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--wb-primary);
  padding: 8px 12px;
  background: var(--wb-primary-soft);
  border-radius: 6px;
  margin-bottom: 14px;
}
.wb-insight-funnel__sep { opacity: 0.45; font-weight: 400; }
.wb-insight-shelf-intro {
  font-size: 12px;
  color: var(--wb-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.wb-panel--insight-entry { border-color: #bfdbfe; background: linear-gradient(180deg, #f8fbff, #fff); }
.wb-insight-entry__hint { font-size: 11px; color: var(--wb-muted); margin: 0 0 10px; }
.wb-insight-entry__topic { font-size: 12px; margin: 12px 0 0; color: var(--wb-muted); }
.wb-insight-item--link {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--wb-border);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s;
}
.wb-insight-item--link:hover { background: #f8fafc; }
.wb-insight-item--link:last-child { border-bottom: none; }
.wb-insight-item__teaser {
  font-size: 11px;
  color: var(--wb-muted);
  margin: 0 0 6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wb-insight-item__gate {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fef3c7;
  color: #b45309;
}
.wb-insight-item__gate--free { background: #dcfce7; color: #15803d; }
.wb-hotspot-rank__expert,
.wb-discover-hot-ev__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 4px;
  background: #ede9fe;
  color: #6d28d9;
  vertical-align: middle;
}
.wb-chart-md { height: 200px; }
.wb-summary-box {
  padding: 14px; background: #f8fafc; border-radius: 8px;
  border-left: 3px solid var(--wb-primary); font-size: 13px; line-height: 1.55; margin-bottom: 16px;
}
.wb-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 700px) { .wb-stat-row { grid-template-columns: repeat(2, 1fr); } }
.wb-stat-box {
  padding: 12px; background: #f8fafc; border-radius: 8px; text-align: center;
}
.wb-stat-box__val { font-size: 18px; font-weight: 700; margin: 0; }
.wb-stat-box__lbl { font-size: 11px; color: var(--wb-muted); margin: 2px 0 0; }
.wb-btn--outline {
  background: #fff; color: var(--wb-primary); border: 1px solid #bfdbfe;
}
.wb-btn--outline:hover { background: var(--wb-primary-soft); }
.wb-topbar .wb-btn--outline { background: transparent; border-color: rgba(255,255,255,0.2); color: #e2e8f0; }
.wb-topbar .wb-btn--outline:hover { background: rgba(255,255,255,0.08); }
.wb-btn--danger-ghost {
  background: transparent; color: #dc2626; border: 1px solid #fecaca;
}
.wb-btn--danger-ghost:hover { background: #fef2f2; }

/* ── Studio 工坊 ── */
.wb-studio-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  border-bottom: 1px solid var(--wb-border); padding-bottom: 0;
}
.wb-studio-tab {
  padding: 10px 18px; font-size: 13px; font-weight: 500; color: var(--wb-muted);
  border: none; background: none; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.wb-studio-tab:hover { color: var(--wb-text); }
.wb-studio-tab.is-active { color: var(--wb-primary); border-bottom-color: var(--wb-primary); font-weight: 600; }

.wb-quota-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe; border-radius: var(--wb-radius); margin-bottom: 20px;
}
.wb-quota-bar__item { font-size: 13px; }
.wb-quota-bar__item strong { font-size: 18px; color: var(--wb-primary); }

.wb-template-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.wb-template-card {
  border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  padding: 16px; background: var(--wb-surface); box-shadow: var(--wb-shadow);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s;
}
.wb-template-card:hover { border-color: #93c5fd; box-shadow: 0 4px 20px rgba(37,99,235,0.08); }
.wb-template-card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wb-primary-soft); color: var(--wb-primary);
}
.wb-template-card__title { font-size: 15px; font-weight: 650; margin: 0; }
.wb-template-card__desc { font-size: 12px; color: var(--wb-muted); margin: 0; line-height: 1.45; flex: 1; }
.wb-template-card__chain {
  font-size: 11px; color: var(--wb-muted); padding: 8px; background: #f8fafc; border-radius: 6px;
  font-family: ui-monospace, monospace;
}
.wb-template-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.wb-task-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wb-task-table th, .wb-task-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--wb-border); }
.wb-task-table th { font-size: 11px; color: var(--wb-muted); font-weight: 600; background: #f8fafc; }
.wb-task-table tbody tr { cursor: pointer; transition: background .12s; }
.wb-task-table tbody tr:hover { background: #f8fafc; }
.wb-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600;
}
.wb-status--running { background: #dbeafe; color: #1d4ed8; }
.wb-status--success { background: #d1fae5; color: #065f46; }
.wb-status--failed { background: #fee2e2; color: #b91c1c; }
.wb-status--queued { background: #f1f5f9; color: #475569; }

.wb-flow-hint {
  padding: 12px 16px; background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 8px; font-size: 12px; color: #92400e; margin-bottom: 16px;
  line-height: 1.5;
}
.wb-flow-hint strong { color: #78350f; }
.wb-flow-hint__path { color: #b45309; font-weight: 500; }

.wb-wizard-steps {
  display: flex; gap: 0; margin-bottom: 24px; counter-reset: wiz;
}
.wb-wizard-step {
  flex: 1; text-align: center; padding: 12px 8px; position: relative;
  font-size: 12px; font-weight: 500; color: var(--wb-muted);
  border-bottom: 3px solid var(--wb-border);
}
.wb-wizard-step.is-done { color: var(--wb-accent); border-bottom-color: var(--wb-accent); }
.wb-wizard-step.is-active { color: var(--wb-primary); border-bottom-color: var(--wb-primary); font-weight: 650; }
.wb-wizard-body { min-height: 280px; }
.wb-pipeline-nodes { list-style: none; margin: 0; padding: 0; }
.wb-pipeline-node {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--wb-border); border-radius: 8px; margin-bottom: 8px;
  background: #fafbff; cursor: pointer; transition: border-color .15s;
}
.wb-pipeline-node:hover { border-color: #93c5fd; }
.wb-pipeline-node.is-selected { border-color: var(--wb-primary); background: var(--wb-primary-soft); }
.wb-pipeline-node__num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--wb-primary);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wb-pipeline-node__body { flex: 1; }
.wb-pipeline-node__name { font-weight: 600; font-size: 13px; margin: 0 0 2px; }
.wb-pipeline-node__cfg { font-size: 11px; color: var(--wb-muted); margin: 0; }
.wb-wizard-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--wb-border); flex-wrap: wrap; gap: 10px;
}
.wb-node-config {
  background: #f8fafc; border: 1px solid var(--wb-border); border-radius: 8px;
  padding: 14px; margin-top: 12px;
}
.wb-node-config label { display: block; font-size: 11px; font-weight: 600; color: var(--wb-muted); margin: 10px 0 4px; }
.wb-node-config label:first-child { margin-top: 0; }
.wb-node-config input, .wb-node-config select, .wb-node-config textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--wb-border); border-radius: 6px;
  font-size: 13px; font-family: inherit;
}
.wb-log-timeline { list-style: none; margin: 0; padding: 0; }
.wb-log-item {
  padding: 12px 14px; border-left: 3px solid var(--wb-border); margin-bottom: 8px;
  background: #f8fafc; border-radius: 0 8px 8px 0;
}
.wb-log-item--ok { border-left-color: var(--wb-accent); }
.wb-log-item--fail { border-left-color: var(--wb-danger); background: #fef2f2; }
.wb-log-item__node { font-size: 11px; font-weight: 700; color: var(--wb-muted); margin-bottom: 4px; }

.wb-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.wb-modal-backdrop.is-open { display: flex; }
.wb-modal {
  background: var(--wb-surface); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  max-width: 480px; width: 100%; max-height: 90vh; overflow: auto;
}
.wb-modal__head { padding: 16px 20px; border-bottom: 1px solid var(--wb-border); display: flex; justify-content: space-between; align-items: center; }
.wb-modal__head h3 { margin: 0; font-size: 16px; }
.wb-modal__close { border: none; background: none; cursor: pointer; color: var(--wb-muted); padding: 4px; }
.wb-modal__body { padding: 20px; font-size: 14px; line-height: 1.55; }
.wb-modal__foot { padding: 14px 20px; border-top: 1px solid var(--wb-border); display: flex; justify-content: flex-end; gap: 8px; }

.wb-toast-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px;
}
.wb-toast {
  padding: 12px 18px; background: #0f172a; color: #f8fafc; border-radius: 8px;
  font-size: 13px; box-shadow: 0 8px 24px rgba(0,0,0,0.2); max-width: 360px;
  animation: wb-toast-in .25s ease;
}
.wb-toast--success { background: #065f46; }
.wb-toast--warn { background: #92400e; }
@keyframes wb-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.wb-interaction-map {
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  padding: 16px; margin-top: 20px; font-size: 12px; color: var(--wb-muted);
}
.wb-interaction-map h3 { margin: 0 0 10px; font-size: 13px; color: var(--wb-text); }
.wb-interaction-map details { margin-bottom: 8px; }
.wb-interaction-map summary { cursor: pointer; font-weight: 600; color: var(--wb-primary); }
.wb-interaction-map ul { margin: 8px 0 0 18px; padding: 0; line-height: 1.6; }

/* ── 订阅与专题 ── */
.wb-sub-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.wb-sub-badge--free { background: #f1f5f9; color: #64748b; }
.wb-sub-badge--active { background: #d1fae5; color: #065f46; }

.wb-sub-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 100%);
  color: #fff; border-radius: var(--wb-radius); padding: 24px; margin-bottom: 20px;
}
.wb-sub-hero h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.wb-sub-hero p { margin: 0 0 16px; opacity: 0.9; font-size: 14px; max-width: 640px; line-height: 1.5; }
.wb-sub-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wb-sub-hero .wb-btn--primary { background: #fff; color: #1e40af; }
.wb-sub-hero .wb-btn--ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; background: transparent; }

.wb-sub-cta-bar {
  position: sticky; bottom: 0; z-index: 50;
  padding: 14px 20px; background: #fffbeb; border-top: 2px solid #fbbf24;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.wb-sub-cta-bar__text { font-size: 13px; color: #92400e; flex: 1; min-width: 200px; }

.wb-topic-layout {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start;
}
@media (max-width: 900px) { .wb-topic-layout { grid-template-columns: 1fr; } }

.wb-topic-nav {
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius); padding: 10px; position: sticky; top: calc(var(--wb-nav-h) + 16px);
}
.wb-topic-nav button {
  display: block; width: 100%; text-align: left; padding: 10px 12px;
  border: none; background: none; border-radius: 6px; font-size: 13px;
  cursor: pointer; font-family: inherit; color: var(--wb-text); margin-bottom: 2px;
}
.wb-topic-nav button:hover { background: #f1f5f9; }
.wb-topic-nav button.is-active { background: var(--wb-primary-soft); color: var(--wb-primary); font-weight: 600; }
.wb-topic-nav button.is-locked { color: var(--wb-muted); }
.wb-topic-nav button.is-locked::after { content: ' 🔒'; font-size: 10px; }

.wb-locked-block {
  position: relative; border-radius: var(--wb-radius); overflow: hidden;
  border: 1px dashed #cbd5e1; margin-bottom: 16px;
}
.wb-locked-block__preview { padding: 16px; filter: none; }
.wb-locked-block__overlay {
  padding: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, #f8fafc 40%);
  border-top: 1px solid var(--wb-border);
}
.wb-locked-block--blur .wb-locked-block__preview {
  max-height: 120px; overflow: hidden;
  mask-image: linear-gradient(#000 40%, transparent);
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
}

.wb-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 12px 0; }
.wb-compare-table th, .wb-compare-table td { padding: 10px 12px; border: 1px solid var(--wb-border); text-align: center; }
.wb-compare-table th { background: #f8fafc; font-weight: 600; }
.wb-compare-table td:first-child { text-align: left; font-weight: 500; }

.wb-promo-card {
  display: flex; gap: 16px; align-items: center; padding: 16px 18px;
  background: linear-gradient(90deg, #eff6ff, #fff);
  border: 1px solid #bfdbfe; border-radius: var(--wb-radius); margin-bottom: 20px;
  cursor: pointer; transition: box-shadow .15s;
}
.wb-promo-card:hover { box-shadow: 0 4px 16px rgba(37,99,235,0.12); }
.wb-promo-card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--wb-primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.wb-promo-card__body { flex: 1; }
.wb-promo-card__title { font-weight: 650; margin: 0 0 4px; font-size: 15px; }
.wb-promo-card__sub { margin: 0; font-size: 12px; color: var(--wb-muted); }

.wb-inbox-item__type--topic { background: #fce7f3; color: #9d174d; }

.wb-sub-step { display: none; }
.wb-sub-step.is-active { display: block; }
.wb-sub-progress {
  height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; margin: 16px 0;
}
.wb-sub-progress__bar { height: 100%; background: var(--wb-primary); transition: width .3s; }

.wb-complete-page {
  text-align: center; padding: 48px 24px; max-width: 520px; margin: 0 auto;
}
.wb-complete-page__icon {
  width: 64px; height: 64px; border-radius: 50%; background: #d1fae5; color: #059669;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.wb-modal--wide { max-width: 560px; }
.wb-modal--xl {
  max-width: 920px;
  width: min(920px, calc(100vw - 40px));
}
.wb-modal--xl .wb-modal__body { padding: 20px 24px 24px; }

.wb-csub-steps {
  display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--wb-border);
}
.wb-csub-step-tab {
  flex: 1; padding: 12px 16px; text-align: center; font-size: 13px; font-weight: 600;
  color: var(--wb-muted); background: #f8fafc; border: none; cursor: default;
  font-family: inherit; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.wb-csub-step-tab.is-active { color: var(--wb-primary); background: var(--wb-surface); border-bottom-color: var(--wb-primary); }
.wb-csub-step-tab.is-done { color: var(--wb-accent); }

.wb-csub-name-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 10px 12px; align-items: center;
  margin-bottom: 20px;
}
.wb-csub-name-row label { font-size: 13px; font-weight: 600; color: var(--wb-text); }
.wb-csub-template-panel {
  grid-column: 2 / -1; padding: 12px; background: #f8fafc; border: 1px solid var(--wb-border);
  border-radius: 8px; margin-top: -8px; margin-bottom: 8px;
}
.wb-csub-template-panel label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.wb-csub-template-panel select { width: 100%; padding: 8px; border: 1px solid var(--wb-border); border-radius: 6px; font-size: 13px; font-family: inherit; }

.wb-csub-filters { display: flex; flex-direction: column; gap: 0; }
.wb-csub-filter-block { border-bottom: 1px solid #f1f5f9; }
.wb-csub-filter-block:last-child { border-bottom: none; }
.wb-csub-filter-block .wb-csub-filter-row { border-bottom: none; }
.wb-csub-filter-block .wb-csub-help { padding: 0 0 12px 112px; }
.wb-csub-filter-row {
  display: grid; grid-template-columns: 100px 1fr 52px; gap: 10px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #f1f5f9;
}
.wb-csub-filter-row:last-child { border-bottom: none; }
.wb-csub-filter-row__label { font-size: 13px; font-weight: 600; color: var(--wb-text); white-space: nowrap; }
.wb-csub-filter-row__main { display: flex; gap: 8px; align-items: center; min-width: 0; }
.wb-csub-input {
  flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--wb-border); border-radius: 6px;
  font-size: 13px; font-family: inherit;
}
.wb-csub-input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.wb-csub-logic-btn {
  width: 52px; padding: 8px 4px; border: 1px solid var(--wb-border); border-radius: 6px;
  background: #f1f5f9; font-size: 12px; font-weight: 700; color: var(--wb-primary);
  cursor: pointer; font-family: inherit;
}
.wb-csub-logic-btn:hover { background: #e0e7ff; border-color: #93c5fd; }
.wb-csub-logic-spacer { width: 52px; }
.wb-csub-help {
  font-size: 11px; color: var(--wb-muted); margin-top: 4px; line-height: 1.4;
}

.wb-csub-delivery { display: flex; flex-direction: column; gap: 16px; }
.wb-csub-delivery-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid #f1f5f9;
}
.wb-csub-delivery-row:last-child { border-bottom: none; }
.wb-csub-delivery-row label { font-size: 13px; font-weight: 600; }
.wb-csub-delivery-row .wb-csub-input { max-width: 100%; }
.wb-csub-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.wb-csub-check input { width: 16px; height: 16px; }
.wb-csub-preview {
  margin-top: 16px; padding: 12px 14px; background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 8px; font-size: 12px; color: #1e40af; line-height: 1.5;
}

.wb-evidence-teaser { padding: 10px 0; border-bottom: 1px solid var(--wb-border); font-size: 13px; }
.wb-evidence-teaser:last-child { border-bottom: none; }
.wb-evidence-teaser--locked { color: var(--wb-muted); font-style: italic; }

/* ── 用户账号 ── */
.wb-user-menu { position: relative; margin-left: 4px; }
.wb-user-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06); color: #e2e8f0; cursor: pointer; font-family: inherit;
  font-size: 12px; transition: background .15s;
}
.wb-user-trigger:hover { background: rgba(255,255,255,0.12); }
.wb-user-avatar {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, #3b82f6, #0d9488);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.wb-user-meta { text-align: left; line-height: 1.25; max-width: 120px; }
.wb-user-meta__name { display: block; font-weight: 600; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-user-meta__org { display: block; font-size: 10px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-user-trigger__chev { opacity: .7; flex-shrink: 0; }
.wb-user-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
  background: #fff; color: var(--wb-text); border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius); box-shadow: 0 8px 32px rgba(15,23,42,0.15); z-index: 200; overflow: visible;
}
.wb-user-dropdown.is-open { display: block; }
.wb-user-dropdown__head { padding: 14px 16px; background: #f8fafc; border-bottom: 1px solid var(--wb-border); }
.wb-user-dropdown__head strong { display: block; font-size: 14px; }
.wb-user-dropdown__head span { font-size: 11px; color: var(--wb-muted); }
.wb-user-dropdown__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px;
  border: none; background: none; font-family: inherit; font-size: 13px; color: var(--wb-text);
  cursor: pointer; text-align: left;
}
.wb-user-dropdown__item:hover { background: #f1f5f9; }
.wb-user-dropdown__item--danger { color: var(--wb-danger); }
.wb-user-dropdown__sep { height: 1px; background: var(--wb-border); margin: 4px 0; }
.wb-user-dropdown__submenu { position: relative; }
.wb-user-dropdown__submenu-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 16px; border: none; background: none; font-family: inherit; font-size: 13px;
  color: var(--wb-text); cursor: pointer; text-align: left;
}
.wb-user-dropdown__submenu-trigger:hover { background: #f1f5f9; }
.wb-user-dropdown__submenu-trigger .trigger-label { display: flex; align-items: center; gap: 10px; }
.wb-user-dropdown__submenu-trigger .chev { width: 14px; height: 14px; color: #94a3b8; flex-shrink: 0; }
.wb-user-dropdown__submenu-items {
  display: none; position: absolute; right: 100%; top: 0; min-width: 190px; max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--wb-border); border-radius: 8px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.15); z-index: 210;
}
.wb-user-dropdown__submenu:hover .wb-user-dropdown__submenu-items { display: block; }
.wb-login-hint {
  margin-top: 12px; padding: 10px 12px; background: #f8fafc; border-radius: 8px;
  font-size: 12px; color: var(--wb-muted); line-height: 1.5;
}
.wb-login-hint code { background: #e2e8f0; padding: 1px 5px; border-radius: 4px; font-size: 11px; }
body.wb-body--guest .wb-topbar__actions .wb-btn--primary { opacity: .85; }

/* ── 专题库布局 ── */
.wb-sub-hub-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px;
}
@media (max-width: 900px) { .wb-sub-hub-stats { grid-template-columns: repeat(2, 1fr); } }
.wb-sub-hub-stat {
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  padding: 14px 16px;
}
.wb-sub-hub-stat__val { font-size: 22px; font-weight: 700; margin: 0 0 2px; }
.wb-sub-hub-stat__lbl { font-size: 12px; color: var(--wb-muted); margin: 0; }

.wb-sub-hub-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start;
}
@media (max-width: 960px) { .wb-sub-hub-layout { grid-template-columns: 1fr; } }

.wb-sub-hub-sidebar {
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  padding: 14px; position: sticky; top: calc(var(--wb-nav-h) + 16px);
}
.wb-sub-hub-sidebar h3 {
  margin: 0 0 10px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--wb-muted);
}
.wb-sub-hub-sidebar h3:not(:first-child) { margin-top: 18px; }
.wb-sub-filter-btn {
  display: block; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 4px;
  border: none; background: none; border-radius: 6px; font-size: 13px; font-family: inherit;
  color: var(--wb-text); cursor: pointer;
}
.wb-sub-filter-btn:hover { background: #f1f5f9; }
.wb-sub-filter-btn.is-active { background: var(--wb-primary-soft); color: var(--wb-primary); font-weight: 600; }
.wb-sub-filter-btn__count { float: right; font-size: 11px; color: var(--wb-muted); }

.wb-sub-my-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 24px;
}
.wb-sub-my-card {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--wb-surface); border: 1px solid #86efac; border-radius: var(--wb-radius);
  cursor: pointer; transition: box-shadow .15s;
}
.wb-sub-my-card:hover { box-shadow: var(--wb-shadow); }

.wb-topic-catalog {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.wb-topic-card {
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  overflow: hidden; cursor: pointer; transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.wb-topic-card:hover { box-shadow: var(--wb-shadow); transform: translateY(-2px); }
.wb-topic-card__cover {
  height: 72px; padding: 14px 16px; color: #fff; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.wb-topic-card__cover--teal { background: linear-gradient(135deg, #1e3a8a, #0f766e); }
.wb-topic-card__cover--amber { background: linear-gradient(135deg, #b45309, #dc2626); }
.wb-topic-card__cover--rose { background: linear-gradient(135deg, #9d174d, #7c3aed); }
.wb-topic-card__cover--slate { background: linear-gradient(135deg, #334155, #1e293b); }
.wb-topic-card__badges { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.wb-topic-card__badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px;
  background: rgba(255,255,255,0.22); color: #fff;
}
.wb-topic-card__cat { font-size: 11px; opacity: .85; margin: 0 0 2px; }
.wb-topic-card__name { font-size: 15px; font-weight: 700; margin: 0; line-height: 1.3; }
.wb-topic-card__body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.wb-topic-card__tagline { font-size: 12px; color: var(--wb-muted); margin: 0 0 12px; line-height: 1.45; flex: 1; }
.wb-topic-card__metrics { display: flex; gap: 12px; font-size: 11px; color: var(--wb-muted); margin-bottom: 12px; }
.wb-topic-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--wb-border);
}
.wb-topic-card__subs { font-size: 11px; color: var(--wb-muted); }

.wb-topic-strip { margin-bottom: 20px; }
.wb-topic-strip__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.wb-topic-strip__head h2 { margin: 0; font-size: 15px; font-weight: 650; }
.wb-topic-strip__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (max-width: 900px) { .wb-topic-strip__grid { grid-template-columns: 1fr; } }
.wb-topic-strip-mini {
  display: flex; gap: 12px; padding: 14px 16px; background: var(--wb-surface);
  border: 1px solid var(--wb-border); border-radius: var(--wb-radius); cursor: pointer;
  transition: box-shadow .15s, border-color .15s;
}
.wb-topic-strip-mini:hover { box-shadow: var(--wb-shadow); border-color: #bfdbfe; }
.wb-topic-strip-mini__icon {
  width: 40px; height: 40px; border-radius: 10px; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.wb-topic-strip-mini__icon--teal { background: linear-gradient(135deg, #1e3a8a, #0f766e); }
.wb-topic-strip-mini__icon--amber { background: linear-gradient(135deg, #b45309, #dc2626); }
.wb-topic-strip-mini__icon--rose { background: linear-gradient(135deg, #9d174d, #7c3aed); }
.wb-topic-strip-mini__icon--slate { background: linear-gradient(135deg, #334155, #1e293b); }
.wb-topic-strip-mini__body { flex: 1; min-width: 0; }

/* ── Recommended subscriptions ── */
.wb-rec-sub { margin-top: 24px; }
.wb-rec-sub__head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.wb-rec-sub__icon {
  width: 18px; height: 18px; color: #dc2626; vertical-align: -3px; margin-right: 4px;
}
.wb-rec-sub__hint { font-size: 12px; color: var(--wb-muted); font-weight: 400; }
.wb-rec-sub__body { padding-top: 4px !important; }
.wb-rec-sub-tabs {
  display: flex; flex-wrap: wrap; gap: 20px;
  border-bottom: 1px solid var(--wb-border); margin-bottom: 16px; padding-bottom: 0;
}
.wb-rec-sub-tab {
  background: none; border: none; padding: 0 0 10px; margin: 0;
  font-size: 14px; color: var(--wb-muted); font-weight: 500; cursor: pointer;
  font-family: inherit; position: relative;
}
.wb-rec-sub-tab:hover { color: var(--wb-text); }
.wb-rec-sub-tab.is-active {
  color: var(--wb-primary); font-weight: 600;
}
.wb-rec-sub-tab.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--wb-primary); border-radius: 2px 2px 0 0;
}
.wb-rec-sub-pills {
  display: flex; flex-wrap: wrap; gap: 10px 12px;
}
.wb-rec-sub-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: 8px;
  font-size: 13px; color: var(--wb-text); cursor: pointer; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.wb-rec-sub-pill:hover {
  border-color: #93c5fd; box-shadow: 0 1px 4px rgba(37, 99, 235, 0.12);
}
.wb-rec-sub-pill__badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: var(--wb-primary); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.4;
  flex-shrink: 0;
}
.wb-rec-sub-pill__name { font-weight: 500; white-space: nowrap; }
.wb-rec-sub-pill__count {
  font-size: 12px; color: var(--wb-muted); font-weight: 600; margin-left: 2px;
}
.wb-topic-strip-mini__title { font-weight: 600; font-size: 13px; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-topic-strip-mini__sub { font-size: 11px; color: var(--wb-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wb-sub-empty {
  text-align: center; padding: 48px 24px; color: var(--wb-muted); font-size: 13px;
  background: var(--wb-surface); border: 1px dashed var(--wb-border); border-radius: var(--wb-radius);
}

/* ── 主题事件库 ── */
.wb-evlib-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px;
}
@media (max-width: 1100px) { .wb-evlib-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .wb-evlib-stats { grid-template-columns: repeat(2, 1fr); } }
.wb-evlib-source-tabs {
  display: flex; gap: 4px; margin-bottom: 12px; padding: 4px; background: #f1f5f9; border-radius: 8px; width: fit-content;
}
.wb-evlib-source-tab {
  padding: 8px 16px; font-size: 13px; font-weight: 500; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; font-family: inherit; color: var(--wb-muted);
}
.wb-evlib-source-tab:hover { color: var(--wb-text); }
.wb-evlib-source-tab.is-active { background: #fff; color: var(--wb-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.wb-evlib-stat {
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  padding: 14px 16px; box-shadow: var(--wb-shadow);
}
.wb-evlib-stat--warn { border-color: #fecaca; background: #fffbfb; }
.wb-evlib-stat__label { margin: 0 0 4px; font-size: 12px; color: var(--wb-muted); }
.wb-evlib-stat__val { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.wb-evlib-stat__hint { margin: 4px 0 0; font-size: 11px; color: var(--wb-muted); }
.wb-evlib-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start;
}
@media (max-width: 1000px) { .wb-evlib-layout { grid-template-columns: 1fr; } }
.wb-evlib-sidebar {
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  box-shadow: var(--wb-shadow); padding: 12px; position: sticky; top: calc(var(--wb-nav-h) + 16px);
}
.wb-evlib-side-block { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.wb-evlib-side-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.wb-evlib-side-block h3 { margin: 0 0 8px; font-size: 11px; font-weight: 700; color: var(--wb-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.wb-evlib-filter-list { list-style: none; margin: 0; padding: 0; }
.wb-evlib-filter {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 7px 10px; margin-bottom: 2px; border: none; border-radius: 8px; background: transparent;
  font-size: 13px; cursor: pointer; text-align: left; font-family: inherit; color: var(--wb-text);
}
.wb-evlib-filter:hover { background: #f1f5f9; }
.wb-evlib-filter.is-active { background: var(--wb-primary-soft); color: var(--wb-primary); font-weight: 600; }
.wb-evlib-filter__count { font-size: 11px; color: var(--wb-muted); }
.wb-chart-evlib-mini { height: 140px; width: 100%; }
.wb-evlib-main {
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  box-shadow: var(--wb-shadow); padding: 14px 16px 16px;
}
.wb-evlib-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.wb-evlib-search {
  flex: 1; min-width: 180px; padding: 8px 12px; border: 1px solid var(--wb-border); border-radius: 8px; font-size: 14px;
}
.wb-evlib-select { padding: 8px 10px; border: 1px solid var(--wb-border); border-radius: 8px; font-size: 13px; font-family: inherit; }
.wb-evlib-view-toggle {
  display: inline-flex; border: 1px solid var(--wb-border); border-radius: 8px; overflow: hidden;
}
.wb-evlib-view-toggle button {
  border: none; background: #fff; padding: 8px 10px; cursor: pointer; color: var(--wb-muted);
}
.wb-evlib-view-toggle button.is-active { background: var(--wb-primary-soft); color: var(--wb-primary); }
.wb-evlib-results-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
  font-size: 12px; color: var(--wb-muted);
}
.wb-evlib-results-head__hint { font-size: 11px; }
.wb-evlib-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.wb-evlib-list-wrap .wb-event-list { border: 1px solid var(--wb-border); border-radius: 12px; overflow: hidden; box-shadow: var(--wb-shadow); }
.wb-event-item--rich { cursor: pointer; }
.wb-event-item__snippet { margin: 0 0 6px; font-size: 12px; color: var(--wb-muted); line-height: 1.4; }
.wb-event-item__body { min-width: 0; }

/* ── 主题事件库 · 事件卡片（布局参考订阅专题库，按风险着色区分） ── */
.wb-evlib-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius);
  background: var(--wb-surface);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.wb-evlib-card:hover {
  box-shadow: var(--wb-shadow);
  transform: translateY(-2px);
}
.wb-evlib-card:focus-visible {
  outline: 2px solid var(--wb-primary);
  outline-offset: 2px;
}
.wb-evlib-card__head {
  position: relative;
  padding: 12px 16px 14px;
  color: var(--wb-text);
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #f8fafc;
  border-bottom: 1px solid var(--wb-border);
}
.wb-evlib-card--risk-high .wb-evlib-card__head {
  background: linear-gradient(180deg, #fecaca 0%, #fee2e2 50%, #fef2f2 100%);
  border-bottom-color: #f87171;
}
.wb-evlib-card--risk-mid .wb-evlib-card__head {
  background: linear-gradient(180deg, #fed7aa 0%, #ffedd5 50%, #fff7ed 100%);
  border-bottom-color: #fb923c;
}
.wb-evlib-card--risk-low .wb-evlib-card__head {
  background: linear-gradient(180deg, #bae6fd 0%, #e0f2fe 50%, #f0f9ff 100%);
  border-bottom-color: #38bdf8;
}
.wb-evlib-card__head-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wb-evlib-card__head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.wb-evlib-card__head .wb-evlib-card__category {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.wb-evlib-card__head .wb-evlib-card__status,
.wb-evlib-card__head .wb-evlib-momentum {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.wb-evlib-card__head .wb-evlib-card__status--escalate { background: #fee2e2; color: #b91c1c; }
.wb-evlib-card__head .wb-evlib-card__status--new { background: #dbeafe; color: #1d4ed8; }
.wb-evlib-card__head .wb-evlib-card__status--active { background: #d1fae5; color: #047857; }
.wb-evlib-card__head .wb-evlib-card__status--cool { background: #f1f5f9; color: #64748b; }
.wb-evlib-card__head .wb-evlib-card__status--default { background: #e2e8f0; color: #475569; }
.wb-evlib-card__head .wb-evlib-momentum--up { background: #fee2e2; color: #dc2626; }
.wb-evlib-card__head .wb-evlib-momentum--down { background: #dcfce7; color: #059669; }
.wb-evlib-card__head .wb-evlib-momentum--stable { background: #f1f5f9; color: #64748b; }
.wb-evlib-card__head-badges .wb-evlib-card__pin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.wb-evlib-card__head-badges .wb-evlib-card__pin svg { width: 11px; height: 11px; }
.wb-evlib-card__head-badges .wb-evlib-card__user-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.wb-evlib-card__pin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff7ed;
  color: #c2410c;
}
.wb-evlib-card__pin svg { width: 11px; height: 11px; }
.wb-evlib-card__user-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #dbeafe;
  color: #1d4ed8;
}
.wb-evlib-momentum { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.wb-evlib-momentum--up { background: #fef2f2; color: #dc2626; }
.wb-evlib-momentum--down { background: #f0fdf4; color: #059669; }
.wb-evlib-momentum--stable { background: #f1f5f9; color: #64748b; }
.wb-evlib-card__head .wb-evlib-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--wb-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wb-evlib-card:hover .wb-evlib-card__head .wb-evlib-card__title { color: var(--wb-primary); }
.wb-evlib-card__status--escalate { background: #fef2f2; color: #b91c1c; }
.wb-evlib-card__status--new { background: #eff6ff; color: #1d4ed8; }
.wb-evlib-card__status--active { background: #ecfdf5; color: #047857; }
.wb-evlib-card__status--cool { background: #f8fafc; color: #64748b; }
.wb-evlib-card__status--default { background: #f1f5f9; color: #475569; }
.wb-evlib-card__body {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}
.wb-evlib-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--wb-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wb-evlib-card__summary {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--wb-muted);
  line-height: 1.45;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wb-evlib-card__metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--wb-muted);
}
.wb-evlib-card__metric { display: flex; flex-direction: column; gap: 2px; min-width: 48px; }
.wb-evlib-card__metric-val { font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--wb-text); }
.wb-evlib-card__metric-lbl { font-size: 10px; color: var(--wb-muted); font-weight: 500; }
.wb-evlib-card__metric--heat { min-width: 56px; }
.wb-evlib-card__heat-bar {
  height: 4px;
  margin-top: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.wb-evlib-card__heat-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}
.wb-evlib-card__spark-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-width: 0;
  padding-bottom: 2px;
}
.wb-evlib-spark { color: #2563eb; flex-shrink: 0; display: block; }
.wb-evlib-spark--filled { opacity: 0.95; }
.wb-evlib-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.wb-evlib-card__tag {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}
.wb-evlib-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--wb-border);
  font-size: 11px;
  color: var(--wb-muted);
}
.wb-evlib-card__articles-link {
  border: none; background: #eff6ff; color: var(--wb-primary); font: inherit;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  cursor: pointer; flex-shrink: 0;
}
.wb-evlib-card__articles-link:hover { background: #dbeafe; }
.wb-evlib-card__articles-link--inline { padding: 2px 8px; font-size: 10px; }
.wb-evlib-card__risk {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.wb-evlib-card__risk--high { background: #fef2f2; color: #b91c1c; }
.wb-evlib-card__risk--mid { background: #fff7ed; color: #c2410c; }
.wb-evlib-card__risk--low { background: #ecfdf5; color: #047857; }
.wb-evlib-card__sent { color: #64748b; }
.wb-evlib-card__mix {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.wb-evlib-card__mix-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wb-evlib-card__mix-dot--news { background: #2563eb; }
.wb-evlib-card__mix-dot--social { background: #ea580c; }
.wb-evlib-card__mix-sep { opacity: 0.5; margin: 0 2px; }
.wb-evlib-card__time {
  margin-left: auto;
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
}
.wb-evlib-status { font-weight: 600; color: var(--wb-primary); }
.wb-evlib-empty { text-align: center; padding: 40px 16px; color: var(--wb-muted); font-size: 14px; }
.wb-evlib-key-facts { margin: 16px 0; padding: 12px 14px; background: #f8fafc; border-radius: 8px; }
.wb-evlib-key-facts__title { margin: 0 0 8px; font-size: 12px; font-weight: 650; color: var(--wb-muted); }
.wb-evlib-key-facts ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.wb-evlib-mix-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 11px; color: var(--wb-muted); }
.wb-evlib-mix-bar__track { flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.wb-evlib-mix-bar__news { height: 100%; background: #2563eb; border-radius: 4px 0 0 4px; }
.wb-evlib-source-bars { display: flex; flex-direction: column; gap: 10px; }
.wb-evlib-source-row { display: grid; grid-template-columns: 48px 1fr 40px; gap: 10px; align-items: center; font-size: 12px; }
.wb-evlib-source-track { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.wb-evlib-source-track div { height: 100%; border-radius: 4px; }
.wb-evlib-cluster-meta p { margin: 0 0 8px; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.wb-evlib-cluster-meta span { color: var(--wb-muted); }
.wb-evlib-priority-flag { color: #dc2626 !important; font-weight: 600; justify-content: flex-start !important; gap: 6px; }
.wb-evlib-muted { color: var(--wb-muted); }

/* ── 事件详情 · 富内容 Tab ── */
.wb-ev-detail-brief { font-size: 13px; line-height: 1.55; color: var(--wb-muted); margin: 0 0 16px; }
.wb-ev-stakeholders { margin: 16px 0; }
.wb-ev-stakeholders__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wb-ev-stakeholder {
  padding: 10px 12px; background: #f8fafc; border-radius: 8px; border: 1px solid var(--wb-border); font-size: 12px;
}
.wb-ev-stakeholder__role { display: block; font-size: 10px; font-weight: 700; color: var(--wb-accent); margin-bottom: 4px; }
.wb-ev-stakeholder strong { display: block; margin-bottom: 4px; font-size: 13px; }
.wb-ev-stakeholder p { margin: 0; color: var(--wb-muted); line-height: 1.45; }
.wb-ev-frames { margin: 16px 0; }
.wb-ev-frame { margin-bottom: 12px; }
.wb-ev-frame__head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.wb-ev-frame__bar { height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; margin-bottom: 4px; }
.wb-ev-frame__bar div { height: 100%; background: var(--wb-primary); border-radius: 3px; }
.wb-ev-frame__desc { margin: 0; font-size: 11px; color: var(--wb-muted); }
.wb-ev-mix-detail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 11px; color: var(--wb-muted); }
.wb-ev-mix-detail span { padding: 2px 8px; background: #f1f5f9; border-radius: 4px; }
.wb-timeline--rich .wb-timeline__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.wb-timeline__type {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  background: var(--wb-primary-soft); color: var(--wb-primary);
}
.wb-timeline__item--wire .wb-timeline__type { background: #ede9fe; color: #6d28d9; }
.wb-timeline__item--diplomacy .wb-timeline__type { background: #ecfdf5; color: #059669; }
.wb-timeline__item--risk .wb-timeline__type { background: #fef2f2; color: #dc2626; }
.wb-timeline__item--social .wb-timeline__type { background: #fff7ed; color: #ea580c; }
.wb-timeline__source { display: block; font-size: 11px; color: var(--wb-muted); margin-top: 4px; }

/* 时间线 · 多视图切换（科技风） */
.wb-panel__head--timeline {
  flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.wb-panel__head--timeline .wb-panel__head-main {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.wb-ev-timeline-view-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(56, 189, 248, 0.25); border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}
.wb-ev-timeline-view-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: none; background: transparent; padding: 7px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: #94a3b8; cursor: pointer; font-family: inherit;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.wb-ev-timeline-view-btn i { width: 14px; height: 14px; }
.wb-ev-timeline-view-btn:hover { color: #e2e8f0; background: rgba(255,255,255,0.06); }
.wb-ev-timeline-view-btn.is-active {
  color: #e0f2fe; background: rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25), inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}
.wb-ev-timeline-view-hint {
  margin: 0 0 14px; font-size: 12px; color: var(--wb-muted); line-height: 1.45;
}
.wb-ev-timeline-view-hint--tech {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  background: linear-gradient(90deg, rgba(56,189,248,0.06) 0%, transparent 100%);
  border-left: 2px solid #38bdf8; color: #475569; font-size: 11px; font-weight: 500;
}
.wb-ev-timeline-view-hint--tech i { width: 14px; height: 14px; color: #38bdf8; flex-shrink: 0; }
.wb-ev-timeline-view-panel { display: none; }
.wb-ev-timeline-view-panel.is-active { display: block; animation: wb-lane-fade 0.25s ease; }
.wb-ev-timeline-linear-wrap { padding: 4px 0; }
.wb-ev-timeline-linear-lanes { margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(56,189,248,0.25); }
.wb-ev-timeline-linear-lanes .wb-panel--timeline-lanes { border: none; box-shadow: none; margin: 0; }
.wb-ev-timeline-linear-lanes .wb-panel--timeline-lanes .wb-panel__body { padding: 0; }

/* 线性 · 科技时间轴 */
.wb-timeline--tech li {
  border-left-color: rgba(56, 189, 248, 0.35);
}
.wb-timeline--tech li::before {
  background: #0f172a; border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 0 10px rgba(56, 189, 248, 0.45);
}

/* 树杈视图 · 科技树 */
.wb-ev-timeline-tree--tech { padding: 4px 0 8px; }
.wb-ev-timeline-tree__root {
  position: relative; text-align: center; padding: 20px 20px 18px; border-radius: 14px;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}
.wb-ev-timeline-tree__root-orbit {
  position: absolute; inset: -40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.12) 0%, transparent 65%);
  animation: wb-kg-pulse 4s ease-in-out infinite;
}
.wb-ev-timeline-tree__root-badge {
  position: relative; display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.12em;
  padding: 3px 10px; border-radius: 4px;
  background: rgba(56, 189, 248, 0.15); color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35); margin-bottom: 8px;
}
.wb-ev-timeline-tree__root-title {
  position: relative; display: block; font-size: 16px; font-weight: 700; color: #f1f5f9; margin-bottom: 6px;
}
.wb-ev-timeline-tree__root-meta { position: relative; font-size: 11px; color: #94a3b8; }
.wb-ev-timeline-tree__svg {
  display: block; width: 100%; height: 48px; margin: -4px 0 0;
}
.wb-ev-tree-edge {
  fill: none; stroke: url(#wb-tree-edge-grad); stroke-width: 2;
  stroke-linecap: round;
}
.wb-ev-tree-edge--trunk { stroke: #38bdf8; stroke-width: 2.5; filter: drop-shadow(0 0 4px rgba(56,189,248,0.5)); }
.wb-ev-timeline-tree__branches {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 4px;
}
.wb-ev-timeline-tree__branch {
  border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--wb-border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wb-ev-timeline-tree__branch:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.1);
}
.wb-ev-timeline-tree__branch-port {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; background: linear-gradient(90deg, rgba(56,189,248,0.08) 0%, transparent 100%);
  border-bottom: 1px solid #f1f5f9;
}
.wb-ev-timeline-tree__branch-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
  background: var(--branch-color, #38bdf8);
  box-shadow: 0 0 8px var(--branch-color, #38bdf8);
}
.wb-ev-timeline-tree__branch-head { flex: 1; min-width: 0; }
.wb-ev-timeline-tree__branch-name { font-size: 13px; font-weight: 700; color: var(--wb-text); }
.wb-ev-timeline-tree__branch-count {
  margin-left: 8px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: #0f172a; color: #7dd3fc;
}
.wb-ev-timeline-tree__branch-summary {
  margin: 6px 0 0; font-size: 11px; color: var(--wb-muted); line-height: 1.4;
}
.wb-ev-timeline-tree__nodes {
  list-style: none; margin: 0; padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.wb-ev-timeline-tree__node { margin: 0; }
.wb-ev-timeline-tree__more {
  font-size: 11px; color: var(--wb-muted); text-align: center; padding: 6px;
}

/* 知识图谱画布 */
.wb-ev-timeline-graph-wrap { padding: 2px 0 8px; }
.wb-kg-canvas {
  position: relative; width: 100%; max-width: 100%; margin: 0 auto;
  border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #1e3a5f 0%, #0f172a 45%, #020617 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 0 60px rgba(56, 189, 248, 0.04), 0 12px 40px rgba(15, 23, 42, 0.25);
}
.wb-kg-canvas__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.45;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.wb-kg-canvas__glow {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.wb-kg-canvas__glow--a { width: 280px; height: 280px; left: 20%; top: 15%; background: rgba(56,189,248,0.12); }
.wb-kg-canvas__glow--b { width: 220px; height: 220px; right: 10%; bottom: 10%; background: rgba(129,140,248,0.1); }
.wb-kg-canvas__svg {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.wb-kg-edge {
  fill: none; stroke: url(#wb-kg-edge-grad); stroke-width: 1.5; stroke-linecap: round;
  opacity: 0.75;
}
.wb-kg-edge--hub { stroke-width: 2; opacity: 1; filter: drop-shadow(0 0 3px rgba(56,189,248,0.6)); }
.wb-kg-canvas__nodes {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  pointer-events: none;
}
.wb-kg-node {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: auto; text-align: center;
  background: rgba(15, 23, 42, 0.92); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 8px 10px; min-width: 88px; max-width: 140px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}
.wb-kg-node:hover {
  transform: translate(-50%, -50%) scale(1.04);
  border-color: var(--kg-node-color, #38bdf8);
  box-shadow: 0 0 20px color-mix(in srgb, var(--kg-node-color, #38bdf8) 40%, transparent);
  z-index: 5;
}
.wb-kg-node__ring {
  position: absolute; inset: -3px; border-radius: 12px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--kg-node-color, #38bdf8) 50%, transparent);
  opacity: 0.6;
}
.wb-kg-node--hub {
  min-width: 120px; max-width: 160px; padding: 12px 14px; border-radius: 50%;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35), inset 0 0 20px rgba(56, 189, 248, 0.08);
  z-index: 3;
}
.wb-kg-node--hub::before {
  content: ''; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  animation: wb-kg-orbit 12s linear infinite;
}
.wb-kg-node--hub::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(56, 189, 248, 0.2);
}
.wb-kg-canvas__orbit {
  fill: none; stroke: rgba(56, 189, 248, 0.12); stroke-width: 1; stroke-dasharray: 6 8;
}
.wb-kg-canvas__orbit--inner { stroke: rgba(129, 140, 248, 0.15); stroke-dasharray: 4 10; }
.wb-kg-edge-dot { fill: #38bdf8; filter: drop-shadow(0 0 4px rgba(56,189,248,0.8)); }
.wb-kg-edge-dot--branch { fill: #818cf8; }
.wb-kg-node--branch {
  min-width: 96px; max-width: 120px; border-radius: 12px;
  border-color: color-mix(in srgb, var(--kg-node-color) 55%, transparent);
  z-index: 2;
}
.wb-kg-node--leaf, .wb-kg-node--xs {
  min-width: 72px; max-width: 110px; padding: 6px 8px; border-radius: 8px;
  z-index: 1;
}
.wb-kg-node--more {
  min-width: auto; padding: 4px 10px; font-size: 10px; font-weight: 700;
  color: #94a3b8; border-style: dashed; border-color: rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.6);
}
.wb-kg-node__type {
  display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--kg-node-color, #7dd3fc); margin-bottom: 3px;
}
.wb-kg-node__title {
  margin: 0 0 3px; font-size: 11px; font-weight: 600; line-height: 1.35; color: #f1f5f9;
}
.wb-kg-node--hub .wb-kg-node__title { font-size: 12px; }
.wb-kg-node__meta {
  display: block; font-size: 9px; color: #64748b; line-height: 1.3;
}
.wb-ev-timeline-tree__node .wb-kg-node {
  position: static; transform: none; max-width: none; width: 100%; text-align: left;
}
.wb-ev-timeline-tree__node .wb-kg-node:hover { transform: scale(1.01); }

/* 传播链路条 */
.wb-kg-prop {
  margin-bottom: 14px; padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(15,23,42,0.04) 0%, rgba(56,189,248,0.06) 100%);
  border: 1px solid rgba(56, 189, 248, 0.15);
}
.wb-kg-prop__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #64748b; margin-bottom: 10px;
}
.wb-kg-prop__label i { width: 12px; height: 12px; color: #38bdf8; }
.wb-kg-prop__chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.wb-kg-prop__chip {
  flex: 1 1 100px; min-width: 90px; padding: 8px 10px; border-radius: 8px;
  background: #fff; border: 1px solid var(--wb-border); font-size: 11px;
}
.wb-kg-prop__chip span { display: block; font-size: 9px; font-weight: 700; color: #94a3b8; margin-bottom: 2px; }
.wb-kg-prop__chip strong { display: block; font-size: 11px; color: var(--wb-text); margin-bottom: 2px; }
.wb-kg-prop__chip small { color: var(--wb-muted); font-size: 10px; line-height: 1.3; }
.wb-kg-prop__chip--origin { border-color: #38bdf8; background: linear-gradient(135deg, #f0f9ff, #fff); }
.wb-kg-prop__arrow {
  width: 16px; height: 2px; background: linear-gradient(90deg, #94a3b8, #38bdf8);
  position: relative; flex-shrink: 0;
}
.wb-kg-prop__arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  border: 4px solid transparent; border-left-color: #38bdf8;
}

@keyframes wb-kg-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
@keyframes wb-kg-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.wb-ev-propagation { margin: 16px 0; }
.wb-ev-prop-hop { display: flex; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--wb-border); }
.wb-ev-prop-hop:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.wb-ev-prop-hop__n {
  width: 28px; height: 28px; border-radius: 50%; background: var(--wb-primary); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wb-ev-prop-hop__delay { font-size: 11px; color: var(--wb-muted); margin-left: 6px; }
.wb-ev-prop-hop__outlets { margin: 4px 0 0; font-size: 12px; color: var(--wb-muted); line-height: 1.45; }
.wb-ev-outlet-table { margin-top: 12px; font-size: 12px; }
.wb-ev-credibility-note { font-size: 12px; color: var(--wb-muted); margin: 16px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.wb-evidence-card--rich { padding: 14px 18px; }
.wb-evidence-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.wb-evidence-card__idx { font-size: 10px; font-weight: 700; color: var(--wb-muted); }
.wb-evidence-card__role { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: #eff6ff; color: var(--wb-primary); }
.wb-evidence-card__cred { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.wb-evidence-card__cred--a { background: #dcfce7; color: #15803d; }
.wb-evidence-card__cred--b { background: #fef9c3; color: #a16207; }
.wb-evidence-card__cred--c { background: #fee2e2; color: #b91c1c; }
.wb-related-card--rich { padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--wb-border); }
.wb-related-card--rich:hover { background: #f8fafc; }
.wb-related-card__rel { margin: 4px 0; }
.wb-related-card__rel-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: #f1f5f9; color: var(--wb-muted); }
.wb-related-card__reason { font-size: 12px; color: var(--wb-text); margin: 0 0 6px; line-height: 1.45; }
.wb-ev-topic-link {
  margin: 12px 16px 16px; padding: 14px 16px; border-radius: 8px; cursor: pointer;
  background: linear-gradient(90deg, #eff6ff, #fff); border: 1px solid #bfdbfe;
}
.wb-ev-topic-link:hover { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); }
.wb-ev-topic-link p { margin: 0; font-size: 13px; }

/* ── 数据加工 · 交付与着陆 ── */
.wb-panel--success { border-color: #bbf7d0; background: linear-gradient(180deg, #f0fdf4, #fff); }
.wb-panel--delivery { border-color: #86efac; }
.wb-panel--pipeline-done {
  border-color: #93c5fd; background: linear-gradient(90deg, #eff6ff, #f0fdf4);
  margin-bottom: 14px;
}
.wb-studio-task-ev { color: var(--wb-primary); font-weight: 600; }
.wb-inbox-item__sub--hint { color: #15803d; margin-top: 2px; }
.wb-studio-delivery { margin-bottom: 20px; }
.wb-studio-delivery__lead { font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.wb-studio-delivery__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--wb-muted); margin-bottom: 16px; }
.wb-studio-delivery__event-card {
  padding: 12px 14px; background: #f8fafc; border-radius: 8px; border-left: 3px solid var(--wb-primary);
  margin-bottom: 16px;
}
.wb-studio-delivery__event-title { margin: 0 0 4px; font-weight: 650; font-size: 14px; }
.wb-studio-delivery__event-sub { margin: 0; font-size: 12px; color: var(--wb-muted); }
.wb-studio-delivery__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
}
@media (max-width: 900px) { .wb-studio-delivery__grid { grid-template-columns: 1fr; } }
.wb-studio-delivery__h3 { margin: 0 0 10px; font-size: 13px; font-weight: 650; }
.wb-studio-writeback-table td:first-child { width: 28%; color: var(--wb-muted); font-weight: 500; }
.wb-studio-delivery__appendix { font-size: 12px; line-height: 1.5; margin: 10px 0 0; padding: 10px; background: #fff; border-radius: 6px; border: 1px solid var(--wb-border); }
.wb-studio-report-block {
  padding: 10px 12px; margin-bottom: 8px; background: #fff; border: 1px solid var(--wb-border); border-radius: 6px;
}
.wb-studio-report-block__title { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--wb-primary); }
.wb-studio-report-block__body { margin: 0; font-size: 12px; line-height: 1.45; color: var(--wb-text); }
.wb-studio-delivery__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wb-studio-deliverable {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 12px;
  border: 1px solid var(--wb-border); border-radius: 6px; background: #fff; cursor: pointer; font-family: inherit;
}
.wb-studio-deliverable:hover { border-color: #93c5fd; background: #eff6ff; }
.wb-studio-deliverable--static { cursor: default; color: var(--wb-muted); }
.wb-studio-delivery__flow { margin-top: 8px; font-size: 13px; }
.wb-studio-delivery__flow summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.wb-studio-delivery__steps { margin: 0; padding-left: 20px; line-height: 1.6; color: var(--wb-muted); }
.wb-studio-delivery__steps li { margin-bottom: 6px; }
.wb-studio-task-side p { margin: 0 0 10px; }
.wb-log-item--running .wb-log-item__node { color: #2563eb; }
.wb-evidence-card {
  display: block; padding: 14px 18px; border-bottom: 1px solid var(--wb-border);
  text-decoration: none; color: inherit;
}
.wb-evidence-card:hover { background: #f8fafc; text-decoration: none; }
.wb-evidence-card__title { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.wb-evidence-card__excerpt { margin: 0 0 8px; font-size: 12px; color: var(--wb-muted); line-height: 1.45; }
.wb-evidence-card__meta { font-size: 11px; color: var(--wb-muted); display: flex; gap: 12px; flex-wrap: wrap; }

/* 主题事件 · 聚合原文 */
.wb-obj-header__meta-link {
  border: none; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(37, 99, 235, 0.35); text-underline-offset: 2px;
}
.wb-obj-header__meta-link:hover { color: var(--wb-primary); }
.wb-ev-articles-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px;
}
.wb-ev-articles-search {
  flex: 1; min-width: 200px; padding: 8px 12px; border: 1px solid var(--wb-border);
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.wb-ev-articles-sort {
  padding: 8px 10px; border: 1px solid var(--wb-border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: #fff;
}
.wb-ev-articles-list { display: flex; flex-direction: column; gap: 10px; }
.wb-ev-article-card { border: 1px solid var(--wb-border); border-radius: 10px; }
.wb-ev-articles-empty { margin: 24px 0; text-align: center; color: var(--wb-muted); font-size: 13px; }
.wb-ev-articles-preview-list { display: flex; flex-direction: column; }
.wb-ev-articles-preview-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid #f1f5f9; text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.wb-ev-articles-preview-item:last-child { border-bottom: none; }
.wb-ev-articles-preview-item:hover { background: #f8fafc; }
.wb-ev-articles-preview-item__title {
  margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--wb-text);
}
.wb-ev-articles-preview-item__meta { margin: 0; font-size: 12px; color: var(--wb-muted); }
.wb-ev-articles-preview-item__arrow { flex-shrink: 0; font-size: 14px; color: var(--wb-muted); }
.wb-panel--ev-articles-preview { margin-bottom: 16px; }

/* ── 智库 ── */
.wb-think-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px;
}
@media (max-width: 900px) { .wb-think-stats { grid-template-columns: repeat(2, 1fr); } }
.wb-think-stat {
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  padding: 14px 16px; box-shadow: var(--wb-shadow);
}
.wb-think-stat--accent { border-color: #bfdbfe; background: #f8fbff; }
.wb-think-stat__label { margin: 0 0 4px; font-size: 12px; color: var(--wb-muted); }
.wb-think-stat__val { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.wb-think-stat__hint { margin: 4px 0 0; font-size: 11px; color: var(--wb-muted); }
.wb-think-layout {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start;
}
@media (max-width: 800px) { .wb-think-layout { grid-template-columns: 1fr; } }
.wb-think-sidebar {
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  box-shadow: var(--wb-shadow); padding: 12px; position: sticky; top: calc(var(--wb-nav-h) + 16px);
}
.wb-think-side-block { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
.wb-think-side-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.wb-think-side-block h3 {
  margin: 0 0 8px; font-size: 11px; font-weight: 700; color: var(--wb-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.wb-think-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.wb-think-search {
  flex: 1; min-width: 180px; padding: 8px 12px; border: 1px solid var(--wb-border); border-radius: 8px;
  font-size: 14px; font-family: inherit; box-sizing: border-box;
}
/* 工具栏内价格搜索/排序下拉 与「我的预设」下拉风格一致 */
.wb-think-toolbar .wb-input {
  height: auto; padding: 9px 10px; font-size: 14px;
  border: 1px solid var(--wb-border); border-radius: 8px;
  background: var(--wb-bg); color: var(--wb-text); outline: none; font-family: inherit; box-sizing: border-box;
}
.wb-think-toolbar .wb-input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.wb-think-filter-list { list-style: none; margin: 0; padding: 0; }
.wb-think-filter {
  display: block; width: 100%; padding: 7px 10px; margin-bottom: 2px; border: none; border-radius: 8px;
  background: transparent; font-size: 13px; cursor: pointer; text-align: left; font-family: inherit; color: var(--wb-text);
}
.wb-think-filter:hover { background: #f1f5f9; }
.wb-think-filter.is-active { background: var(--wb-primary-soft); color: var(--wb-primary); font-weight: 600; }
.wb-think-main {
  background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: var(--wb-radius);
  box-shadow: var(--wb-shadow); padding: 14px 16px; min-height: 320px;
}
.wb-think-results-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
  font-size: 12px; color: var(--wb-muted);
}
.wb-think-results-head__hint { font-size: 11px; }
.wb-think-shelf {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}
.wb-think-card {
  border: 1px solid var(--wb-border); border-radius: 10px; padding: 14px;
  background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.wb-think-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08); }
.wb-think-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wb-think-card__badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}
.wb-think-card__badge--可读 { background: #dcfce7; color: #15803d; }
.wb-think-card__badge--试读 { background: #fef3c7; color: #b45309; }
.wb-think-card__badge--订阅 { background: #ede9fe; color: #6d28d9; }
.wb-think-card__title { margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.wb-think-card__author { margin: 0 0 8px; font-size: 12px; color: var(--wb-muted); }
.wb-think-card__summary { margin: 0 0 10px; font-size: 12px; color: var(--wb-muted); line-height: 1.45; }
.wb-think-card__foot {
  display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--wb-muted); align-items: center;
}
.wb-think-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.wb-think-card__actions .wb-btn { font-size: 11px; padding: 4px 8px; }
.wb-think-empty { text-align: center; padding: 32px; color: var(--wb-muted); font-size: 13px; }

/* 智库报告详情 */
.wb-think-detail-view { min-height: 360px; }
.wb-think-detail__head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--wb-border);
}
.wb-think-detail__head-actions { display: flex; gap: 8px; }
.wb-think-detail-article { max-width: 720px; }
.wb-think-detail-article__top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px;
}
.wb-think-detail-article__title {
  margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em;
}
.wb-think-detail-article__author { margin: 0 0 10px; font-size: 13px; color: var(--wb-muted); }
.wb-think-detail-article__meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px;
  font-size: 12px; color: var(--wb-muted);
}
.wb-think-detail-article__lead {
  margin: 0 0 18px; padding: 12px 14px; background: #f8fafc; border-left: 3px solid var(--wb-primary);
  border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.6; color: var(--wb-text-secondary, #475569);
}
.wb-think-detail-article__body {
  font-size: 14px; line-height: 1.75; color: var(--wb-text);
}
.wb-think-detail-article__body p { margin: 0 0 14px; }
.wb-think-detail-article__body p:last-child { margin-bottom: 0; }
.wb-think-detail-article__body h1 { font-size: 1.35em; margin: 0 0 12px; font-weight: 700; }
.wb-think-detail-article__body h2 { font-size: 1.2em; margin: 0 0 10px; font-weight: 700; }
.wb-think-detail-article__body h3 { font-size: 1.05em; margin: 0 0 8px; font-weight: 650; }
.wb-think-detail-article__body ul,
.wb-think-detail-article__body ol { margin: 0 0 14px; padding-left: 1.5em; }
.wb-think-detail-article__body blockquote {
  margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid #cbd5e1;
  background: #f8fafc; color: var(--wb-muted);
}
.wb-think-detail-article__body a { color: var(--wb-primary); }
.wb-think-report-card__body-html ul,
.wb-think-report-card__body-html ol { margin: 0 0 8px; padding-left: 1.4em; }
.wb-think-detail-article__foot {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--wb-border); font-size: 12px; color: var(--wb-muted);
}

/* 智库上传表单 */
.wb-think-report-card-wrap { padding: 16px 20px; border-bottom: 1px solid var(--wb-border); }
.wb-think-report-card-wrap:last-child { border-bottom: none; }
.wb-think-report-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.wb-think-report-card__title { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.wb-think-report-card__author { margin: 0 0 8px; font-size: 12px; color: var(--wb-muted); }
.wb-think-report-card__summary { margin: 0; font-size: 13px; color: var(--wb-text-secondary, #475569); line-height: 1.55; }
.wb-think-report-card__foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.tt-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
@media (max-width: 640px) { .tt-upload-grid { grid-template-columns: 1fr; } }
.tt-upload-field { display: flex; flex-direction: column; gap: 4px; }
.tt-upload-field--full { grid-column: 1 / -1; }
.tt-upload-field span { font-size: 12px; font-weight: 600; color: var(--wb-text); }
.tt-upload-field span em { color: var(--wb-danger); font-style: normal; }
.tt-upload-field input,
.tt-upload-field select,
.tt-upload-field textarea {
  padding: 8px 10px; border: 1px solid var(--wb-border); border-radius: 8px;
  font-size: 13px; font-family: inherit; width: 100%; box-sizing: border-box;
}
.tt-upload-file input[type="file"] { font-size: 12px; }
.tt-upload-file__name { font-size: 11px; color: var(--wb-muted); margin-top: 4px; display: block; }

/* ── 账户方案（Membership）── */
.wb-plan-account {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; margin-bottom: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #dbeafe; border-radius: var(--wb-radius);
}
.wb-plan-account__main { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 240px; }
.wb-plan-account__badge {
  flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.wb-plan-account__badge--free { background: #f1f5f9; color: #64748b; }
.wb-plan-account__badge--pro { background: #dbeafe; color: #1d4ed8; }
.wb-plan-account__badge--vip { background: #fef3c7; color: #b45309; }
.wb-plan-account__meta { flex: 1; min-width: 0; }
.wb-plan-account__quota { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.wb-plan-account__meter {
  height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; max-width: 280px; margin-bottom: 6px;
}
.wb-plan-account__meter-bar { height: 100%; background: var(--wb-primary); border-radius: 999px; transition: width .3s; }
.wb-plan-account__slots { margin: 0; font-size: 12px; color: var(--wb-muted); }
.wb-plan-account__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wb-plan-account__vip-note { font-size: 12px; color: #b45309; font-weight: 600; }

.wb-plan-grid-section { margin-bottom: 24px; }
.wb-plan-grid-section__head { margin-bottom: 14px; }
.wb-plan-grid-section__hint { margin: 4px 0 0; font-size: 12px; color: var(--wb-muted); }
.wb-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .wb-plan-grid { grid-template-columns: 1fr; } }

.wb-plan-card {
  position: relative; display: flex; flex-direction: column;
  padding: 18px 16px; background: var(--wb-surface);
  border: 1px solid var(--wb-border); border-radius: 12px; box-shadow: var(--wb-shadow);
}
.wb-plan-card--featured { border-color: #93c5fd; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12); }
.wb-plan-card.is-current { border-color: #86efac; background: #fafffe; }
.wb-plan-card__ribbon {
  position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; background: var(--wb-primary); color: #fff;
}
.wb-plan-card__current {
  position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; background: #dcfce7; color: #15803d;
}
.wb-plan-card--featured .wb-plan-card__current { top: 36px; }
.wb-plan-card__name { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.wb-plan-card__price { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.wb-plan-card__price span { font-size: 12px; font-weight: 500; color: var(--wb-muted); margin-left: 2px; }
.wb-plan-card__tagline { margin: 0 0 12px; font-size: 12px; color: var(--wb-muted); line-height: 1.45; }
.wb-plan-card__features {
  list-style: none; margin: 0 0 16px; padding: 0; flex: 1;
  font-size: 12px; line-height: 1.5; color: var(--wb-text-secondary, #475569);
}
.wb-plan-card__features li { padding: 4px 0 4px 16px; position: relative; }
.wb-plan-card__features li::before {
  content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; font-size: 11px;
}
.wb-plan-card__btn { width: 100%; justify-content: center; margin-top: auto; }
.wb-plan-card--free { border-top: 3px solid #94a3b8; }
.wb-plan-card--pro { border-top: 3px solid var(--wb-primary); }
.wb-plan-card--vip { border-top: 3px solid #f59e0b; }

.wb-user-plan-badge {
  display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.wb-user-plan-badge--free { background: #f1f5f9; color: #64748b; }
.wb-user-plan-badge--pro { background: #dbeafe; color: #1d4ed8; }
.wb-user-plan-badge--vip { background: #fef3c7; color: #b45309; }

.wb-plan-upgrade-modal .wb-plan-card { max-width: 360px; margin: 0 auto; }
.wb-sub-cta-bar { flex-wrap: wrap; gap: 8px; align-items: center; }

/* ── 订阅中心 Tab 布局 ── */
.wb-plan-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 10px 14px; margin-bottom: 14px;
  background: var(--wb-surface); border: 1px solid var(--wb-border);
  border-radius: var(--wb-radius); font-size: 12px; color: var(--wb-muted);
}
.wb-plan-strip__item strong { color: var(--wb-text); font-weight: 700; }
.wb-plan-strip__sep { opacity: 0.4; }
.wb-plan-strip__link {
  margin-left: auto; border: none; background: none; padding: 0;
  font-size: 12px; font-weight: 600; color: var(--wb-primary); cursor: pointer; font-family: inherit;
}
.wb-plan-strip__link:hover { text-decoration: underline; }

.wb-sub-hub-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  padding: 4px; background: #f1f5f9; border-radius: 10px; width: fit-content; max-width: 100%;
}
.wb-sub-hub-tabs--prominent {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  width: 100%; max-width: 520px; margin-bottom: 16px;
  padding: 3px; background: #f1f5f9; border-radius: 10px;
  border: 1px solid var(--wb-border);
}
.wb-sub-hub-tab {
  position: relative; border: none; background: transparent; padding: 8px 16px;
  border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--wb-muted); font-family: inherit; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.wb-sub-hub-tabs--prominent .wb-sub-hub-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: #64748b; white-space: nowrap;
}
.wb-sub-hub-tabs--prominent .wb-sub-hub-tab__icon { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.85; }
.wb-sub-hub-tab:hover { color: var(--wb-text); }
.wb-sub-hub-tabs--prominent .wb-sub-hub-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.6); color: var(--wb-text);
}
.wb-sub-hub-tab.is-active { background: #fff; color: var(--wb-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.wb-sub-hub-tabs--prominent .wb-sub-hub-tab.is-active {
  background: #fff; color: var(--wb-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(37, 99, 235, 0.12);
}
.wb-sub-hub-tabs--prominent .wb-sub-hub-tab.is-active .wb-sub-hub-tab__icon { opacity: 1; color: var(--wb-primary); }
.wb-sub-hub-tab__badge {
  display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 5px;
  font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
  border-radius: 999px; background: var(--wb-primary-soft); color: var(--wb-primary);
}
.wb-sub-hub-tabs--prominent .wb-sub-hub-tab__badge {
  margin-left: 2px; min-width: 17px; padding: 0 5px; font-size: 10px; line-height: 17px;
  background: #e0e7ff; color: #4338ca;
}
.wb-sub-hub-tabs--prominent .wb-sub-hub-tab.is-active .wb-sub-hub-tab__badge {
  background: var(--wb-primary-soft); color: var(--wb-primary);
}
@media (max-width: 480px) {
  .wb-sub-hub-tabs--prominent { max-width: none; }
  .wb-sub-hub-tabs--prominent .wb-sub-hub-tab {
    padding: 8px 8px; font-size: 12px; gap: 4px;
  }
  .wb-sub-hub-tabs--prominent .wb-sub-hub-tab__label { max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; }
}
.wb-sub-hub-tab-panel { min-height: 200px; }
.wb-sub-hub-stats--inline { margin-bottom: 16px; }
.wb-sub-phase2-hint {
  margin: 14px 0 0; padding: 10px 12px; font-size: 12px; color: var(--wb-muted);
  background: #f8fafc; border-radius: 8px; border: 1px dashed var(--wb-border);
}
.wb-panel__link--btn {
  border: none; background: none; cursor: pointer; font: inherit; padding: 0;
}
.wb-rec-sub--collapsed .wb-rec-sub__head { margin-bottom: 0; }
.wb-plan-usage { margin-bottom: 20px; }
.wb-plan-usage__text { margin: 0 0 4px; font-size: 14px; }
.wb-sub-empty-state .wb-panel__body { border: 1px dashed #cbd5e1; border-radius: 10px; background: #fafbfc; }

/* Generic page footer */
.wb-footer {
  margin-top: 1px;
  padding: 18px 20px;
  text-align: center;
  color: var(--wb-muted);
  font-size: 13px;
  border-top: 1px solid var(--wb-border);
  background: transparent;
}
.wb-footer__brand { font-weight: 600; letter-spacing: 0.5px; }

/* my_orders: make subscription / recommend section wrappers transparent
   (override quick-website.css global `section{background:#fff}`) */
.wb-section,
.recommend-section { background: transparent; }
