/* ═════════════════════════════════════════════════════════════════════════
   财经工作台设计系统 —— 依据 Impeccable(pbakaus/impeccable) Operate 模式 +
   Taste(Leonxlnx/taste-skill) 坏味道黑名单 + Hallmark(Nutlope/hallmark) 布局
   铁律; 配色 = Hallmark hyperlane「熔琥珀」(用户从 7 套候选中选定 2026-09-03);
   布局结构学火山引擎控制台(主导航顶部横排, 子页面左侧竖排, Roboto 字体栈)
   · 暗色≠反相亮色: 同色相三级 surface 做深度, 禁纯黑, 暗色不用阴影
   · 4pt 间距阶梯 / 5 档字号阶梯 / 数字 tabular-nums
   · 圆角一致性锁: 面板 10px, 控件 6px, 标签/徽章 pill
   · 数据列表用 1px 分隔线, 不用卡片盒套卡片 (Hallmark: no card-in-card)
   · 禁 emoji 图标 / 禁彩色光晕 / 单 accent (≤3% 视口)
   · 统计展示学同事看板(信源工作台.html): Stat-Led 大数字 + 1px-gap 紧凑格
   ═════════════════════════════════════════════════════════════════════════ */

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* ══ 配色: Hallmark hyperlane 熔琥珀(用户选定 2026-09-03) ══
     暖棕暗底(hue≈35) + 熔琥珀 accent(hue 55), 语义色取 hyperlane 原生 error/success;
     四层 surface 每级 +3% 明度(Hallmark 暗色配方), 全部 oklch 知觉均匀 */
  --bg: oklch(13% 0.018 35);            /* 基底 */
  --bg-panel: oklch(16% 0.018 35);      /* 面板 */
  --bg-card: oklch(19% 0.018 35);       /* 抬升面 */
  --bg-hover: oklch(23% 0.018 35);      /* 悬停 */
  --border: oklch(28% 0.015 35);        /* 1px 线 */
  --border-light: oklch(34% 0.015 35);  /* 强线 */
  --text: oklch(95% 0.010 70);          /* 正文(暖白) */
  --text-dim: oklch(74% 0.015 60);      /* 次级 */
  --text-mute: oklch(56% 0.015 55);     /* 辅助 */
  --accent: oklch(74% 0.180 55);        /* 熔琥珀(唯一 accent) */
  --accent-dim: oklch(60% 0.160 50);
  --accent-weak: oklch(74% 0.18 55 / 0.14);
  --green: oklch(74% 0.160 145);        /* hyperlane success */
  --red: oklch(70% 0.220 25);           /* hyperlane error */
  --yellow: oklch(80% 0.150 70);        /* 警示(与 accent 同族略亮) */
  /* 4pt 间距阶梯 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  /* 圆角锁: 面板 10 / 控件 6 / 徽章 pill */
  --r-panel: 10px; --r-ctl: 6px; --r-pill: 999px;
  /* 字体栈对齐火山控制台: Roboto 优先(拉丁/数字), 中文回落雅黑/苹方 */
  --font: Roboto, "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --mono: Consolas, "Cascadia Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
body.light {
  /* 浅色 = hyperlane 同族暖纸派生(Hallmark: hue 不动, 只动明度/彩度),
     accent 用 archival terracotta(hue 42 深琥珀, 亮底下保持对比度) */
  --bg: oklch(94% 0.014 65);            /* 暖米灰 */
  --bg-panel: oklch(97.5% 0.010 70);    /* 暖纸白 */
  --bg-card: oklch(97.5% 0.010 70);
  --bg-hover: oklch(91% 0.018 60);
  --border: oklch(84% 0.015 60);
  --border-light: oklch(77% 0.015 60);
  --text: oklch(20% 0.015 50);          /* 暖墨 */
  --text-dim: oklch(42% 0.014 55);
  --text-mute: oklch(58% 0.012 55);
  --accent: oklch(58% 0.160 42);        /* 深琥珀 */
  --accent-dim: oklch(88% 0.050 60);
  --accent-weak: oklch(58% 0.16 42 / 0.10);
  --green: oklch(52% 0.130 145);
  --red: oklch(55% 0.190 25);
  --yellow: oklch(62% 0.150 60);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: var(--border) transparent; }
body { font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
#app { display: flex; flex-direction: column; min-height: 100dvh; }
a { color: var(--accent); text-decoration: none; transition: color 120ms var(--ease); }
a:hover { color: var(--text); }
.muted { color: var(--text-mute); font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12px; }
::selection { background: var(--accent-weak); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--r-ctl); }

/* ── 顶部横向主导航(火山控制台: 主页面在上) ─────────────────────────────── */
.topbar { height: 52px; display: flex; align-items: center; gap: var(--s4);
  padding: 0 var(--s5); border-bottom: 1px solid var(--border); background: var(--bg-panel);
  position: sticky; top: 0; z-index: 20; }
.brand-logo { font-size: 15px; font-weight: 700; letter-spacing: .02em; display: flex;
  align-items: center; gap: var(--s2); flex-shrink: 0; }
.brand-logo svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }
.brand-sub { font-size: 11px; color: var(--text-mute); font-weight: 400; margin-left: 2px; }
.topnav { display: flex; gap: 2px; flex: 1; height: 100%; }
.topnav-item { display: flex; align-items: center; padding: 0 15px; font-size: 14px;
  color: var(--text-dim); border-bottom: 2px solid transparent; cursor: pointer;
  transition: color 120ms var(--ease), border-color 120ms var(--ease); }
.topnav-item:hover { color: var(--text); }
.topnav-item.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: var(--s4); flex-shrink: 0; }
.topbar-right .muted { font-family: var(--mono); font-size: 11.5px; }
.health { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-dim); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-mute); flex-shrink: 0; }
.dot.ok { background: var(--green); }
.dot.warn { background: var(--yellow); }
.dot.err { background: var(--red); }

/* ── 主体行: 左侧子页面菜单 + 内容区 ────────────────────────────────────── */
.body-row { display: flex; flex: 1; min-height: 0; align-items: stretch; }
.subnav { width: 180px; flex-shrink: 0; background: var(--bg);
  border-right: 1px solid var(--border); padding: var(--s3) var(--s2);
  position: sticky; top: 52px; height: calc(100dvh - 52px); overflow-y: auto; }
.subnav-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-mute); padding: 2px 10px var(--s2); }
.subnav .nav-item { cursor: pointer; }
.sub-cnt { margin-left: auto; font-family: var(--mono); font-size: 11px;
  color: var(--text-mute); font-variant-numeric: tabular-nums; }
.nav-item { display: flex; align-items: center; gap: var(--s2); padding: 7px 10px;
  border-radius: var(--r-ctl); color: var(--text-dim); font-size: 13.5px;
  transition: background 120ms var(--ease), color 120ms var(--ease); }
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: var(--accent-weak); color: var(--accent); font-weight: 600; }
.nav-icon { width: 15px; height: 15px; display: inline-flex; flex-shrink: 0; }
.nav-icon svg { width: 15px; height: 15px; }
.content { flex: 1; min-width: 0; padding: var(--s5) var(--s5) 64px; }   /* 去 1440 帽: 宽屏铺满, 不再右侧留白 */

/* ── 通用组件 ──────────────────────────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-panel); padding: var(--s4); margin-bottom: var(--s3); }
.card h3 { font-size: 13px; color: var(--text-dim); font-weight: 600; margin: 2px 0 var(--s3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }

/* 视频制作·生成板块容器: 框=抬升面(浅), 内层子板块=基底(深) —— 包含层级靠配色读出(2026-09-12 用户定) */
.make-stage { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-panel); padding: var(--s4); margin-bottom: var(--s3); }
.make-stage > .card, .make-stage .make-step-main .card { background: var(--bg); }
/* 再往里一层: 卡内表单控件抬回升面(容器浅→卡深→控件浅, 三级明暗读出层级) */
.make-stage > .card input[type=text], .make-stage > .card input[type=password],
.make-stage > .card input[type=number], .make-stage > .card select,
.make-stage > .card textarea,
.make-stage .make-step-main .card input[type=text], .make-stage .make-step-main .card input[type=password],
.make-stage .make-step-main .card input[type=number], .make-stage .make-step-main .card select,
.make-stage .make-step-main .card textarea { background: var(--bg-card); }
/* 步骤子页·书签标签(0913b): 左侧窄轨, 未选=融进背景的小标签, 选中=与"纸"同底色
   无缝焊接(盖住纸的左边框 1px)——一张纸旁边突出小标签的一体视觉, 不做独立模块 */
.make-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
/* 纸的左侧两角改直角(0919d): 标签沿直边焊接处处齐缝, 圆角只留在无标签的右侧 */
.make-wrap .make-stage { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.make-step-main { min-width: 0; }
.make-step-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 0 0 2px; width: 108px; }
.make-step-nav .step-item { display: flex; flex-direction: column; gap: 2px; padding: 7px 10px 6px;
  border: 1px solid transparent; border-radius: 9px 0 0 9px; background: transparent;
  color: var(--text-mute); font: inherit; text-align: left; cursor: pointer; position: relative; }
.make-step-nav .step-item .lbl { font-size: 12.5px; white-space: nowrap; }
.make-step-nav .step-item .num { font-size: 11px; margin-right: 5px; opacity: .75; }
.make-step-nav .step-item .st { font-size: 10.5px; padding-left: 16px; }
.make-step-nav .step-item:hover { color: var(--text); }
.make-step-nav .step-item.sel { background: var(--bg-card); border-color: var(--border);
  border-right-color: transparent; margin-right: -1px; z-index: 1; color: var(--text); font-weight: 600; }
@media (max-width: 1100px) {
  .make-wrap { grid-template-columns: 1fr; }
  .make-step-nav { width: auto; flex-direction: row; flex-wrap: wrap; padding: 0 0 8px; }
  .make-step-nav .step-item { border-radius: 9px; border-color: var(--border); }
  .make-step-nav .step-item.sel { margin-right: 0; border-right-color: var(--border); }
}
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px;
  border-radius: var(--r-ctl); border: 1px solid var(--border); background: var(--bg-hover);
  color: var(--text); font-size: 13px; font-family: var(--font); cursor: pointer;
  transition: border-color 120ms var(--ease), background 120ms var(--ease); }
.btn:hover { border-color: var(--accent); }
/* 琥珀 accent 明度高, 主按钮上用深暖墨字而不是白字(对比度) */
.btn.primary { background: var(--accent); border-color: var(--accent);
  color: oklch(20% 0.02 40); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn:disabled, .btn.stub { opacity: .42; cursor: not-allowed; }
.btn:disabled:hover, .btn.stub:hover { border-color: var(--border); filter: none; }
input[type=text], input[type=password], select, textarea {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r-ctl); padding: 6px 10px; font-size: 13px; font-family: var(--font);
  transition: border-color 120ms var(--ease); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
select[multiple] { padding: var(--s1); }
select[multiple] option { padding: 3px var(--s2); border-radius: var(--s1); }
.badge { display: inline-block; padding: 1px 8px; border-radius: var(--r-pill); font-size: 11px;
  line-height: 1.7; background: var(--bg-hover); color: var(--text-dim);
  border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.badge.green { color: var(--green); border-color: var(--green); }
.badge.red { color: var(--red); border-color: var(--red); }
.badge.yellow { color: var(--yellow); border-color: var(--yellow); }
.badge.blue { color: var(--accent); border-color: var(--accent); }

/* 桩按钮规范: 灰显 + 命令提示 */
.stub-wrap { position: relative; display: block; }
.stub-wrap .btn { margin-right: var(--s2); }
.stub-tip { font-size: 12px; color: var(--text-mute); margin-top: var(--s2); line-height: 1.9; }
.stub-tip code { font-family: var(--mono); font-size: 11.5px; background: var(--bg);
  padding: 2px 7px; border-radius: var(--r-ctl); border: 1px solid var(--border);
  user-select: all; white-space: nowrap; }

/* chips(标签筛选) */
.chip { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px;
  cursor: pointer; border: 1px solid var(--border); color: var(--text-dim); background: transparent;
  margin: 0 5px 5px 0; user-select: none;
  transition: border-color 120ms var(--ease), color 120ms var(--ease), background 120ms var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.on { background: var(--accent-weak); border-color: var(--accent); color: var(--accent); }
.chip.dead { opacity: .4; text-decoration: line-through; }

/* ── 资讯页三栏 ─────────────────────────────────────────────────────────── */
.news-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr) 244px;
  gap: var(--s4); align-items: start; }
.news-layout > div:first-child { position: sticky; top: 64px;
  max-height: calc(100vh - 64px - var(--s4)); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--border-light) transparent; }
.news-layout > div:first-child::-webkit-scrollbar { width: 6px; }
.news-layout > div:first-child::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--r-pill); }
.news-layout > div:first-child::-webkit-scrollbar-track { background: transparent; }
.filter-group { margin-bottom: var(--s4); }
.filter-group h4 { font-size: 11.5px; color: var(--text-mute); font-weight: 600;
  margin-bottom: 7px; display: flex; justify-content: space-between; align-items: center; }
.filter-group h4 .clear { cursor: pointer; color: var(--accent); font-weight: 400; }
.feed-toolbar { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap;
  margin-bottom: var(--s3); }
.feed-toolbar input[type=text] { flex: 1; min-width: 180px; }
.feed-toolbar label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  color: var(--text-dim); cursor: pointer; }

/* 资讯页左栏紧凑化: 仅 .news-filters 作用域生效, 不波及右栏统计卡/来源详情表/其他页 */
.news-filters .filter-group { margin-bottom: var(--s3); }
.news-filters .filter-group h4 { margin-bottom: 4px; }
.news-filters .chip { padding: 1px 8px; font-size: 11.5px; margin: 0 4px 4px 0; }
.news-filters .btn { padding: 3px 7px; font-size: 12px; }

/* 信息流: 1px 分隔线行式(Impeccable: 数据用线条分区, 不卡片套卡片) */
.feed { border-top: 1px solid var(--border); }
.news-card { padding: var(--s3) var(--s1); border-bottom: 1px solid var(--border);
  transition: background 120ms var(--ease); }
.news-card:hover { background: var(--accent-weak); }
.news-meta { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap;
  margin-bottom: var(--s1); font-size: 11.5px; color: var(--text-mute);
  font-variant-numeric: tabular-nums; }
.news-text { font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
/* 长文折叠(资讯/推荐卡共用): line-clamp 在 pre-wrap 下失效, 折叠态必须覆盖回 normal */
.news-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal; }
.news-src-text { margin-top: var(--s2); padding: var(--s2) var(--s3); background: var(--bg);
  border-left: 2px solid var(--border-light); border-radius: var(--r-ctl);
  font-size: 12.5px; color: var(--text-dim); white-space: pre-wrap; }
.news-actions { margin-top: 7px; display: flex; gap: var(--s4); font-size: 12px; }
.news-actions span.act { color: var(--accent); cursor: pointer; }
.news-actions span.act:hover { color: var(--text); }
/* 图文页 X 帖操作: 离散方块按钮(限定 .blocks 修饰类, news.js 信息流保持行内链) */
.news-actions.blocks { gap: 6px; flex-wrap: wrap; }
.news-actions.blocks > a, .news-actions.blocks > span.act {
  border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg-card);
  padding: 3px 10px; line-height: 1.5; text-decoration: none; white-space: nowrap; }
.news-actions.blocks > a:hover, .news-actions.blocks > span.act:hover {
  border-color: var(--accent); color: var(--accent); background: transparent; }
/* 展开全文: 正文下方的文字链接(刻意不进按钮列) */
.x-expand { margin-top: 3px; font-size: 12px; }
.x-expand .act { color: var(--accent); cursor: pointer; }
.x-expand .act:hover { text-decoration: underline; }
/* 评论生成: 按钮列第 5 位, 橙色实心+浅色字(与普通描边按钮区分) */
.news-actions.blocks > span.act.gen {
  background: var(--accent); border-color: var(--accent); color: var(--text);
  font-weight: 600; }
body:not(.light) .news-actions.blocks > span.act.gen {
  background: var(--accent-dim); border-color: var(--accent-dim); }
.news-actions.blocks > span.act.gen:hover { filter: brightness(1.15); color: var(--text); }
/* 浅色主题下 --text 是深色, 橙色实心钮须配浅色字 */
body.light .news-actions.blocks > span.act.gen { color: oklch(97% 0.008 70); }
body.light .news-actions.blocks > span.act.gen:hover { color: oklch(97% 0.008 70); }
/* 蹭蹭流量双栏: 左=帖子流, 右=评论人设侧栏 */
.surge-layout { display: grid; grid-template-columns: minmax(0, 1fr) 216px;
  gap: var(--s3); align-items: start; }
.surge-layout > .surge-main { grid-column: 1; grid-row: 1; }
.surge-layout > .surge-side { grid-column: 2; grid-row: 1; }
.surge-side .persona-bar { flex-direction: column; align-items: stretch;
  position: sticky; top: var(--s3); margin-bottom: 0; }
/* 人设面板(右侧栏): 选择栏展开式人设库 + 概要/提示词可编辑详情 */
.pp-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.pp-sel { display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg-card);
  padding: 7px 10px; cursor: pointer; font-size: 13px; font-weight: 600; }
.pp-sel:hover { border-color: var(--accent); }
.pp-sel-arrow { color: var(--text-dim); font-size: 11px; }
.pp-list { border: 1px solid var(--border); border-radius: var(--r-ctl);
  background: var(--bg-card); margin-top: 4px; overflow: hidden; }
.pp-item { display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; font-size: 12.5px; border-bottom: 1px dashed var(--border); }
.pp-item:last-child { border-bottom: none; }
.pp-item:hover { background: var(--bg-hover); }
.pp-item.on { color: var(--accent); font-weight: 600; }
.pp-item-name { flex: 1; cursor: pointer; }
.pp-item .tool { font-style: normal; font-size: 11px; color: var(--text-mute);
  cursor: pointer; padding: 0 4px; }
.pp-item .tool:hover { color: var(--red); }
.pp-new, .pp-reset { color: var(--accent); cursor: pointer; font-size: 12px; }
.pp-current { margin-top: 6px; font-size: 12.5px; }
.pp-ed-lab { display: block; font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.pp-ed-lab input, .pp-ed-lab textarea { width: 100%; box-sizing: border-box; margin-top: 3px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 7px; font-size: 12.5px; font-family: inherit; }
.pp-ed-lab textarea { resize: vertical; line-height: 1.55; }
.pp-hint { margin-top: 6px; font-size: 11.5px; line-height: 1.5; }
/* 侧栏窄栏内的人设面板 footer: 换行排布, 按钮禁折字, 说明独占一行 */
.surge-side .persona-foot { flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.surge-side .persona-foot .btn { flex: 1 1 auto; white-space: nowrap; }
.surge-side .persona-foot .muted { font-size: 11.5px; line-height: 1.5; }
.tickers { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
/* 双框信息流卡片(2026-09-03 双标签制: 左=来源信息, 右=内容信息, 标签分区独立) */
.nc-grid    { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: var(--s3); }
.nc-src     { border: 1px solid var(--border); border-radius: var(--r-panel);
              background: var(--bg); padding: 8px 10px; align-self: stretch;
              display: flex; flex-direction: column; gap: 6px; }
.nc-src .name { font-size: 12.5px; font-weight: 600; }
.nc-src .brief { font-size: 11.5px; color: var(--text-mute); line-height: 1.5;
                 display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
                 overflow: hidden; }
.nc-src .who { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.nc-body    { min-width: 0; }
.nc-badges  { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 5px; }
.nc-time    { font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-right: 2px; }
@media (max-width: 1100px) { .nc-grid { grid-template-columns: 1fr; } }   /* 窄屏左右框纵堆 */
.empty, .err-box { text-align: center; padding: 48px var(--s4); color: var(--text-mute); }
.err-box { color: var(--yellow); }
/* 施工中子页占位(pub/auto 挂 wipTabs 时) */
.wip-page { display: flex; justify-content: center; padding-top: 72px; }
.wip-card { text-align: center; padding: 44px 60px; max-width: 420px; }
.wip-card .wip-icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.wip-card h2 { font-size: 18px; margin: 0 0 8px; }
.wip-card p { margin: 4px 0; }
.err-box code { font-family: var(--mono); background: var(--bg); padding: 2px 8px;
  border-radius: var(--r-ctl); }
.load-more { text-align: center; margin: var(--s4) 0; }

/* 状态面板数字 */
.stat-num { font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums;
  letter-spacing: -.01em; }

/* ── 资讯子页签(信息筛选 / 来源详情) ─────────────────────────────────────── */
.subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border);
  margin-bottom: var(--s4); }
.subtab { padding: 8px 14px; font-size: 13px; color: var(--text-dim); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; user-select: none;
  transition: color 120ms var(--ease), border-color 120ms var(--ease); }
.subtab:hover { color: var(--text); }
.subtab.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.subtab .cnt { font-family: var(--mono); font-size: 11px; color: var(--text-mute);
  margin-left: 5px; font-variant-numeric: tabular-nums; }

/* 紧凑统计格(学同事看板 .stats: 1px gap 网格 + mono 数字, 右栏省空间) */
.stat-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-ctl); overflow: hidden; }
.stat-mini { background: var(--bg-card); padding: 8px 12px 9px; }
.stat-mini .k { font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 3px; }
.stat-mini .v { font-family: var(--mono); font-size: 18px; font-weight: 600;
  font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat-mini .n { font-size: 10.5px; color: var(--text-mute); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 迷你条形图(学同事看板 .bar-row: lab | track | 数值, 右栏紧凑) */
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 50px;
  align-items: center; gap: 8px; cursor: default; }
.bar-row.clickable { cursor: pointer; }
.bar-row .lab { font-size: 11px; color: var(--text-dim); text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: block; height: 8px; background: var(--bg); border-radius: 3px;
  overflow: hidden; }
/* 必须块级: span 默认 inline 会忽略 width/height, 填充条塌成 0 宽全看不见 */
.bar-fill { display: block; height: 100%; background: var(--accent);
  border-radius: 0 3px 3px 0; }
.bar-row .val { font-family: var(--mono); font-size: 11px; text-align: right;
  color: var(--text-dim); font-variant-numeric: tabular-nums; }
.bar-row.clickable:hover .lab { color: var(--accent); }
.bar-row.clickable:hover .bar-fill { filter: brightness(1.2); }

/* ── 来源详情登记表(学同事看板 registry: 排序表头 + 健康 pill) ──────────── */
.reg-toolbar { display: flex; gap: var(--s2); align-items: center; margin-bottom: var(--s3);
  flex-wrap: wrap; }
.reg-toolbar input[type=text] { width: 240px; }
.reg-wrap { border: 1px solid var(--border); border-radius: var(--r-panel);
  background: var(--bg-card); overflow: hidden; }
.reg-scroll { overflow-x: auto; max-height: calc(100dvh - 210px); overflow-y: auto; }
table.reg { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 860px; }
table.reg th { position: sticky; top: 0; z-index: 2; background: var(--bg-panel);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 500; text-align: left; padding: 8px 12px;
  border-bottom: 1px solid var(--border); cursor: pointer; white-space: nowrap; user-select: none; }
table.reg th:hover { color: var(--text); }
table.reg th .arr { color: var(--accent); margin-left: 3px; }
table.reg td { padding: 7px 12px; border-bottom: 1px solid var(--border);
  vertical-align: middle; white-space: nowrap; }
/* 说明列允许换行(长描述), 其余列一律不折行保持表格密度(Arco 紧凑) */
table.reg td:nth-child(4) { white-space: normal; min-width: 200px; max-width: 340px; }
table.reg tbody tr:last-child td { border-bottom: none; }
table.reg tbody tr:hover { background: var(--accent-weak); }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.pill { display: inline-block; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 11px; line-height: 1.8; border: 1px solid var(--border); color: var(--text-dim);
  white-space: nowrap; }
.pill.ok { color: var(--green); border-color: color-mix(in oklch, var(--green) 40%, transparent); }
.pill.dead { color: var(--red); border-color: color-mix(in oklch, var(--red) 40%, transparent); }
.pill.off { color: var(--text-mute); }
.src-acts .act { color: var(--accent); cursor: pointer; font-size: 12px; white-space: nowrap; }
.src-acts .act:hover { color: var(--text); }
/* 状态列 = 启停开关 + 健康 pill 并排(健康与启停强挂钩的可视化) */
.state-wrap { display: inline-flex; align-items: center; gap: var(--s2); }
/* 纯 CSS 开关: 30x16 track + pill 圆角, ::after 为 knob; on=accent(单 accent 铁律), off=灰 */
.switch { position: relative; display: inline-block; width: 30px; height: 16px; flex: none; border-radius: var(--r-pill); background: var(--bg-hover); border: 1px solid var(--border); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--text-mute); transition: transform .2s var(--ease), background .2s var(--ease); }
.switch:hover { border-color: var(--border-light); }
.switch.on { background: var(--accent); border-color: var(--accent); }
.switch.on:hover { filter: brightness(1.08); }
.switch.on::after { transform: translateX(14px); background: var(--bg); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes knob-pulse { 50% { opacity: .35; } }
.switch.busy { pointer-events: none; }
.switch.busy::after { animation: knob-pulse .8s linear infinite; }
/* SVG 星标(替代 emoji 星, 设计系统禁 emoji 图标): 未关注描边灰, 已关注填充 accent */
.star { display: inline-flex; width: 15px; height: 15px; color: var(--text-mute); cursor: pointer; vertical-align: middle; transition: color 120ms var(--ease), transform 120ms var(--ease), filter 120ms var(--ease); }
.star svg { width: 15px; height: 15px; display: block; }
.star:hover { color: var(--accent); transform: scale(1.1); filter: brightness(1.15); }
.star.on { color: var(--accent); }
.star.on svg { fill: currentColor; }
/* 停用行: 逐格压暗(父级 opacity 会连带开关, 故按 td 施加), 开关列保持全不透明 */
table.reg tbody tr.off td { opacity: .55; }
table.reg tbody tr.off td.state-cell { opacity: 1; }
table.reg tbody tr.off td:nth-child(4) { color: var(--text-mute); }

/* ── 图文/视频页 ────────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s4);
  align-items: start; }
.three-col { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px;
  gap: var(--s4); align-items: start; }
/* 内容生成页三栏: 素材池加宽(吃掉右栏富余空间); 窄屏仍走 .three-col 的 1fr 断点 */
.gen-cols { grid-template-columns: 400px minmax(0, 1fr) 280px; }
/* 素材池: 顶部小搜索 + 整列通高滚动(用户要求加长) + 超48h灰显 */
.mat-search { width: 100%; margin-bottom: 8px; }
.mat-pool { max-height: calc(100vh - 320px); min-height: 560px; overflow-y: auto; }
.list-item.stale { opacity: .45; }
.list-item.stale:hover { opacity: .8; }
/* 成稿卡: 文字在编辑器, 此处配图/标签/复制 */
.gen-final { border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 10px; }
.gen-asset { margin-top: 8px; }
.gen-asset img { max-width: 100%; border: 1px solid var(--border); border-radius: 8px; }
.list-item { padding: 9px var(--s3); border: 1px solid var(--border);
  border-radius: var(--r-ctl); margin-bottom: 7px; cursor: pointer; background: transparent;
  transition: border-color 120ms var(--ease), background 120ms var(--ease); }
.list-item:hover { border-color: var(--border-light); background: var(--accent-weak); }
.list-item.sel { border-color: var(--accent); background: var(--accent-weak); }
.list-item .t { font-size: 13px; margin-bottom: 2px; display: flex;
  justify-content: space-between; align-items: center; gap: var(--s2); }
.list-item .s { font-size: 11.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.step-line { display: flex; align-items: center; gap: var(--s2); padding: 4px 0; font-size: 12.5px; }
.step-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-mute); flex-shrink: 0; }
.step-dot.done { background: var(--green); }
.step-dot.waiting { background: var(--yellow); }
.md-preview { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-ctl);
  padding: var(--s3) var(--s4); font-size: 13px; line-height: 1.7; white-space: pre-wrap;
  max-height: 480px; overflow: auto; }
video { max-width: 100%; border-radius: var(--r-panel); background: #000; }
.cover-thumb { width: 100%; border-radius: var(--r-ctl); }

/* ── 追踪页 ─────────────────────────────────────────────────────────────── */
.notice { background: color-mix(in oklch, var(--yellow) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--yellow) 40%, transparent); color: var(--yellow);
  border-radius: var(--r-panel); padding: var(--s3) var(--s4); margin-bottom: var(--s4);
  font-size: 13px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: var(--s3); }
.acct-card { background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-panel); padding: var(--s3) var(--s4); }
.acct-card .plat { font-size: 11px; color: var(--accent); font-weight: 600; }
.acct-card .name { font-size: 14px; font-weight: 600; margin: 2px 0; }
.spark { margin-top: var(--s2); height: 34px; display: flex; align-items: center;
  justify-content: center; border: 1px dashed var(--border); border-radius: var(--r-ctl);
  color: var(--text-mute); font-size: 11px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.tbl th { color: var(--text-mute); font-weight: 500; font-size: 11.5px; }
table.tbl th, table.tbl td { padding: 7px 10px; text-align: left;
  border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
table.tbl tr:last-child td { border-bottom: none; }

/* ── 设置页 ─────────────────────────────────────────────────────────────── */
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.form-row > label { width: 88px; color: var(--text-dim); font-size: 13px; flex-shrink: 0; }
.form-row label:not(:first-child) { white-space: nowrap; }
.form-row input[type=text], .form-row input[type=password] { width: 320px; }
.radio-group { display: flex; gap: var(--s4); }
.radio-group label { display: flex; align-items: center; gap: 5px; cursor: pointer; width: auto; }
input[type=radio], input[type=checkbox] { accent-color: var(--accent); }
.test-result { margin-top: 10px; padding: var(--s3) var(--s3); border-radius: var(--r-ctl);
  font-size: 12.5px; }
.test-result.ok { background: color-mix(in oklch, var(--green) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--green) 40%, transparent); color: var(--green); }
.test-result.fail { background: color-mix(in oklch, var(--red) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--red) 40%, transparent); color: var(--red); }
.toast { position: fixed; bottom: var(--s5); right: var(--s5); background: var(--bg-card);
  border: 1px solid var(--accent); color: var(--text); padding: 10px var(--s4);
  border-radius: var(--r-panel); z-index: 99; font-size: 13px; }

@media (max-width: 1100px) {
  .news-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .news-status { display: none; }
  .three-col, .two-col { grid-template-columns: 1fr; }
}

/* ── 推荐信息页(2026-09-04 改版): 筛选横排 + 双栏 + 右栏热帖 sticky ── */
.reco-filter { padding: 10px var(--s4); }
.frow { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.frow:last-child { margin-bottom: 0; }
.frow .lab { flex: none; font-size: 12.5px; font-weight: 600;
             color: var(--text-mute); margin-right: 4px; }
/* 资讯页右栏不跟滚(沿用筛选项的 top:64px 约定); 推荐页 X 化后全宽无右栏 */
.news-status { position: sticky; top: 64px; align-self: start;
  max-height: calc(100vh - 76px); overflow-y: auto; }
/* X 热帖条目 */
.xhot-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.xhot-item:last-of-type { border-bottom: none; }
.xhot-top { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.xhot-top .rank { font-family: var(--mono); font-size: 11px; color: var(--accent);
                  width: 16px; flex: none; }
.xhot-top .name { font-size: 12px; font-weight: 600; white-space: nowrap;
                  overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.xhot-fol { font-size: 11px; color: var(--text-mute); white-space: nowrap; flex: none; }
.xhot-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
             overflow: hidden; font-size: 12.5px; line-height: 1.5;
             color: var(--text); text-decoration: none; }
.xhot-text.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.xhot-text:hover { color: var(--accent); }
.xhot-meta { font-size: 11px; margin-top: 2px; }
/* 「已加入」态(推荐/资讯卡片通用): 灰字不响应点击 */
.act-done { color: var(--text-dim); font-size: 12px; cursor: default; }


/* ── 蹭蹭流量子页(X起爆帖·评论卡位) ── */
.surge-meta { font-size: 12px; color: var(--text-mute); margin: 10px 0; }
.surge-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s3); }
.surge-rank { align-self: center; text-align: center; display: flex; flex-direction: column;
  gap: 4px; align-items: center; }
.surge-rank .prob { font-family: var(--mono); font-size: 27px; font-weight: 700;
  color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.surge-rank .prob span { font-size: 13px; }
.surge-rank .prob-lab { font-size: 10.5px; color: var(--text-mute); }
.badge.golden { border-color: var(--yellow); color: var(--yellow); }
.surge-top { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.surge-top .rank-no { font-family: var(--mono); font-size: 11px; color: var(--text-mute); }
.surge-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 5px;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-dim);
  font-variant-numeric: tabular-nums; }
.surge-stats .grow { color: var(--green); }
.surge-stats .exposure { color: var(--accent); }
.surge-parts { font-size: 11px; margin-top: 2px; }
/* FV 金融价值视图(推荐信息页): P0/P1 分组头 + 分组描边 + P3 归档灰显 */
.group-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; }
.news-card.tier-p0 { border-left: 3px solid var(--red); }
.news-card.tier-p1 { border-left: 3px solid var(--yellow); }
/* P3 半透明降级已取消(2026-09-09 用户裁决): 价值由人主观评判, 机器分只排序不淡化 */
@media (max-width: 900px) { .surge-grid { grid-template-columns: 1fr; } }
/* 账号管理表: 中文徽章/动作不竖排折行 */
.tbl td .badge, .tbl td .act { white-space: nowrap; }

/* ── 视频工坊: 素材池左栏布局(池 300px + 主栏 1fr; order 换位免搬模板; 窄屏沿用 .two-col 原断点纵堆) ── */
.two-col.pool-right { grid-template-columns: 300px minmax(0, 1fr); }
.two-col.pool-right > div:first-child { order: 2; }
.two-col.pool-right > .card { order: 1; }
@media (max-width: 1100px) {
  .two-col.pool-right { grid-template-columns: 1fr; }
}
/* 视频制作: 左四段制作台(主) + 右窄栏(草稿箱/项目列表, 窄屏纵堆) */
.make-cols { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
@media (max-width: 1100px) {
  .make-cols { grid-template-columns: 1fr; }
}
/* 内容生成·信息检索: 素材卡下补充信息折叠区 */
.rv-block { margin-top: 5px; }
.rv-toggle { font-size: 11.5px; cursor: pointer; color: var(--accent); }
.rv-list { margin-top: 4px; }
.rv-item { margin: 5px 0; padding: 6px 8px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 12px; }
/* 蹭蹭流量·评论生成盒(2026-09-09 MoA 合成): 卡片内联, 3 候选逐条复制 */
/* ── 评论人设选择条(grok v2; 蹭流量页生成上方) ── */
.persona-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 8px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg-panel); }
.persona-bar .lab { font-size: 12.5px; font-weight: 600; margin-right: 2px; }
.persona-bar .chip { position: relative; }
.persona-bar .chip.has-tools { padding-right: 4px; }
.persona-bar .chip .tool { font-style: normal; font-size: 10px; margin-left: 3px;
  opacity: 0; color: var(--accent); cursor: pointer; }
.persona-bar .chip:hover .tool { opacity: 1; }
.persona-bar .chip .tool:hover { color: var(--text); }
/* 右侧人设面板: 自建卡的编辑/删除常驻可见(悬停才现太隐蔽) */
.surge-side .persona-bar .chip .tool { opacity: .75; }
.surge-side .persona-bar .chip .tool:hover { opacity: 1; color: var(--red); }
.persona-bar .chip.add { border-style: dashed; color: var(--accent); }
.persona-edit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; }
.persona-edit label { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.persona-edit input { flex: 1; min-width: 0; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; padding: 5px 7px; font-size: 12.5px; }
.persona-custom { padding: 8px 10px; margin-bottom: 8px; border: 1px dashed var(--border);
  border-radius: 8px; background: var(--bg-panel); }
.persona-custom textarea { width: 100%; box-sizing: border-box; resize: vertical;
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 8px; font-size: 12.5px; font-family: inherit; }
.persona-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px;
  font-size: 12px; }
.reply-box { margin-top: 6px; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--r-ctl); background: var(--bg-panel); font-size: 13px; }
.reply-cand { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0;
  border-bottom: 1px dashed var(--border-light); }
.reply-cand:last-of-type { border-bottom: none; }
.reply-cand .badge { flex: none; margin-top: 1px; }
.reply-text { flex: 1; min-width: 0; }
.reply-cand .act { flex: none; }
.reply-wl { flex: none; font-size: 11px; margin-top: 2px; }
.reply-notes { margin-top: 6px; font-size: 11.5px; }
.reply-foot { display: flex; gap: 12px; margin-top: 6px; font-size: 12px;
  align-items: center; }
.reply-foot .act { color: var(--accent); cursor: pointer; }
.reply-foot .act:hover { color: var(--text); }
.rv-text { margin-top: 3px; color: var(--text-dim); display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-full { margin-top: 4px; max-height: 140px; overflow-y: auto; font-size: 12px;
  color: var(--text-dim); white-space: pre-wrap; }

/* 设置页 key 引导块: 注册来源 + 使用说明 */
.key-guide { margin-top: 8px; padding: 8px 10px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-ctl);
  font-size: 11.5px; color: var(--text-mute); line-height: 1.7; }
.key-guide a { color: var(--accent); text-decoration: none; }
.key-guide a:hover { text-decoration: underline; }
.key-guide b { color: var(--text-dim); }
.key-guide code { font-size: 10.5px; }

/* 视频分析页三列: 素材池 | 分析对象+结果(最宽) | 历史分析 */
.analysis-cols { grid-template-columns: 260px minmax(0, 1fr) 300px; }
@media (max-width: 1100px) { .analysis-cols { grid-template-columns: 1fr; } }

/* 左列增速大数: 与金融价值并列, 绿色醒目 */
.surge-rank .prob.growth { color: var(--green); font-size: 20px; }
.surge-rank .prob.growth span { font-size: 11px; }

/* ── 账号追踪: 行内展开详情(accordion; 触发行高亮 + 曲线嵌行下) ── */
table.tbl tr.sel > td { background: var(--accent-weak); }
.xt-detail-row > td { padding: 0 10px 12px; }
.xt-detail { border: 1px solid var(--border); border-radius: var(--r-panel);
  background: var(--bg); padding: 12px 14px; min-width: 0; }

/* ── wb-chart 追踪曲线组件(2026-09-11 图表重做): 坐标轴/网格/刻度/悬停读数 ── */
.chart-wrap { position: relative; margin-top: 4px; }
.chart-grid { stroke: currentColor; stroke-opacity: .08; }
.chart-axis { stroke: currentColor; stroke-opacity: .3; }
.chart-zero { stroke: currentColor; stroke-opacity: .4; stroke-dasharray: 4 3; }
.chart-tick { font-size: 11px; fill: currentColor; fill-opacity: .55; }
.chart-area { fill: var(--accent); opacity: .12; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart-dot { fill: var(--accent); }
.chart-bar { fill: var(--green); opacity: .85; }
.chart-bar-neg { fill: var(--red); opacity: .85; }
.chart-edge { font-size: 11px; font-weight: 600; fill: currentColor; fill-opacity: .75; }
.chart-cursor { stroke: var(--accent); stroke-opacity: .4; }
.chart-dot-hl { fill: var(--accent); stroke: var(--bg); stroke-width: 1.6; }
.chart-tip { position: absolute; transform: translate(-50%, -135%); pointer-events: none;
  background: var(--bg-hover); color: var(--text); border: 1px solid var(--border-light);
  border-radius: 6px; padding: 3px 9px; font-size: 12px; white-space: nowrap;
  box-shadow: 0 2px 8px rgb(0 0 0 / .25); z-index: 5; }
.chart-cap { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
