:root {
  /* ---- 黑金主题（全局统一底板，2026-11-09） ---- */
  --bg: #0a0a0b;             /* 近黑底 */
  --bg-2: #0e0e11;
  --panel: #141417;          /* 面板：比底略亮 */
  --panel-2: #1b1b20;
  --border: #2a2620;        /* 暖黑边（金发丝边由关键组件叠加） */
  --text: #ece6da;          /* 暖白 */
  --text-dim: #8c857a;
  --accent: #e9b756;        /* 金 */
  --accent-2: #d4a23e;
  --up: #f4556b;            /* 涨 红（A股习惯，保持不变） */
  --down: #2fc98d;          /* 跌 绿 */
  --warn: #d9a032;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0,0,0,.5);

  /* 语义色（供主题切换覆盖，原硬编码处已改为引用这些变量） */
  --grad-topbar: linear-gradient(90deg, #0c0c0e, #14110a);
  --grad-thead: linear-gradient(180deg, #1a1813, #14130f);
  --grad-panel: linear-gradient(180deg, #16150f, #101013);
  --logo-grad: linear-gradient(135deg, #e9b756, #d4a23e);
  --toast-bg: #1a1813;
  --toast-fg: #ece6da;
  --toast-err: #7a2230;
  --modal-mask: rgba(0,0,0,.62);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.6);
  --zebra: rgba(233,183,86,.03);
  --row-hover: rgba(233,183,86,.08);
  --code-bg: #141417;
  --grad-login: radial-gradient(1200px 600px at 50% -10%, #1a160d 0%, var(--bg) 60%);

  /* 图表语义色：SVG 由 JS 生成，无法直接写 var()，故在这里集中定义，
     app.js 用 CV() 读取。浅色主题下有同名覆盖，避免「浅色模式配深色图表」。 */
  --chart-axis: #8c857a;
  --chart-grid: #221f18;
  --chart-1: #e9b756;       /* 金 */
  --chart-2: #f0a020;
  --chart-3: #0ca678;
  --chart-4: #b57ef2;
  --chart-5: #d92b3a;
  --chart-up: #f6465d;
  --chart-dn: #2ebd85;

  /* 语义分离：买卖方向 ≠ 涨跌；状态（正常/警告）≠ 涨跌 */
  --buy: #f4556b;        /* 买入 —— A股习惯用红 */
  --sell: #2fc98d;       /* 卖出 —— A股习惯用绿 */
  --ok: #2ea043;         /* 状态：正常 / 已接入 / 运行中 */
}

/* ---- 浅色主题（客户演示/长时间阅读更舒服） ---- */
body[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-2: #eaeef6;
  --panel: #ffffff;
  --panel-2: #f6f8fc;
  --border: #dde3ed;
  --text: #1e2733;
  --text-dim: #5a6675;
  --accent: #1f6feb;
  --accent-2: #1a5fd0;
  --up: #d92b3a;
  --down: #0e9f6e;
  --warn: #b8860b;
  --shadow: 0 2px 10px rgba(16,24,40,.08);

  --grad-topbar: linear-gradient(90deg, #ffffff, #f3f6fb);
  --grad-thead: linear-gradient(180deg, #f8fafc, #eef2f8);
  --grad-panel: #ffffff;
  --logo-grad: linear-gradient(135deg, #2f7ff5, #1f6feb);
  --toast-bg: #ffffff;
  --toast-fg: #1e2733;
  --toast-err: #d92b3a;
  --modal-mask: rgba(16,24,40,.38);
  --shadow-lg: 0 12px 40px rgba(16,24,40,.18);
  --zebra: rgba(16,24,40,.03);
  --row-hover: rgba(31,111,235,.08);
  --code-bg: #f2f5f9;
  --grad-login: radial-gradient(1200px 600px at 50% -10%, #e6edf8 0%, var(--bg) 60%);

  /* 浅色底：全部换成深色/高饱和版本，保证在白底上可读 */
  --chart-axis: #5a6675;
  --chart-grid: #dde3ed;
  --chart-1: #1f6feb;
  --chart-2: #b8860b;
  --chart-3: #0e9f6e;
  --chart-4: #7c3aed;
  --chart-5: #d92b3a;
  --chart-up: #d92b3a;
  --chart-dn: #0e9f6e;

  --buy: #d92b3a;
  --sell: #0e9f6e;
  --ok: #0e9f6e;
}

/* ============ 黑金主题：覆盖硬编码蓝调组件（仅非浅色模式生效） ============ */
body:not([data-theme="light"]) .btn-primary {
  background: linear-gradient(135deg, #e9b756, #d4a23e); border-color: #d4a23e; color: #2a2109;
  box-shadow: 0 2px 10px rgba(233,183,86,.28);
}
body:not([data-theme="light"]) .btn-auto {
  background: linear-gradient(135deg, #e9b756, #d4a23e); border-color: transparent; color: #2a2109;
}
body:not([data-theme="light"]) .um-sw-btn.is-on { background: var(--accent); color: #2a2109; }
body:not([data-theme="light"]) .hud-stat.accent { border-color: rgba(233,183,86,.45); }
body:not([data-theme="light"]) .hud-stat.accent b { color: #e9b756; }
body:not([data-theme="light"]) .hud-stat.accent::after { background: linear-gradient(90deg, #e9b756, transparent); }
body:not([data-theme="light"]) .mk-ticker { background: linear-gradient(180deg, #101011, #141416); border-color: rgba(232,196,120,.10); }
body:not([data-theme="light"]) .mk-ticker::before { background: linear-gradient(90deg, #101011, transparent); }
body:not([data-theme="light"]) .mk-ticker::after { background: linear-gradient(-90deg, #101011, transparent); }
body:not([data-theme="light"]) .adv-sec-title,
body:not([data-theme="light"]) .tm-diag-head { color: var(--accent); }
body:not([data-theme="light"]) .tm-diag-plan { border-left-color: var(--accent); background: rgba(233,183,86,.05); }
body:not([data-theme="light"]) .adv-reasons { border-left-color: var(--accent); background: rgba(233,183,86,.05); }
body:not([data-theme="light"]) .field-inline input { border-color: var(--border); background: var(--panel); color: var(--text); }
body:not([data-theme="light"]) .adv-rt-tabs .seg.active { background: var(--accent); color: #2a2109; }
body:not([data-theme="light"]) .adv-n-value { color: var(--accent); }
body:not([data-theme="light"]) .tag-auto { background: rgba(233,183,86,.14); color: var(--accent); }
body:not([data-theme="light"]) .adv-reasons-list .delta { color: var(--accent); }
body:not([data-theme="light"]) .adv-features b { color: var(--text); }
body:not([data-theme="light"]) .duel-head { color: var(--text); border-bottom-color: var(--border); }
body:not([data-theme="light"]) #tm-ai-col .duel-head { color: var(--accent); }
body:not([data-theme="light"]) .rank-badge.rtop { background: linear-gradient(135deg, #e9b756, #d4a23e); color: #2a2109; box-shadow: 0 0 0 1px rgba(233,183,86,.45); }
body:not([data-theme="light"]) .adv-excluded-list b { color: var(--text); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: var(--grad-topbar);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--logo-grad);
  color: #fff; font-size: 22px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.brand-text h1 { font-size: 17px; margin: 0; font-weight: 700; }
.brand-text p { margin: 2px 0 0; font-size: 12px; color: var(--text-dim); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.badge {
  font-size: 12px; padding: 4px 10px; border-radius: 20px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim);
}
.badge-compliance { color: var(--warn); border-color: rgba(210,153,34,.4); }

/* ---------- 顶栏账户模式切换（虚拟账户 / 实盘账户） ---------- */
.acct-mode { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 20px; }
.acct-mode .am-label { font-size: 12px; color: var(--text-dim); margin-right: 2px; }
.acct-mode .am-seg { font-size: 12px; font-weight: 600; padding: 4px 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--text-dim); border-radius: 16px; transition: .15s; }
.acct-mode .am-seg:hover { color: var(--text); }
.acct-mode .am-seg.active { background: var(--accent); color: #fff; }
.acct-mode .am-seg.active.live { background: var(--up); }   /* 实盘=红(中国习惯) */
.acct-mode.is-live { border-color: rgba(217,43,58,.55); box-shadow: 0 0 0 2px rgba(217,43,58,.12); }

/* ---------- 标签 ---------- */
/* ===== 三层信息架构：分段文件夹式导航（2026-10-25 美化） ===== */
.tabs {
  display: flex; gap: 10px; padding: 9px 18px 0;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  align-items: flex-end; flex-wrap: wrap;
}
/* 一级类目容器：坐到底边的「文件夹」 */
.tab-grp-box {
  display: flex; flex-direction: column; gap: 3px;
  padding: 5px 8px 0; border-radius: 10px 10px 0 0;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--border); border-bottom: none;
}
/* 一级类目名：比页签小但加粗提亮，层级关系一眼可辨 */
.tab-grp-title {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: color-mix(in srgb, var(--text) 62%, transparent);
  padding-left: 6px; user-select: none;
}
/* 「治理与可信」差异化强调：主题色容器 + 左侧竖条 + 徽标 */
.tab-grp-box.is-hot {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  box-shadow: inset 2px 0 0 var(--accent);
}
.tab-grp-box.is-hot .tab-grp-title { color: var(--accent); }
.tab-grp-badge {
  font-style: normal; font-size: 10px; font-weight: 600;
  letter-spacing: .5px; line-height: 1.6;
  padding: 0 5px; border-radius: 4px;
  background: var(--accent); color: #fff;
}
/* 系统组（账号管理/关于）：最弱化，不抢注意力 */
.tab-grp-box.tab-grp-weak {
  background: none; border-color: transparent;
}
.tab-grp-box.tab-grp-weak .tab-grp-title { opacity: .75; }
.tab-grp-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tab-grp-tabs .tab {
  background: none; border: none; color: var(--text-dim);
  padding: 8px 13px; cursor: pointer; font-size: 13px;
  border-radius: 7px 7px 0 0; border-bottom: 2px solid transparent;
}
.tab-grp-tabs .tab:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
/* 选中态：容器内圆角高亮（替代旧的下边框式，容器里下边框会被裁切） */
.tab-grp-tabs .tab.active {
  color: var(--accent); font-weight: 600;
  background: var(--panel);
  box-shadow: 0 -1px 3px rgba(0, 0, 0, .06);
  border-bottom-color: transparent;
}
/* 策略研究父级：与普通 tab 同款，不抢眼；进入后由左侧研究侧栏接管高亮（2026-11-08 融合） */
/* 窄屏：分组整体换行不挤压 */
@media (max-width: 900px) {
  .tabs { gap: 6px; }
  .tab-grp-box { padding: 4px 6px 0; }
  .tab-grp-tabs .tab { padding: 7px 10px; font-size: 12px; }
}

main { padding: 22px; max-width: 1280px; margin: 0 auto; }
.panel { display: none; animation: fade .2s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 18px; }

/* ---------- 表单 ---------- */
.form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px 18px;
  background: var(--panel); padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--border); margin-bottom: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--text-dim); }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 9px 10px; font-size: 14px; width: 100%;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.row2 { display: flex; gap: 8px; }
.row2 input { flex: 1; }
.chk { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); white-space: nowrap; }
.chk > input[type="checkbox"] { width: 14px; height: 14px; flex: 0 0 14px; margin: 0; }
/* 🔴 全局坑修复（2026-10-31 回测中心实拍发现）：.field input{width:100%} 会把勾选框
   撑满整列、文字挤到下一行（方块悬空）——对 label.chk 内的勾选框全局豁免，
   sr-block 的旧局部补丁（2698 行）保留不动 */
.field label.chk { white-space: nowrap; }
.field label.chk > input[type="checkbox"],
.field label.chk > input[type="radio"] {
  width: auto; flex: 0 0 auto; margin: 0; padding: 0;
}
.field:has(> label.chk) {
  flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px;
}
.hint { font-size: 11px; color: var(--text-dim); }
.params { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 12px; }

.actions { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.btn {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 16px; cursor: pointer; font-size: 14px;
}
.btn:hover { border-color: var(--accent); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-primary { background: linear-gradient(135deg, #2f81f7, #1f6feb); border: none; color: #fff; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 行情卡片 ---------- */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 14px; }
.mcard {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; transition: transform .12s, border-color .12s;
}
.mcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.mcard .name { font-weight: 600; }
.mcard .code { font-size: 11px; color: var(--text-dim); }
.mcard .price { font-size: 22px; font-weight: 700; margin: 6px 0 2px; }
.mcard .chg { font-size: 13px; font-weight: 600; }
.mcard .spark { margin-top: 8px; }
.mcard .sig { display: inline-block; margin-top: 8px; font-size: 11px; padding: 2px 8px; border-radius: 12px; }
.sig-long { background: rgba(246,70,93,.15); color: var(--up); }
.sig-flat { background: var(--panel-2); color: var(--text-dim); }
.up { color: var(--up); }
.down { color: var(--down); }
.warn { color: #b7791f; }
.loading { color: var(--text-dim); padding: 20px; }
.inst-pane { margin-top: 12px; }
.inst-pane.hidden { display: none !important; }
.inst-pane table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 13px; }
.inst-pane th, .inst-pane td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; }
.inst-pane th { background: var(--panel-2); font-weight: 600; }
.inst-pane h3 { font-size: 14px; margin: 16px 0 6px; }

.warn-box {
  background: rgba(210,153,34,.10); border: 1px solid rgba(210,153,34,.45);
  color: var(--warn); border-radius: var(--radius); padding: 12px 14px;
  font-size: 13px; margin-bottom: 12px;
}
.warn-box b { display: block; margin-bottom: 4px; }

/* ---------- 指标卡 ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin: 14px 0; }
.metric {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px;
}
.metric .k { font-size: 12px; color: var(--text-dim); }
.metric .v { font-size: 20px; font-weight: 700; margin-top: 4px; }
.metric .sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
#adv-cap-kpis .metric .v { font-size: 16px; line-height: 1.35; }
.metric-click { cursor: pointer; transition: border-color .15s, transform .1s; }
.metric-click:hover { border-color: var(--accent); transform: translateY(-1px); }

/* 组合因子案例 · 动态排名 */
.cc-rank-bar { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; flex-wrap: wrap; }
.rank-table td.rank-1, .rank-table td.rank-2, .rank-table td.rank-3 { font-weight: 700; }
.rank-badge { display:inline-block; min-width: 22px; text-align:center; padding: 1px 6px; border-radius: 10px; font-size: 12px; font-weight:700; color:#fff; background: var(--text-dim); }
.rank-badge.r1 { background: linear-gradient(135deg,#ffd94d,#d4a017); color:#4a2f00; box-shadow:0 0 0 1px rgba(212,160,23,.55), 0 2px 8px rgba(212,160,23,.35); }
.rank-badge.r2 { background: linear-gradient(135deg,#eef2f6,#a9b4c2); color:#2c3440; box-shadow:0 0 0 1px rgba(140,150,165,.55), 0 2px 8px rgba(140,150,165,.3); }
.rank-badge.r3 { background: linear-gradient(135deg,#e6b07a,#a06a3a); color:#3a2100; box-shadow:0 0 0 1px rgba(160,106,58,.55), 0 2px 8px rgba(160,106,58,.3); }
.rank-badge.rtop { background: linear-gradient(135deg,#3b82f6,#1d4ed8); color:#fff; box-shadow:0 0 0 1px rgba(59,130,246,.45); }
.rank-table td.rank-1, .rank-table td.rank-2, .rank-table td.rank-3 { font-weight: 800; }

/* ---------- 交易监控：实盘/虚拟账户 ---------- */
.sub-h2 { font-size: 14px; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
.tm-live-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; flex-wrap: wrap; }
.tm-live-main { min-width: 0; }
.tm-live-name { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tm-live-act { flex: 0 0 auto; }
.bk-status { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.bk-status.bk-on { background: rgba(46,160,67,.15); color: var(--ok); border: 1px solid rgba(46,160,67,.4); }
.bk-status.bk-off { background: rgba(139,152,169,.15); color: var(--text-dim); border: 1px solid var(--border); }
.badge-warn { background: rgba(210,153,34,.15); color: #d29922; border: 1px solid rgba(210,153,34,.4); }
/* 原名 up-badge：在中文语境 up=涨，但它其实是「状态正常」，极易误读，故改名 */
.badge-ok { background: rgba(46,160,67,.15); color: var(--ok); border: 1px solid rgba(46,160,67,.4); }
.up-badge { background: rgba(46,160,67,.15); color: var(--ok); border: 1px solid rgba(46,160,67,.4); }
.badge-danger { background: rgba(229,72,77,.15); color: #e5484d; border: 1px solid rgba(229,72,77,.45); }
.btn-danger { background: rgba(229,72,77,.15); color: #e5484d; border: 1px solid rgba(229,72,77,.45); }
.btn-danger:hover { background: rgba(229,72,77,.25); }
.rk-live-box { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; background: var(--panel-2); }
.rk-live-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rk-live-head b { font-size: 14px; }
.rk-live-ts { font-size: 11px; color: var(--text-dim); }
.rk-live-body { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.rk-state-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.rk-state-row > span:first-child { color: var(--text-dim); }
.rk-reason { text-align: right; max-width: 64%; }
.rk-live-msg { margin-top: 8px; }
.bk-detail { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-top: 14px; background: var(--bg); }
.bk-detail-head { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 6px; }
.bk-pending-tip { margin-left: 10px; font-size: 13px; }
#broker-modal select { width: 100%; }
/* 因子库工具行：搜索 + 展开/收起 同行右对齐 */
.fl-toolbar { display: flex; gap: 10px; align-items: center; margin: 4px 0 12px; }
.fl-toolbar input { flex: 1 1 auto; min-width: 0; }
.fl-toolbar .btn { flex: 0 0 auto; white-space: nowrap; }
/* 主题切换按钮 */
.theme-btn { padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 20px; }
/* 实时行情指示（呼吸灯，让"动态变化"一眼可见） */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); margin-right: 6px; vertical-align: middle; animation: livePulse 1.6s infinite; }
.live-dot.off { background: var(--text-dim, #999); animation: none; }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(244,85,107,.65); }
  70%  { box-shadow: 0 0 0 7px rgba(244,85,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,85,107,0); }
}
/* 今日实时穿透：排名表「盘中」小标签 + 实时行情徽标 */
.live-tag { display: inline-block; font-size: 10px; line-height: 1; padding: 1px 4px; border-radius: 4px; background: rgba(244,85,107,.14); color: var(--up); margin-left: 4px; vertical-align: middle; }
.live-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 12px; background: rgba(244,85,107,.12); color: var(--up); margin-left: 4px; vertical-align: middle; }
.live-badge.muted { background: rgba(128,128,128,.12); color: var(--text-dim, #888); }
.adv-bt-live { margin: 8px 0; padding: 6px 10px; border-radius: 8px; background: rgba(244,85,107,.08); font-size: 13px; font-weight: 600; }
.adv-bt-live.up { color: var(--up); }
.adv-bt-live.down { color: var(--down); }

/* 实盘接入就绪度清单 */
.ready-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 8px; margin-top: 6px; }
.ready-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); font-size: 13px; }
.ready-item .ready-mark { font-weight: 700; }
.ready-item.ok { border-color: rgba(46,160,67,.4); }
.ready-item.ok .ready-mark { color: #2ea043; }
.ready-item.no { opacity: .78; }
.ready-item.no .ready-mark { color: var(--text-dim); }

.result-meta {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 8px; font-size: 13px; color: var(--text-dim);
}
.result-meta b { color: var(--text); }

/* ---------- 图表 ---------- */
.chart-block { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.chart-block h3 { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.chart { width: 100%; overflow: hidden; }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.legend i { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 5px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-dim); font-weight: 600; background: var(--bg-2); position: sticky; top: 0; }
td:first-child, th:first-child { text-align: left; }
tbody tr:hover { background: var(--panel-2); }

/* ---------- 研报 ---------- */
.report-actions { margin-bottom: 8px; }
.md { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 16px; font-size: 13px; overflow-x: auto; }
.md h1, .md h2, .md h3 { color: var(--text); margin: 14px 0 8px; }
.md h1 { font-size: 18px; } .md h2 { font-size: 16px; } .md h3 { font-size: 14px; }
.md table { margin: 8px 0; }
.md th, .md td { border: 1px solid var(--border); }
.md blockquote { border-left: 3px solid var(--warn); margin: 10px 0; padding: 8px 12px; color: var(--text-dim); background: rgba(210,153,34,.06); }
.md code, .md pre { background: var(--panel-2); padding: 2px 6px; border-radius: 4px; }
.md pre { padding: 12px; overflow-x: auto; }

.disclaimer { color: var(--text-dim); font-size: 12px; margin-top: 14px; }
.about-box { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; max-width: 820px; }
.about-box ul { padding-left: 20px; }
.about-box pre { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px; overflow-x: auto; }
.about-box blockquote { border-left: 3px solid var(--warn); margin: 10px 0; padding: 8px 12px; color: var(--text-dim); }

/* ---------- 仪表盘内嵌区块 ---------- */
.dash-block { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---------- 规则筹码 ---------- */
.chipbox { display: flex; flex-direction: column; gap: 8px; }
.chipgrp { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cgl { font-size: 12px; color: var(--text-dim); min-width: 78px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 5px 12px; font-size: 12px; color: var(--text); cursor: pointer;
}
.chip input { accent-color: var(--accent); }
.chip:hover { border-color: var(--accent); }
.chip-buy { border-left: 3px solid var(--up); }
.chip-sell { border-left: 3px solid var(--down); }
.chip-off { opacity: .45; cursor: not-allowed; }
.chip-off input { cursor: not-allowed; }
.chip.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.chip.cat { border-radius: 8px; }

/* ---------- 因子库 ---------- */
.sep { border: none; border-top: 1px solid var(--border); margin: 30px 0; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.tag-ok { background: rgba(46,160,67,.14); color: var(--up); }
.tag-pending { background: rgba(210,153,34,.16); color: var(--warn); }
.tag-fund { background: rgba(47,129,247,.14); color: var(--accent); }
.dir-up { color: var(--up); font-weight: 700; }
.dir-down { color: var(--down); font-weight: 700; }
.dir-0 { color: var(--text-dim); }
#fl-rows td.fx { max-width: 240px; white-space: normal; color: var(--text-dim); font-size: 12px; }
#fl-rows code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: 11px; }


/* ---------- PK 胜出格 ---------- */
td.win { color: var(--up); font-weight: 700; background: rgba(246,70,93,.10); }

/* ---------- 券商通道 ---------- */
.badge-broker { color: var(--warn); border-color: rgba(210,153,34,.4); }
.badge-live { color: var(--down); border-color: rgba(46,189,133,.45); }
.broker-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 13px; margin: 8px 0; }
.broker-box div { margin-bottom: 4px; }

.footer { text-align: center; color: var(--text-dim); font-size: 12px; padding: 24px; border-top: 1px solid var(--border); margin-top: 20px; }
.hidden { display: none !important; }

.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form input { background: var(--bg-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 7px 10px; font-size: 13px; width: 220px; }

/* 个股列表分页 */
.mk-pager { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mk-pager-info { font-size: 12px; color: var(--text-dim, #94A3B8); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-page-btn { min-width: 72px; }
.mk-page-btn:disabled { opacity: .38; cursor: not-allowed; }

/* ---------- 登录 / 安装 浮层（2026-11-07 专业版：模仿样板 v2 金红科技感） ---------- */
.login-view {
  --brand-gold:#C9A227; --brand-gold-soft:#E3C566; --accent:#E6B422; --accent-strong:#F4D879;
  --up:#E5484D; --down:#2FBF71;
  --lv-bg:#0B0A0D; --lv-surface:rgba(20,16,22,.82); --lv-line:#2C2632; --lv-line-strong:#3A3340;
  --lv-text:#F3EEE9; --lv-text-2:#B0A499; --lv-text-3:#6E655C;
  --lv-glow:0 0 26px rgba(230,180,34,.22);
  position: fixed; inset: 0; z-index: 100; display: grid;
  background: var(--lv-bg); color: var(--lv-text); overflow: hidden;
  font-family: "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
.login-bg { position:absolute; inset:0; z-index:0; pointer-events:none; }
.login-grid { position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(230,180,34,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,180,34,.05) 1px, transparent 1px);
  background-size:48px 48px;
  -webkit-mask-image:radial-gradient(ellipse 80% 80% at 30% 50%, #000 20%, transparent 90%);
  mask-image:radial-gradient(ellipse 80% 80% at 30% 50%, #000 20%, transparent 90%);
}
.login-glow { position:absolute; border-radius:50%; filter:blur(60px); }
.login-glow-1 { left:-180px; top:15%; width:560px; height:560px; background:radial-gradient(circle, rgba(40,30,12,.9), transparent 65%); }
.login-glow-2 { right:-120px; bottom:-160px; width:480px; height:480px; background:radial-gradient(circle, rgba(230,180,34,.10), transparent 65%); }
#loginParticles { position:absolute; inset:0; }
.login-wrap { position:relative; z-index:10; width:100%; max-width:1120px; margin:0 auto; align-self:center;
  display:grid; grid-template-columns:1.15fr 1fr; gap:40px; padding:32px; }
.login-left { display:flex; flex-direction:column; justify-content:center; }
.login-right { display:flex; align-items:center; justify-content:center; }
.login-brand { display:flex; align-items:center; gap:14px; margin-bottom:28px; }
.login-logo { width:52px; height:52px; border-radius:13px; box-shadow:0 0 28px rgba(230,180,34,.4); }
.login-brand h1 { font-size:19px; margin:0; font-weight:700; letter-spacing:.5px; }
.login-brand p { margin:3px 0 0; font-size:12px; color:var(--lv-text-3); letter-spacing:1px; }
.login-slogan { font-size:32px; font-weight:800; line-height:1.3; margin-bottom:18px; }
.login-slogan em { font-style:normal; color:var(--brand-gold); }
.login-slogan .g { background:linear-gradient(100deg, var(--accent-strong), #F7F5EF); -webkit-background-clip:text; background-clip:text; color:transparent; }
.login-sub { font-size:14px; color:var(--lv-text-2); line-height:1.9; max-width:460px; margin-bottom:28px; }
.login-mini { display:flex; gap:14px; margin-bottom:24px; max-width:520px; flex-wrap:wrap; }
.lm-card { flex:1; min-width:140px; background:var(--lv-surface); border:1px solid var(--lv-line); border-radius:12px; padding:12px 14px; backdrop-filter:blur(6px); }
.lm-card .t { font-size:11px; color:var(--lv-text-3); margin-bottom:5px; display:flex; align-items:center; gap:6px; }
.lm-card .v { font-size:18px; font-weight:700; font-family:"SF Mono","Consolas",monospace; font-variant-numeric:tabular-nums; }
.lm-card .v.gold { color:var(--brand-gold); }
.lm-card .d { font-size:11px; font-family:"SF Mono","Consolas",monospace; margin-top:3px; color:var(--lv-text-3); }
.dot { width:6px; height:6px; border-radius:50%; background:var(--up); position:relative; display:inline-block; }
.dot::after { content:""; position:absolute; inset:-3px; border-radius:50%; border:1px solid var(--up); animation:pulse 2s infinite; }
@keyframes pulse { 0%{transform:scale(.5);opacity:1} 100%{transform:scale(1.7);opacity:0} }
.login-trust { display:flex; gap:22px; flex-wrap:wrap; }
.login-trust .it { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--lv-text-2); }
.login-trust .ic { width:26px; height:26px; border-radius:7px; background:rgba(230,180,34,.10); border:1px solid rgba(230,180,34,.25); display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--accent-strong); }
.login-card { position:relative; width:100%; max-width:400px; background:var(--lv-surface);
  backdrop-filter:blur(14px); border:1px solid var(--lv-line-strong); border-radius:20px; padding:32px;
  box-shadow:0 20px 60px rgba(0,0,0,.5), var(--lv-glow); overflow:hidden; }
.login-card-bar { position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg, var(--brand-gold), var(--accent-strong), transparent); }
.login-card h2 { font-size:20px; font-weight:700; margin:0 0 6px; }
.login-card .hint { margin-bottom:20px; color:var(--lv-text-2); font-size:13px; }
.lf-label { display:block; font-size:12px; color:var(--lv-text-2); margin:14px 0 6px; }
.login-card input { width:100%; background:var(--lv-bg); border:1px solid var(--lv-line-strong); color:var(--lv-text); border-radius:10px; padding:12px 14px; font-size:14px; font-family:inherit; transition:.18s; }
.login-card input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(230,180,34,.15); }
.lf-btn { width:100%; margin-top:18px; padding:12px; font-size:15px; font-weight:700; letter-spacing:2px; border:none;
  color:#1A1208; cursor:pointer; border-radius:10px; position:relative; overflow:hidden;
  background:linear-gradient(135deg, var(--accent), var(--accent-strong)); box-shadow:var(--lv-glow); transition:.2s; }
.lf-btn:hover { filter:brightness(1.08); }
.lf-btn::after { content:""; position:absolute; top:0; left:-80%; width:60%; height:100%; background:linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); animation:sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 0%,60%{left:-80%} 100%{left:130%} }
.lf-msg { margin-top:12px; font-size:12px; color:var(--lv-text-3); min-height:16px; }
.lf-msg.err { color:var(--up); }
.demo-hint { margin-top:14px; font-size:11px; color:var(--lv-text-3); line-height:1.7; background:rgba(230,180,34,.06); border:1px solid var(--lv-line); border-radius:10px; padding:10px 12px; }
.demo-hint b { color:var(--brand-gold); }
.login-legal { margin-top:18px; padding-top:14px; border-top:1px solid var(--lv-line); font-size:11px; color:var(--lv-text-3); line-height:1.7; }
.login-legal a { color:var(--accent-strong); text-decoration:none; }
.login-foot { margin-top:16px; padding-top:14px; border-top:1px solid var(--lv-line);
  text-align:center; font-size:11px; color:var(--lv-text-3); }
@media (max-width: 860px) { .login-wrap { grid-template-columns:1fr; } .login-left { display:none; } }

/* ---------- 用户菜单 ---------- */
.user-menu { display: flex; align-items: center; gap: 8px; }
.um-name { font-size: 13px; font-weight: 600; }
.um-badge { font-size: 11px; padding: 3px 9px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); }
.um-risk { color: var(--warn); border-color: rgba(210,153,34,.4); }
.um-sub { font-size: 11px; color: var(--text-dim); }
/* 身份切换（管理员 / 员工） */
.um-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px;
  border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.um-sw-btn { font-size: 11px; padding: 3px 10px; border-radius: 10px; cursor: pointer;
  background: transparent; border: none; color: var(--text-dim); line-height: 1.4; }
.um-sw-btn:hover { color: var(--text); }
.um-sw-btn.is-on { background: var(--accent, #2f6df6); color: #fff; }

/* ---------- 首页 Hero（视觉强化） ---------- */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: stretch;
  background: linear-gradient(135deg, #131c2e, #0f1622);
  border: 1px solid var(--border); border-radius: 16px; padding: 26px; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(47,129,247,.25), transparent 70%); pointer-events: none;
}
.hero-tag { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: rgba(47,129,247,.15); color: var(--accent); border: 1px solid rgba(47,129,247,.4); }
.hero-title { font-size: 26px; margin: 12px 0 8px; font-weight: 800; letter-spacing: .5px; }
.hero-sub { color: var(--text-dim); font-size: 13px; line-height: 1.7; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 18px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.hero-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.hero-stat .hk { font-size: 12px; color: var(--text-dim); }
.hero-stat .hv { font-size: 24px; font-weight: 800; margin: 4px 0 2px; color: var(--text); }
.hero-stat .hs { font-size: 11px; color: var(--text-dim); }

/* ---------- 账号管理 ---------- */
.admin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.admin-col h3 { font-size: 15px; margin: 0 0 12px; }
.adm-ops { white-space: nowrap; }
.btn-danger { color: var(--up); border-color: rgba(246,70,93,.5); }
.btn-danger:hover { background: rgba(246,70,93,.12); }

/* ---------- 因子库二级手风琴 ---------- */
.factor-accordion { display: flex; flex-direction: column; gap: 5px; margin: 2px 0 4px; }
.fa-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.fa-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; user-select: none; transition: background .12s; }
.fa-head:hover { background: rgba(47,129,247,.07); }
.fa-arrow { color: var(--accent); font-size: 11px; width: 12px; text-align: center; flex: 0 0 auto; }
.fa-name { font-weight: 600; font-size: 13px; color: var(--text); min-width: 48px; flex: 0 0 auto; letter-spacing: .2px; }
.fa-desc-meta { color: var(--text-dim); font-size: 12.5px; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 分类因子数占比条：把行内空白变成信息（宽度=该分类因子数/最大分类） */
.fa-bar {
  flex: 0 1 220px; min-width: 80px; height: 4px; margin-left: auto;
  background: rgba(127, 127, 127, .24); border-radius: 2px; overflow: hidden;
  align-self: center;
}
.fa-bar > i { display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, rgba(61,139,253,.85), rgba(61,139,253,.35)); }
.fa-count { font-size: 12px; color: var(--text-dim); flex: 0 0 auto; font-variant-numeric: tabular-nums; min-width: 108px; text-align: right; }
.fa-sel { font-size: 11.5px; color: var(--up); font-weight: 600; flex: 0 0 auto; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.fa-body { padding: 6px 10px 10px; border-top: 1px solid var(--border); background: var(--bg); }
.fa-row { display: grid; grid-template-columns: 22px minmax(120px,1.1fr) 96px 130px 1.4fr 1fr 1.6fr; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.fa-row:last-child { border-bottom: none; }
.fa-row:hover { background: rgba(47,129,247,.05); }
.fa-row.is-pending { opacity: .72; }
.fa-fname { font-size: 13px; }
.fa-dir { font-size: 12px; white-space: nowrap; }
.fa-data { font-size: 11px; }
.fa-formula code { font-size: 11px; color: var(--accent); background: rgba(47,129,247,.08); padding: 1px 5px; border-radius: 5px; white-space: nowrap; }
.fa-src { color: var(--text-dim); font-size: 11px; }
.fa-desc { color: var(--text-dim); font-size: 11px; line-height: 1.35; }
@media (max-width: 1100px) {
  .fa-row { grid-template-columns: 22px minmax(100px,1fr) 90px 120px; grid-auto-rows: auto; row-gap: 2px; }
  .fa-formula, .fa-src, .fa-desc { grid-column: 2 / -1; }
}

/* ---------- 行情页 ---------- */
.sub-h { font-size: 16px; margin: 22px 0 10px; padding-left: 10px; border-left: 3px solid var(--accent); }
.mk-indices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.mk-idx { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; position: relative; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.mk-idx:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.mk-idx-name { font-size: 12px; color: var(--text-dim); }
.mk-idx-last { font-size: 26px; font-weight: 800; margin: 4px 0 2px; }
.mk-idx-chg { font-size: 15px; font-weight: 700; }
.mk-breadth { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 0; }
.br { font-size: 14px; color: var(--text-dim); }
.br b { font-size: 16px; color: var(--text); }
.br.up b { color: var(--up); }
.br.down b { color: var(--down); }
.br.avg b { color: var(--accent); }
.mk-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mk-board h4 { font-size: 14px; margin: 0 0 8px; color: var(--text); }
.mk-board .data-table td { padding: 6px 8px; }
.muted { color: var(--text-dim); font-size: 11px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 全市场 A 股（可收缩板块） ---------- */
.mkall-board { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; background: var(--panel); }
.mkall-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--panel-2); border: 0; cursor: pointer; color: var(--text); font-size: 14px; text-align: left; }
.mkall-head:hover { background: var(--bg-2); }
.mkall-head-static { cursor: default; }
.mkall-arrow { width: 16px; color: var(--text-dim); flex: none; }
.mkall-name { font-weight: 700; }
.mkall-count { font-size: 12px; color: var(--text-dim); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 1px 9px; }
.mkall-up { margin-left: auto; font-size: 12px; color: var(--up); font-weight: 600; }
.mkall-body { padding: 0; }
.mkall-scroll { max-height: 540px; overflow: auto; }
.mkall-more { margin: 8px 12px 12px; }
.mkall-scroll .data-table thead th { position: sticky; top: 0; z-index: 1; }
.mkall-scroll .data-table th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
.mkall-scroll .data-table th[data-sort]:hover { color: var(--accent); }
.mkall-sort-active { color: var(--accent); }
/* ---------- 板块监控 ---------- */
.bm-summary { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px; }
.bm-sum-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.bm-sum-card b { font-size: 18px; font-variant-numeric: tabular-nums; }
.bm-sum-label { color: var(--text-dim); font-size: 12px; }
.bm-legend { gap: 10px; }
.bm-leg { display: inline-block; width: 26px; height: 10px; border-radius: 3px; vertical-align: middle; }
.bm-leg.up { background: rgba(229,57,53,.55); }
.bm-leg.down { background: rgba(46,160,67,.55); }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bm-card { position: relative; background: var(--panel-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 14px 12px; cursor: pointer; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.bm-card::before { content: ""; position: absolute; inset: 0; background: var(--bm-heat, transparent); opacity: .14; pointer-events: none; transition: opacity .3s ease; }
.bm-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.bm-card:hover::before { opacity: .24; }
.bm-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bm-name { font-size: 15px; font-weight: 700; }
.bm-chg { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bm-bar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; margin: 9px 0 8px; background: var(--panel); }
.bm-bar-up { background: var(--up); transition: width .4s ease; }
.bm-bar-down { background: var(--down); transition: width .4s ease; }
.bm-stats { display: flex; gap: 12px; font-size: 12px; font-variant-numeric: tabular-nums; }
.bm-stats .up { color: var(--up); } .bm-stats .down { color: var(--down); } .bm-stats .flat { color: var(--text-dim); }
.bm-detail { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.bm-row { display: flex; justify-content: space-between; gap: 8px; color: var(--text-dim); }
.bm-row b { font-variant-numeric: tabular-nums; }

/* ---------- 行情页 HUD 终端风（滚动行情带 / 市场全景 / 行业板块） ---------- */
.mk-ticker { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: linear-gradient(180deg, #101623, #141b29); position: relative; margin: 2px 0 12px; }
.mk-ticker::before, .mk-ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 2; pointer-events: none; }
.mk-ticker::before { left: 0; background: linear-gradient(90deg, #101623, transparent); }
.mk-ticker::after { right: 0; background: linear-gradient(-90deg, #101623, transparent); }
.mk-ticker-track { display: inline-flex; align-items: center; white-space: nowrap; padding: 6px 0; animation: mk-ticker-scroll 60s linear infinite; will-change: transform; }
.mk-ticker:hover .mk-ticker-track { animation-play-state: paused; }
@keyframes mk-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk-item { display: inline-flex; align-items: baseline; gap: 6px; padding: 0 16px; font-size: 12px; border-right: 1px solid rgba(148,165,184,.12); }
.tk-item .tk-name { color: var(--text-dim); font-family: ui-monospace, Consolas, monospace; letter-spacing: .4px; }
.tk-item .tk-val { color: var(--text); }
.tk-item b { font-weight: 600; }

.hud-panel { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); position: relative; margin-bottom: 12px; overflow: hidden; }
/* 四角刻度线（终端 HUD 语言） */
.hud-panel::before, .hud-panel::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; z-index: 1; }
.hud-panel::before { top: -1px; left: -1px; border-top: 2px solid rgba(61,139,253,.55); border-left: 2px solid rgba(61,139,253,.55); border-top-left-radius: 10px; }
.hud-panel::after { bottom: -1px; right: -1px; border-bottom: 2px solid rgba(61,139,253,.55); border-right: 2px solid rgba(61,139,253,.55); border-bottom-right-radius: 10px; }
.hud-panel-h { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; color: var(--text); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(61,139,253,.07), transparent); }
.hud-panel-sub { font-weight: 400; letter-spacing: .3px; color: var(--text-dim); font-size: 11px; }

.hud-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; margin-bottom: 12px; }
.hud-stat { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-2); position: relative; overflow: hidden; }
.hud-stat span { font-size: 11px; color: var(--text-dim); font-family: ui-monospace, Consolas, monospace; letter-spacing: .8px; }
.hud-stat b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hud-stat.up { border-color: rgba(244,85,107,.4); } .hud-stat.up b { color: var(--up); } .hud-stat.up::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--up), transparent); }
.hud-stat.down { border-color: rgba(47,201,141,.4); } .hud-stat.down b { color: var(--down); } .hud-stat.down::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--down), transparent); }
.hud-stat.accent { border-color: rgba(61,139,253,.45); } .hud-stat.accent b { color: #6ea8ff; } .hud-stat.accent::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, #3d8bfd, transparent); }
.hud-stat.accent2 { border-color: rgba(150,112,255,.45); } .hud-stat.accent2 b { color: #b39bff; } .hud-stat.accent2::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, #9670ff, transparent); }
.hud-stat.amber { border-color: rgba(217,160,50,.45); } .hud-stat.amber b { color: #e8b95a; } .hud-stat.amber::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, #d9a032, transparent); }

/* 浅色主题：彩色指标盒数字/边框加深一档，保证浅底可读（深档取自 light 变量） */
body[data-theme="light"] .hud-stat.accent { border-color: rgba(31,111,235,.35); }
body[data-theme="light"] .hud-stat.accent b { color: #1f6feb; }
body[data-theme="light"] .hud-stat.accent::after { background: linear-gradient(90deg, #1f6feb, transparent); }
body[data-theme="light"] .hud-stat.accent2 { border-color: rgba(124,58,237,.35); }
body[data-theme="light"] .hud-stat.accent2 b { color: #7c3aed; }
body[data-theme="light"] .hud-stat.accent2::after { background: linear-gradient(90deg, #7c3aed, transparent); }
body[data-theme="light"] .hud-stat.amber { border-color: rgba(184,134,11,.35); }
body[data-theme="light"] .hud-stat.amber b { color: #b8860b; }
body[data-theme="light"] .hud-stat.amber::after { background: linear-gradient(90deg, #b8860b, transparent); }

.pano-wrap { position: relative; }
#pano-canvas { display: block; width: 100%; height: 380px; }
.pano-tip { position: absolute; z-index: 5; pointer-events: none; background: rgba(13,18,28,.94); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 12px; line-height: 1.5; box-shadow: var(--shadow-lg); max-width: 200px; }
.pano-row2 { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
@media (max-width: 900px) { .pano-row2 { grid-template-columns: 1fr; } }
#pano-dist { display: block; width: 100%; height: 170px; }
.pano-sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; padding: 10px 12px 12px; }
.ind-more { grid-column: 1 / -1; text-align: right; padding: 2px 4px; }

.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; padding: 12px; }
.ind-tile { border-radius: 8px; padding: 9px 11px; border: 1px solid var(--border); transition: transform .15s ease, box-shadow .15s ease; }
.ind-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ind-tile-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ind-tile-top b { font-size: 14px; font-weight: 700; }
.ind-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind-tile-sub { display: flex; gap: 10px; font-size: 11px; color: var(--text-dim); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ind-lead { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind-lead b { color: var(--text); }
.ind-tile.sm { padding: 7px 9px; display: flex; justify-content: space-between; align-items: baseline; }
.ind-tile.sm b { font-size: 12.5px; }
.ind-tile.up .ind-name { color: var(--text); }
.ind-tile.down b { color: var(--down); }
.ind-tile.up b { color: var(--up); }

/* 浅色主题 HUD 适配 */
body[data-theme="light"] .mk-ticker { background: linear-gradient(180deg, #ffffff, #f2f5fa); }
body[data-theme="light"] .mk-ticker::before { background: linear-gradient(90deg, #ffffff, transparent); }
body[data-theme="light"] .mk-ticker::after { background: linear-gradient(-90deg, #ffffff, transparent); }
body[data-theme="light"] .pano-tip { background: rgba(255,255,255,.96); }

/* ---------- 组合因子案例卡 ---------- */
.cc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 10px; margin: 2px 0 4px; }
.cc-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cc-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cc-name { font-size: 13.5px; font-weight: 600; color: var(--text); min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-badge { flex: 0 0 auto; max-width: 46%; overflow: hidden; text-overflow: ellipsis;
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: rgba(47,129,247,.14); color: var(--accent); border: 1px solid rgba(47,129,247,.35); white-space: nowrap; }
.cc-desc { font-size: 11.5px; color: var(--text-dim); line-height: 1.6; margin: 0; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cc-chip { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; background: var(--panel); border: 1px solid var(--border); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.cc-chip b { font-weight: 700; }
.cc-chip.up b { color: var(--up); }
.cc-chip.down b { color: var(--down); }
.cc-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
/* 52 张卡片各放一个实心主按钮会变成"蓝色噪音墙"，主操作改为描边、hover 才点亮 */
.cc-card .btn.cc-run { color: var(--accent); border-color: rgba(61, 139, 253, .45); background: rgba(61, 139, 253, .10); }
.cc-card .btn.cc-run:hover { background: rgba(61, 139, 253, .22); color: #fff; }
.cc-card .btn { font-size: 11.5px; padding: 4px 9px; }
.cc-msg { font-size: 11px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cc-cards { grid-template-columns: 1fr; }
}

/* ---------- 扫描进度圈 / AI 扫描中（规则区右侧面板） ---------- */
.scan-form-row { display: flex; gap: 16px; align-items: stretch; }
.scan-form-row .form-grid { flex: 1 1 auto; min-width: 0; }
.scan-progress {
  flex: 0 0 280px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px 16px;
  background: var(--panel); border: 1px dashed var(--border); border-radius: var(--radius);
  margin-bottom: 16px; min-height: 220px;
}
.scan-progress.hidden { display: none !important; }
.scan-progress.live { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(47,129,247,.25) inset; }
.spinner-ring {
  width: 62px; height: 62px; border-radius: 50%;
  border: 6px solid rgba(47, 129, 247, .18);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-text { font-weight: 600; color: var(--text); font-size: 15px; }
.spinner-stage { color: var(--text-dim); font-size: 13px; min-height: 18px; text-align: center; }
@media (max-width: 980px) {
  .scan-form-row { flex-wrap: wrap; }
  .scan-progress { flex: 1 1 100%; min-height: 160px; }
}

/* ---------- 因子选股（扫描面板） ---------- */
.factor-pick-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.factor-picker { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; background: var(--panel-2); }
.fp-row { display: grid; grid-template-columns: 1fr 150px 96px 28px; align-items: center; gap: 8px; }
.fp-name { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-name small { color: var(--text-dim); margin-left: 6px; }
.fp-weight { display: flex; align-items: center; gap: 4px; }
.fp-weight input { width: 100%; }
.fp-weight .fp-sign { width: 22px; text-align: center; color: var(--text-dim); cursor: pointer; user-select: none; }
.fp-del { color: var(--text-dim); cursor: pointer; text-align: center; }
.fp-del:hover { color: var(--danger, #e5484d); }
.factor-opt-row { display: flex; gap: 16px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.factor-opt-row select, .factor-opt-row input { padding: 4px 6px; }
.fp-hint { color: var(--text-dim); font-size: 12px; padding: 6px 2px; }
.fp-score-cell { display: flex; flex-direction: column; gap: 2px; }
.fp-score { font-weight: 700; font-size: 14px; }
.fp-contrib { display: flex; flex-wrap: wrap; gap: 4px; }
.fp-chip { font-size: 11px; padding: 1px 6px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim); }
.fp-chip.up { color: var(--up, #e5484d); border-color: var(--up, #e5484d); }
.fp-chip.down { color: var(--down, #2ea043); border-color: var(--down, #2ea043); }

/* ---------- 交易模式切换 ---------- */
.mode-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.mode-label { color: var(--text-dim); font-size: 13px; }
.seg {
  border: 1px solid var(--border); background: var(--panel-2);
  color: var(--text-dim); padding: 6px 12px; border-radius: 999px;
  cursor: pointer; font-size: 13px;
}
.seg.active { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 1px var(--accent); }
.btn-auto { background: linear-gradient(135deg, #2f81f7, #1f6feb); border-color: transparent; color: #fff; }

/* ---------- 券商配置 ---------- */
.broker-status-line { margin-bottom: 10px; }
.broker-form .actions { margin-top: 6px; }

/* ---------- 手动下单弹窗 ---------- */
.modal { position: fixed; inset: 0; background: var(--modal-mask); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal.hidden { display: none; }
.modal-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; width: 380px; max-width: 92vw; box-shadow: var(--shadow-lg); }
.modal-card h3 { margin: 0 0 14px; }
.modal-card .actions { margin-top: 12px; }

/* ---------- 大尺寸弹窗（全网扫描） ---------- */
.modal-card.modal-wide { width: min(1080px, 94vw); max-height: 90vh; display: flex; flex-direction: column; padding: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.modal-title { font-size: 16px; font-weight: 700; color: var(--text); }
.modal-close { border: none; background: transparent; font-size: 18px; cursor: pointer; color: var(--text-dim); padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 18px 20px; overflow: auto; flex: 1 1 auto; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--border); flex: 0 0 auto; }
#scan-modal .result-meta { margin-top: 0; }

/* ============ 全网自选弹窗：雷达扫描圆盘（2026-11-22 参照设计稿重构） ============ */
#scan-modal .scan-progress {
  margin: 6px 0 16px;
  background: transparent; border: none; box-shadow: none;
  min-height: 380px; padding: 8px 16px;
}
#scan-modal .scan-progress.live { border-color: transparent; box-shadow: none; }

.radar {
  position: relative;
  width: min(clamp(360px, 44vh, 620px), 86vw); aspect-ratio: 1 / 1;
  margin: 0 auto; display: flex; align-items: center; justify-content: center;
}
#scan-modal.fs .radar { width: min(clamp(420px, 58vh, 760px), 80vw); }
/* 外圈细密刻度环（SVG） */
.radar-ticks {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.radar-ticks .rtick { stroke: rgba(233,183,86,.55); }
.radar-ticks .rtick-ring { stroke: rgba(233,183,86,.2); }
.radar-disc {
  position: absolute; inset: 9%; border-radius: 50%;
  background:
    linear-gradient(rgba(233,183,86,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,183,86,.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(233,183,86,.07) 0%, rgba(20,20,23,.2) 55%, rgba(10,10,11,.55) 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  border: 1px solid rgba(233,183,86,.18);
  overflow: hidden;
}
.radar-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(233,183,86,.14); }
.radar-ring.r-outer { inset: 6%; }
.radar-ring.r-mid { inset: 24%; }
.radar-ring.r-inner { inset: 42%; }
/* 十字准线 */
.radar-cross::before, .radar-cross::after {
  content: ""; position: absolute; background: rgba(53,224,208,.12);
}
.radar-cross::before { left: 0; right: 0; top: 50%; height: 1px; }
.radar-cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }
/* 金色扫掠扇形（含两条半径亮线） */
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(233,183,86,.40) 0deg, rgba(233,183,86,.08) 24%, transparent 30%);
  animation: radarSweep 3.2s linear infinite;
}
.radar-sweep::before, .radar-sweep::after {
  content: ""; position: absolute; background: rgba(233,183,86,.85);
}
.radar-sweep::before { left: 50%; top: 0; width: 1.5px; height: 50%; transform: translateX(-50%); }
.radar-sweep::after { top: 50%; left: 50%; height: 1.5px; width: 50%; }
@keyframes radarSweep { to { transform: rotate(360deg); } }
/* 青色发光中心 */
.radar-core {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: #35e0d0;
  box-shadow: 0 0 14px 4px rgba(53,224,208,.55), 0 0 30px 10px rgba(53,224,208,.20);
}
.radar-core::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(53,224,208,.35);
}
.radar-core::after {
  content: ""; position: absolute; inset: -28px; border-radius: 50%;
  border: 1px solid rgba(53,224,208,.18);
}
/* 圆盘内文字层级 */
.radar-caption {
  position: absolute; left: 0; right: 0; bottom: 12%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.radar-caption .spinner-text { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: .5px; text-shadow: 0 1px 10px rgba(0,0,0,.75); }
.radar-caption .spinner-stage { font-size: 14px; color: var(--text-dim); min-height: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.radar-count { font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

/* 浅色主题兜底 */
body[data-theme="light"] .radar-disc {
  background: radial-gradient(circle at 50% 50%, rgba(31,111,235,.05) 0%, rgba(255,255,255,.2) 60%);
}
body[data-theme="light"] .radar-ring { border-color: rgba(31,111,235,.15); }
body[data-theme="light"] .radar-ticks .rtick,
body[data-theme="light"] .radar-ticks .rtick-ring { stroke: rgba(31,111,235,.4); }
body[data-theme="light"] .radar-sweep {
  background: conic-gradient(from 0deg, rgba(31,111,235,.30), rgba(31,111,235,.05) 22%, transparent 30%);
}
body[data-theme="light"] .radar-sweep::before,
body[data-theme="light"] .radar-sweep::after { background: rgba(31,111,235,.7) !important; }

/* ============ 弹窗全屏/还原 + 大屏震撼动效（2026-11-22 第六轮） ============ */
.modal-head-actions { display: flex; align-items: center; gap: 4px; }
.modal-fs-btn { display: inline-flex; align-items: center; justify-content: center; }
.modal-fs-btn svg { display: block; }

/* 全屏最大化：卡片撑满视口 */
#scan-modal.fs { background: rgba(6,8,10,.72); }
#scan-modal.fs .modal-card {
  width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh;
  border-radius: 0; border: none; box-shadow: none;
}
#scan-modal.fs .scan-progress { min-height: 0; flex: 1 1 auto; }

/* 圆盘外围氛围辉光（大屏下更有分量） */
.radar { filter: drop-shadow(0 0 26px rgba(53,224,208,.10)); }

/* 中心涟漪：两道错开的扩散淡环 */
.radar-ripple {
  position: absolute; top: 50%; left: 50%; width: 16px; height: 16px;
  margin: -8px 0 0 -8px; border-radius: 50%;
  border: 1px solid rgba(53,224,208,.5);
  animation: radarRipple 2.8s ease-out infinite;
  pointer-events: none;
}
.radar-ripple-2 { animation-delay: 1.4s; }
@keyframes radarRipple {
  0%   { transform: scale(1);  opacity: .55; }
  70%  { opacity: .12; }
  100% { transform: scale(7); opacity: 0; }
}

/* 中心光点呼吸脉冲 */
.radar-core { animation: corePulse 2.8s ease-in-out infinite; }
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 14px 4px rgba(53,224,208,.55), 0 0 30px 10px rgba(53,224,208,.20); }
  50%      { box-shadow: 0 0 20px 7px rgba(53,224,208,.70), 0 0 44px 16px rgba(53,224,208,.28); }
}

body[data-theme="light"] .radar-ripple { border-color: rgba(31,111,235,.45); }
body[data-theme="light"] .radar-core { animation: corePulseLight 2.8s ease-in-out infinite; }
@keyframes corePulseLight {
  0%, 100% { box-shadow: 0 0 12px 3px rgba(31,111,235,.45), 0 0 26px 9px rgba(31,111,235,.18); }
  50%      { box-shadow: 0 0 18px 6px rgba(31,111,235,.60), 0 0 38px 14px rgba(31,111,235,.26); }
}

/* ---------- 三步上手引导 ---------- */
.panel-intro { color: var(--text-dim); font-size: 13px; margin: -4px 0 14px; line-height: 1.6; }
.steps-guide { margin: 20px 0 8px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.steps-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s, transform .1s; }
.step:hover { border-color: var(--accent); transform: translateY(-1px); }
.step-no { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-body { display: flex; flex-direction: column; gap: 3px; }
.step-body b { font-size: 14px; color: var(--text); }
.step-body em { font-style: normal; font-size: 12px; color: var(--text-dim); line-height: 1.5; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* 2026-11-08 精简：全流程地图样式已移除（.ra-pipeline 为独立功能，保留） */

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%); background: var(--toast-bg); color: var(--toast-fg); padding: 10px 18px; border-radius: 8px; box-shadow: var(--shadow-lg); z-index: 60; font-size: 14px; max-width: 90vw; border: 1px solid var(--border); }
.toast.hidden { display: none; }
.toast.err { background: var(--toast-err); color: #fff; }

/* ============================================================
   UI 专业化增强（叠加层：仅视觉精修，不改布局/定位）
   ============================================================ */
:root {
  --ring: 0 0 0 3px rgba(61,139,253,.35);
  --elev-1: 0 1px 2px rgba(0,0,0,.22), 0 4px 14px rgba(0,0,0,.16);
  --elev-2: 0 8px 30px rgba(0,0,0,.38);
  /* --grad-panel 由顶部 :root / 浅色主题统一定义，此处不再重复 */
}
body[data-theme="light"] {
  --ring: 0 0 0 3px rgba(31,111,235,.28);
  --elev-1: 0 1px 2px rgba(16,24,40,.06), 0 4px 14px rgba(16,24,40,.08);
  --elev-2: 0 8px 30px rgba(16,24,40,.14);
}
/* 数字对齐，专业终端观感 */
body, .metric .v, .data-table td, table td, table th, input, select { font-variant-numeric: tabular-nums; }
/* 细滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2b3648; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4759; }
::-webkit-scrollbar-track { background: transparent; }

/* 面板 / 区块 */
.panel { animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.section-head { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 6px; }
.section-head h2 { position: relative; padding-left: 12px; }
.section-head h2::before, .section-head h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.section-head h3 { position: relative; padding-left: 12px; margin: 0; }
.sub-h { color: var(--text); font-weight: 600; }
h2, h3, h4 { letter-spacing: .2px; }

/* 标签页：激活下划线 + 悬停 */
.tab { position: relative; border-radius: 8px 8px 0 0; transition: color .15s, background .15s; }
.tab:hover { color: var(--text); background: rgba(47,129,247,.06); }
.tab.active { color: #fff; }
.tab.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), #58a6ff); border-radius: 2px;
}

/* 按钮：层次 / 悬停 / 焦点 */
.btn { border-radius: 8px; font-weight: 600; transition: transform .08s, box-shadow .15s, background .15s, border-color .15s; border: 1px solid var(--border); }
.btn:hover { border-color: #3a4759; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: linear-gradient(180deg, #3b8cfd, #2f81f7); border-color: #2f81f7; box-shadow: 0 2px 10px rgba(47,129,247,.28); }
.btn-primary:hover { background: linear-gradient(180deg, #4b98ff, #3b8cfd); box-shadow: 0 4px 16px rgba(47,129,247,.4); }
.btn-sm { padding: 5px 11px; font-size: 13px; }

/* 表单控件 */
input, select, textarea {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 8px 10px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #5b6675; }
.field label { font-weight: 600; color: var(--text); }

/* 表格：斑马纹 + 悬停 + 圆角容器 */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; background: var(--panel); }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
.data-table thead th, .table-wrap table thead th, table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--grad-thead);
  color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: none;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td, .table-wrap table td, table td { border-bottom: 1px solid rgba(40,49,66,.6); padding: 9px 12px; }
.data-table tbody tr:nth-child(even), .table-wrap table tbody tr:nth-child(even), table tbody tr:nth-child(even) { background: var(--zebra); }
.data-table tbody tr:hover, .table-wrap table tbody tr:hover, table tbody tr:hover { background: var(--row-hover); }
table tbody tr:last-child td { border-bottom: none; }

/* 指标卡 */
.metric { background: var(--grad-panel); box-shadow: var(--elev-1); transition: transform .1s, box-shadow .15s; }
.metric:hover { box-shadow: var(--elev-2); }
.metric .v { letter-spacing: .3px; }

/* 结果 / 提示 / 警告 */
.result-meta { color: var(--text-dim); }
.hint { color: var(--text-dim); }
.warn-box { background: linear-gradient(180deg, rgba(210,153,34,.12), rgba(210,153,34,.06)); border: 1px solid rgba(210,153,34,.35); border-radius: var(--radius); }
.dash-block { border-top: 1px solid var(--border); }
.disclaimer { color: #6b7686; }

/* 模态 */
.modal { backdrop-filter: blur(3px); }
.modal-card { box-shadow: var(--elev-2); animation: popIn .16s ease; }
@keyframes popIn { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }

/* 加载态 */
.loading { color: var(--text-dim); }
.loading::after { content: "…"; animation: dots 1.2s steps(4,end) infinite; }
@keyframes dots { 0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."} }

/* 芯片 / 徽章 */
.chip { border-radius: 20px; transition: border-color .15s, background .15s; }
.cc-chip, .fp-chip { border-radius: 20px; }

/* Hero / 步骤 */
.hero { background: radial-gradient(1200px 400px at 10% -20%, rgba(47,129,247,.14), transparent), var(--grad-panel); border: 1px solid var(--border); border-radius: 16px; }
.step { box-shadow: var(--elev-1); }
.mcard { transition: transform .12s, box-shadow .15s; }
.mcard:hover { transform: translateY(-2px); box-shadow: var(--elev-2); }

/* ============ 全网扫描：通用筛选参数 + 组合案例 + 校验反馈（2026-10-14） ============ */
.scan-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; color: var(--text-dim); font-size: 12px; }
.scan-divider::before, .scan-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.scan-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); }
#sc-combo-wrap { grid-column: 1 / -1; }
.sf-field { display: flex; flex-direction: column; gap: 5px; }
.sf-field > label { font-size: 12px; color: var(--text-dim); }
.sf-field input { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.sf-range { display: flex; align-items: center; gap: 6px; color: var(--text-dim); }
.sf-range input { width: 86px; }
.combo-detail { margin-top: 10px; padding: 12px 14px; background: var(--panel-2); border: 1px dashed var(--border); border-radius: var(--radius); }
.combo-detail .cd-desc { margin: 0 0 8px; font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.combo-detail .cd-meta { margin: 8px 0 0; font-size: 12px; color: var(--text-dim); }
.flash-warn { animation: flashWarn 1.2s ease; }
@keyframes flashWarn {
  0%, 100% { box-shadow: none; }
  25%, 60% { box-shadow: 0 0 0 2px #e8a33d inset; }
}

/* ============ 全网扫描弹窗：自动刷新周期选择器（2026-10-14） ============ */
.scan-auto-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin: 10px 0; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: var(--radius); }
.scan-auto-bar .sab-label { font-size: 13px; color: var(--text-dim); }
.scan-auto-bar .sab-select, .scan-auto-bar .sab-custom {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 5px 8px; font-size: 13px; }
.scan-auto-bar .sab-custom { width: 72px; }
.scan-auto-bar .sab-count { font-size: 12px; color: var(--accent);
  font-variant-numeric: tabular-nums; min-width: 96px; }
.scan-auto-bar .sab-btn { margin-left: auto; }
.scan-auto-bar.is-live { border-color: var(--accent); }
@keyframes sabPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
#sc-refresh-count.live::before { content: "● "; color: var(--accent);
  animation: sabPulse 1.4s ease-in-out infinite; }

/* 扫描刷新 diff 徽章 + 更新时间戳（2026-10-14） */
.diff-badge { display: inline-block; font-size: 10px; line-height: 1;
  padding: 2px 5px; margin-right: 4px; border-radius: 6px; vertical-align: middle;
  font-variant-numeric: tabular-nums; }
.diff-badge.diff-new { background: var(--accent); color: #fff; }
.scan-stamp { color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ============ 自动交易执行模式（手动确认 / 全自动，2026-10-14） ============ */
.auto-exec-block { border: 1px solid var(--border); border-left: 3px solid var(--accent); }
.ae-status { font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--border); }
.ae-status.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.ae-status.off { color: var(--text-dim); }
.ae-mode-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.ae-mode-label { font-size: 13px; color: var(--text-dim); }
.ae-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 20px; margin-bottom: 12px; }
.ae-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-dim); }
.ae-field input { background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 6px 8px; font-size: 13px; width: 120px; }
.ae-arm { display: flex; flex-direction: column; gap: 6px; }
.ae-arm .btn:disabled { opacity: .5; cursor: not-allowed; }
.ae-guard { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px;
  background: var(--panel-2); border: 1px dashed var(--border); border-radius: var(--radius);
  font-size: 12px; color: var(--text-dim); }
.ae-guard b { color: var(--text); }
.ae-guard-item { white-space: nowrap; }

/* 成交账户指示（模拟/实盘，2026-10-14） */
.ae-account { margin: 2px 0 12px; }
.ae-acct-chip { display: inline-block; font-size: 12px; padding: 3px 10px;
  border-radius: 20px; border: 1px solid var(--border); }
.ae-acct-chip.sim { background: var(--panel-2); color: var(--text-dim); }
.ae-acct-chip.live { background: rgba(217,43,58,.12); color: var(--up);
  border-color: var(--up); font-weight: 600; }
.ae-acct-chip.warn { background: rgba(232,163,61,.14); color: #b9791a;
  border-color: #e8a33d; }

/* ---- 界面可见性（管理员按角色配置） ---- */
.uv-matrix { margin: 10px 0 14px; }
.uv-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  padding: 9px 2px; border-bottom: 1px dashed var(--border, rgba(128,128,128,.3)); }
.uv-row .uv-role { min-width: 100px; font-weight: 600; }
.uv-row .chk { margin: 0; }

/* ---- 登录页合规页脚（公网上线前置） ---- */
.login-legal { margin-top: 14px; padding-top: 10px; font-size: 12px; line-height: 1.7;
  text-align: center; color: var(--text-dim, #888);
  border-top: 1px dashed var(--border, rgba(128,128,128,.3)); }
.login-legal a { color: var(--text-dim, #888); text-decoration: underline; }
.login-legal a:hover { color: var(--text, inherit); }

/* ---- 首页 · 全用户累计使用次数（社会证明条，借鉴主流产品设计） ---- */
.usage-strip { margin-top: 18px; }
.usage-head { font-size: 12px; color: var(--text-dim, #8a94a6); margin-bottom: 8px; letter-spacing: .5px; }
.usage-row { display: flex; align-items: stretch; gap: 10px; }
.usage-card { flex: 1; border-radius: 12px; padding: 14px 16px 12px; color: #fff;
  position: relative; overflow: hidden; }
.usage-card--orange { background: linear-gradient(135deg, #FFB65C 0%, #FF8A2A 100%);
  box-shadow: 0 6px 18px rgba(255,138,42,.25); }
.usage-card--red { background: linear-gradient(135deg, #FF7A7A 0%, #E63946 100%);
  box-shadow: 0 6px 18px rgba(230,57,70,.25); }
.usage-title { font-size: 15px; font-weight: 700; }
.usage-tag { display: inline-block; margin-top: 6px; font-size: 11px;
  background: rgba(255,255,255,.22); border-radius: 999px; padding: 2px 10px; }
.usage-num { font-size: 34px; font-weight: 800; line-height: 1.15; margin-top: 8px;
  font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.usage-sub { font-size: 11px; opacity: .85; margin-top: 2px; }
.usage-plus { align-self: center; font-size: 22px; font-weight: 800; color: var(--text-dim, #8a94a6); }
@media (max-width: 640px) {
  .usage-num { font-size: 26px; }
}

/* ---- 登录页 · 公网演示账号提示（尺度B） ---- */
.demo-hint { margin-top: 12px; padding: 9px 12px; font-size: 12px; line-height: 1.6;
  background: var(--panel-2, rgba(127,127,127,.08)); border: 1px dashed var(--border, rgba(128,128,128,.3));
  border-radius: 8px; color: var(--text-dim, #8a94a6); }
.demo-hint b { color: var(--text, inherit); }

/* ---- 择时对垒 ---- */
.duel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0; }
.duel-col { background: var(--panel, #fff); border: 1px solid var(--border, #e3e8ef); border-radius: var(--radius, 12px); padding: 14px 16px; }
.duel-col .metric-grid { margin: 8px 0 0; }
.duel-head { font-size: 14px; font-weight: 700; color: var(--text, #1f2733); padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border, #e3e8ef); }
#tm-ai-col .duel-head { color: #1d4ed8; }
#tm-my-col .duel-head { color: #b45309; }
.duel-col.hidden-col { display: none; }
.compliance-note { margin-top: 16px; padding: 12px 14px; font-size: 12px; line-height: 1.7;
  background: rgba(127,127,127,.06); border: 1px solid var(--border, rgba(128,128,128,.25));
  border-radius: 8px; color: var(--text-dim, #8a94a6); }
.duel-win { color: #2ea043; font-weight: 700; }
.duel-loss { color: #d29922; font-weight: 700; }
@media (max-width: 720px) { .duel-grid { grid-template-columns: 1fr; } }

/* ===================== 智能诊断 / 策略优选 ===================== */
.adv-regime-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; margin: 14px 0; }
.adv-regime-card, .adv-sentiment-card { background: var(--panel, #fff); border: 1px solid var(--border, #e3e8ef); border-radius: var(--radius, 12px); padding: 16px 18px; }
.adv-regime-label { font-size: 12px; color: var(--text-dim, #8a94a6); margin-bottom: 8px; }
.adv-regime-value { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.regime-强多头 { color: #dc2626; }
.regime-多头 { color: #ea580c; }
.regime-震荡 { color: #d97706; }
.regime-空头 { color: #2563eb; }
.regime-恐慌 { color: #16a34a; }
.adv-regime-desc { font-size: 12px; color: var(--text-dim, #8a94a6); margin-top: 8px; line-height: 1.6; }
.adv-gauge { position: relative; height: 12px; border-radius: 8px; background: linear-gradient(90deg,#dc2626,#ea580c,#d97706,#65a30d,#16a34a); margin: 10px 0 6px; }
.adv-gauge-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 8px; opacity: .35; }
.adv-gauge-dot { position: absolute; top: -3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid #333; transform: translateX(-50%); }
.adv-sentiment-num { font-size: 22px; font-weight: 800; }
.adv-sent-label { font-size: 12px; font-weight: 700; }
.adv-features { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 12px; color: var(--text-dim, #8a94a6); }
.adv-features b { color: var(--text, #1f2733); }
.adv-sec-title { color: var(--accent, #3d8bfd); }
.adv-news-item { margin: 2px 0 2px 18px !important; font-size: 12px; color: var(--text-dim, #8a94a6); }

/* ---- 择时对垒：AI 阶段诊断 + K 线买卖点 ---- */
.tm-diag { margin: 12px 0; }
.tm-diag-head { font-weight: 700; font-size: 13px; margin-bottom: 8px; color: var(--accent, #3d8bfd); }
.tm-diag-plan { background: rgba(127,127,127,.05); border-left: 3px solid #2f81f7; border-radius: 6px; padding: 10px 14px; margin-bottom: 10px; }
.tm-diag-plan p { margin: 5px 0; line-height: 1.85; font-size: 13px; }
.tm-diag-plan-head { font-weight: 700; font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.tm-stage-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.tm-stage-badge.is-holding { background: rgba(217,43,58,.14); color: #e03131; border: 1px solid rgba(217,43,58,.45); }
.tm-stage-badge.is-flat { background: rgba(127,127,127,.12); color: var(--text-dim, #8a94a6); border: 1px solid rgba(127,127,127,.35); }
.tm-kline-stage { font-size: 13px; line-height: 1.8; margin-bottom: 10px; }
.tm-kline-stage b { color: var(--text, #1f2733); }
.tm-kline-scroll { overflow-x: auto; border: 1px solid var(--border, #323e52); border-radius: 8px; background: var(--panel-2, rgba(127,127,127,.04)); }
.tm-kline-scroll svg { display: block; }
.tmk-b { color: #e03131; font-weight: 700; }
.tmk-s { color: #0ca678; font-weight: 700; }
/* 交易次数卡 → 买卖明细面板（点击展开/收起） */
.tm-trades-panel { margin-top: 12px; }
.tm-trades-panel .data-table td, .tm-trades-panel .data-table th { white-space: nowrap; }
.tm-dir { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 18px; }
.tm-dir-b { color: #e03131; background: rgba(224, 49, 49, .13); }
.tm-dir-s { color: #0ca678; background: rgba(12, 166, 120, .13); }
.tm-ev-b td { border-bottom: 1px dashed var(--border, #323e52); }
/* 择时三键：当前模式的键亮，其余暗（不可点） */
.btn-dim { opacity: .38; cursor: not-allowed; box-shadow: none; }

/* 一键回测结果卡 */
.adv-bt-btn { white-space: nowrap; }
.adv-bt-card { margin-top: 14px; padding: 14px 16px; background: var(--panel-2, rgba(127,127,127,.06)); border: 1px solid var(--border, #323e52); border-radius: 10px; }
.adv-bt-loading { color: var(--text-dim, #8a94a6); font-size: 13px; padding: 8px 0; }
.adv-bt-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 10px; }
.adv-bt-head .muted { font-size: 12px; }
.adv-bt-metrics { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; margin-bottom: 10px; }
.adv-bt-metrics b { font-size: 14px; }
.adv-bt-spark { width: 100%; height: 110px; background: rgba(127,127,127,.04); border-radius: 6px; margin: 6px 0 10px; }
.adv-bt-sub { font-weight: 700; font-size: 12px; margin: 10px 0 6px; color: var(--text-dim, #8a94a6); }
.adv-excluded { margin-top: 12px; padding: 10px 14px; background: rgba(210,153,34,.08); border: 1px solid rgba(210,153,34,.35); border-radius: 8px; font-size: 12px; line-height: 1.7; }
.adv-excluded-title { font-weight: 700; color: #b45309; margin-bottom: 6px; }
.adv-excluded-list { margin: 0; padding-left: 18px; color: var(--text-dim, #8a94a6); }
.adv-excluded-list li { margin: 2px 0; }
.adv-excluded-list b { color: var(--text, #1f2733); }

/* 排名表样本外年化小字 */
.oos-sub { font-size: 11px; font-weight: 600; }
.oos-ok { color: #0e9f6e; }
.oos-bad { color: #d92b3a; }

/* 第②③段：标的池诊断 + 调仓计划与执行 */
.adv-pool-card { margin-top: 14px; }
.adv-pool-headline { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.adv-n-wrap { text-align: center; min-width: 110px; }
.adv-n-label { font-size: 12px; color: var(--text-dim, #8a94a6); }
.adv-n-value { font-size: 34px; font-weight: 800; color: #2f81f7; }
.adv-n-value.is-empty { color: #dc2626; }
.adv-n-sub { font-size: 12px; color: var(--text-dim, #8a94a6); margin-top: 2px; }
.adv-pool-meta { font-size: 13px; line-height: 1.8; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.tag-auto { background: rgba(47,129,247,.14); color: #2f81f7; }
.tag-manual { background: rgba(138,148,166,.16); color: var(--text-dim, #8a94a6); }
.adv-reasons { margin: 12px 0; padding: 10px 14px; background: rgba(127,127,127,.05); border-left: 3px solid #2f81f7; border-radius: 6px; }
.adv-reasons-title { font-size: 12px; font-weight: 700; color: var(--text-dim, #8a94a6); margin-bottom: 4px; }
.adv-reasons-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.adv-reasons-list .delta { color: #2f81f7; font-weight: 700; }
.adv-warnings { margin: 8px 0; padding: 8px 12px; background: rgba(210,153,34,.1); border: 1px solid rgba(210,153,34,.35); border-radius: 8px; font-size: 12px; color: #b45309; }
.adv-reference { margin-top: 12px; padding: 10px 14px; background: rgba(220,38,38,.06); border: 1px dashed rgba(220,38,38,.3); border-radius: 8px; font-size: 12px; }
.adv-reference-title { font-weight: 700; color: #b91c1c; margin-bottom: 6px; }
.adv-reference-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 12px; background: rgba(220,38,38,.1); color: #b91c1c; font-size: 12px; }
.adv-exec-advice { margin: 10px 0; }
.adv-exec-row { display: flex; gap: 10px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.adv-exec-label { font-weight: 700; color: var(--text-dim, #8a94a6); }
.adv-exec-mode { padding: 2px 10px; border-radius: 12px; font-weight: 700; font-size: 12px; }
.mode-auto { background: rgba(22,163,74,.14); color: #16a34a; }
.mode-manual { background: rgba(210,153,34,.16); color: #b45309; }
.adv-exec-result { margin-top: 12px; }
.adv-exec-head { padding: 8px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 8px; }
.exec-allok { background: rgba(22,163,74,.12); color: #16a34a; }
.exec-partial { background: rgba(210,153,34,.12); color: #b45309; }
.exec-fail { background: rgba(220,38,38,.12); color: #dc2626; }
tr.act-buy td:first-child { color: #d92b3a; font-weight: 700; }
tr.act-sell td:first-child { color: #0e9f6e; font-weight: 700; }
tr.act-hold td:first-child, tr.act-skip td:first-child { color: var(--text-dim, #8a94a6); }
.gate-ok { color: #16a34a; font-weight: 600; }
.gate-bad { color: #dc2626; font-weight: 600; }
.gate-na { color: var(--text-dim, #8a94a6); }
.field-inline { font-size: 12px; color: var(--text-dim, #8a94a6); display: inline-flex; align-items: center; gap: 6px; }
.field-inline input { padding: 4px 8px; border: 1px solid var(--border, #e3e8ef); border-radius: 6px; background: var(--panel, #fff); color: var(--text, #1f2733); }
@media (max-width: 720px) { .adv-regime-block { grid-template-columns: 1fr; } }

/* ---- 智能策略 · 专业终端式仪表条与子页签（2026-10-31 重构，参考专业策略终端） ---- */
.adv-toolbar {
  display: flex; align-items: stretch; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 0 0 20px; padding: 12px 16px;
  background: var(--panel-2, rgba(127,127,127,.05));
  border: 1px solid var(--border); border-radius: var(--radius, 12px);
}
.adv-tb-status { display: flex; gap: 28px; flex-wrap: wrap; align-items: stretch; flex: 1 1 auto; min-width: 0; }
.adv-tb-cell { min-width: 150px; }
.adv-tb-cell.adv-tb-grow { flex: 1 1 280px; min-width: 260px; }
.adv-tb-label { font-size: 12px; color: var(--text-dim, #8a94a6); margin-bottom: 4px; }
.adv-tb-cell .adv-regime-value { font-size: 22px; font-weight: 800; letter-spacing: 1px; line-height: 1.2; }
.adv-tb-cell .adv-sentiment-num { font-size: 16px; font-weight: 700; }
.adv-tb-cell .adv-gauge { margin: 6px 0 4px; }
.adv-tb-cell .adv-regime-desc { margin-top: 2px; font-size: 11.5px; line-height: 1.5; max-width: 340px; }
.adv-tb-meta { font-size: 12px; margin-top: 6px; color: var(--text-dim, #8a94a6); line-height: 1.6; }
.adv-tb-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-left: 16px; border-left: 1px solid var(--border);
}
.adv-actions-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
#adv-subtabs .seg { min-width: 96px; }
/* 排名表：专业终端风格（紧凑、数字等宽对齐、不换行） */
#adv-sub-rank .data-table th, #adv-sub-rank .data-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
#adv-sub-rank .data-table td { font-size: 12.5px; padding: 7px 10px; }
#adv-sub-rank .data-table th { font-size: 12px; padding: 8px 10px; }
@media (max-width: 960px) { .adv-tb-actions { border-left: 0; padding-left: 0; } }

/* ===== 智能策略 · 专业终端布局（左 行情+状态 / 右 策略列表 / 底 持仓委托） ===== */
.adv-toolbar > .adv-tb-meta { flex: 1 1 auto; min-width: 0; }
.adv-term {
  display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: stretch;
}
.adv-term-left { display: flex; flex-direction: column; gap: 14px; align-self: stretch; }
/* 左栏末张卡（矩阵概况）弹性吸收剩余高度，保证左栏与右栏底对齐、不留空缺 */
.adv-status-card.adv-flex-card { flex: 1 1 auto; min-height: 96px; }
.adv-matrix { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; align-content: start; }
.adv-matrix .k { font-size: 12px; color: var(--text-dim, #8a94a6); align-self: center; }
.adv-matrix .v { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.adv-sc-sub { font-weight: 400; color: var(--text-dim, #8a94a6); float: right; }
.adv-status-card {
  background: var(--panel, #fff); border: 1px solid var(--border, #e3e8ef);
  border-radius: var(--radius, 12px); padding: 14px 16px;
}
.adv-sc-label { font-size: 12px; color: var(--text-dim, #8a94a6); margin-bottom: 8px; font-weight: 600; }
.adv-regime-value { font-size: 26px; font-weight: 800; letter-spacing: 1px; line-height: 1.15; }
.adv-regime-desc { font-size: 12px; color: var(--text-dim, #8a94a6); margin-top: 6px; line-height: 1.55; }
.adv-sentiment-num { font-size: 15px; font-weight: 700; margin-top: 4px; color: var(--text); }
.adv-status-card .adv-gauge { margin: 8px 0 4px; }
.adv-status-card .adv-features { margin-top: 8px; }

/* 市场宽度条（用行情结果替代文字） */
.adv-breadth-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--panel-2, #f0f2f7); }
.adv-breadth-bar .bb-up { background: #d92b3a; }
.adv-breadth-bar .bb-down { background: #0e9f6e; }
.adv-breadth-legend { display: flex; justify-content: space-between; font-size: 11.5px; margin-top: 6px; }
.adv-breadth-legend .up { color: #d92b3a; font-weight: 600; }
.adv-breadth-legend .down { color: #0e9f6e; font-weight: 600; }

/* 右：策略列表（状态页签 + 操作列） */
.adv-term-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.adv-term-right > .hint { margin: 0 4px; line-height: 1.7; }
.adv-result > .compliance-note { margin-top: 20px; margin-bottom: 8px; }
.adv-rt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adv-rt-tabs { display: inline-flex; gap: 4px; background: var(--panel-2, rgba(127,127,127,.08)); padding: 3px; border-radius: 10px; }
.adv-rt-tabs .seg { border: 0; background: transparent; color: var(--text-dim, #8a94a6); font-size: 12.5px; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.adv-rt-tabs .seg.active { background: var(--accent, #3d8bfd); color: #fff; font-weight: 600; }
.adv-diag-toggle { flex: 0 0 auto; }

.adv-rank-table { width: 100%; }
.adv-rank-table th, .adv-rank-table td { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 12.5px; padding: 7px 10px; }
.adv-rank-table th { font-size: 12px; }
.adv-rank-table td:first-child { font-weight: 600; }
.adv-rank-table .oos-sub { font-size: 10.5px; }

/* AI 诊断结论折叠（默认收起，减文字） */
/* AI 诊断结论（住详情弹层，不再页内折叠） */
.adv-diagnosis { line-height: 1.9; font-size: 13px; background: rgba(127,127,127,.05); border-left: 3px solid #2f81f7; padding: 12px 14px; border-radius: 6px; }
.adv-diagnosis p { margin: 6px 0; }

/* 右上工具按钮组（诊断结论 / 排除角标） */
.adv-rt-tools { display: flex; align-items: center; gap: 8px; }
#adv-excluded-toggle { color: #b45309; border-color: rgba(180,83,9,.4); }

/* 详情弹层内容 */
.adv-info-body { max-height: 68vh; overflow: auto; }
.adv-bt-in-modal { margin-top: 0; border: none; background: none; padding: 0; }

/* 底：持仓 / 委托联动（单面板页签，仿专业终端「当前持仓/最近委托」） */
.adv-term-bottom { margin-top: 20px; }
.adv-bottom-panel { background: var(--panel, #fff); border: 1px solid var(--border, #e3e8ef); border-radius: var(--radius, 12px); padding: 10px 14px 12px; min-width: 0; }
.adv-bt-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.adv-bt-sp { flex: 1; }
.adv-bottom-panel .adv-sc-label { margin: 2px 0 8px; }
.adv-pos-refresh { padding: 2px 9px; font-size: 12px; line-height: 1.5; }
.adv-link-table { width: 100%; }
.adv-link-table th, .adv-link-table td { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 12px; padding: 5px 9px; }
.adv-link-table th { font-size: 11.5px; color: var(--text-dim, #8a94a6); font-weight: 600; }

/* 诊断动态框内容（仿扫描进度框） */
.adv-diag-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 16px; min-height: 200px; }
.adv-diag-box .scan-live-bar { width: 100%; max-width: 460px; height: 7px; }
.adv-diag-box #adv-diag-fill { background: linear-gradient(90deg, var(--accent, #3d8bfd), #2f7ff5); }

@media (max-width: 960px) {
  .adv-term { grid-template-columns: 1fr; }
  .adv-term-left { align-self: auto; }
  .adv-status-card.adv-flex-card { flex: 0 0 auto; }
  .adv-term-bottom { grid-template-columns: 1fr; }
}

/* ===== 2026-11-29 状态带重构：五块摘要独立成带，与操作按钮组同排一行 ===== */
.adv-subtab-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.adv-subtab-row .tm-subtabs { display: inline-flex; flex: 1 1 auto; min-width: 0; }
.adv-carousel-chk { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim, #8a94a6); cursor: pointer; white-space: nowrap; }

.adv-statusband { display: flex; align-items: stretch; gap: 16px; margin: 0 0 18px; }
.adv-status-cards { display: flex; gap: 16px; flex: 1 1 0; min-width: 0; align-items: stretch; }
.adv-status-cards .adv-status-card { flex: 1 1 0; min-width: 160px; min-height: 0; overflow: hidden; cursor: pointer; }
.adv-statusband .adv-tb-actions {
  flex: 0 0 auto; align-self: center; justify-content: flex-end; border-left: 1px solid var(--border);
  padding-left: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  max-width: 340px; min-width: 0;
}
.adv-tb-actions #adv-msg {
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12px; line-height: 1.5;
}
.adv-card-sub { margin-top: 6px; font-size: 11px; color: var(--text-dim, #8a94a6); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adv-status-card .adv-regime-desc, .adv-status-card .adv-features, .adv-status-card .adv-matrix { min-width: 0; }

/* 原左栏状态卡已上移为独立状态带：策略排名面板恢复单栏 */
.adv-term { grid-template-columns: 1fr; }

@media (max-width: 1180px) {
  .adv-statusband { flex-wrap: wrap; }
  .adv-status-cards { flex-wrap: wrap; }
  .adv-status-cards .adv-status-card { flex: 1 1 160px; }
  .adv-statusband .adv-tb-actions { border-left: 0; padding-left: 0; }
}

/* ---- 流式扫描（边扫边出）UI ---- */
.scan-live-bar {
  width: 100%; max-width: 420px; height: 6px; margin: 8px auto 2px;
  background: var(--panel-2, #f0f2f7); border: 1px solid var(--border, #d8dee9);
  border-radius: 4px; overflow: hidden;
}
.scan-live-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent, #3d8bfd), var(--accent-2, #2f7ff5));
  transition: width .5s ease;
}
#scan-modal .scan-live-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 4px 0 8px; flex-wrap: wrap;
}
#scan-modal .scan-live-list {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 260px; overflow-y: auto;
  border: 1px dashed var(--border, #d8dee9); border-radius: 8px;
  padding: 8px 10px; background: var(--panel-2, #f8fafc);
}
.scan-live-item {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  animation: scanLiveIn .35s ease;
}
.scan-live-item .sli-code { color: var(--text-dim, #8a94a6); font-variant-numeric: tabular-nums; }
.scan-live-item .sli-chg { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
@keyframes scanLiveIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   交易监控 · 交易数据总览（2026-10-22 新增）
   ========================================================================= */

/* 二级栏目切换条 */
.tm-subtabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
/* 行情子视图轮播复选框：贴页签行最右端，与主题文字/边框自适应 */
#mk-subtabs .mk-carousel {
  margin-left: auto; align-self: center; white-space: nowrap;
  font-size: 12.5px; color: var(--text-dim); cursor: pointer;
}
#mk-subtabs .mk-carousel input[type="checkbox"] { accent-color: var(--accent); }
/* 智能选股：免责横幅移除后，栏目条上移并收紧顶部间距 */
#adv-subtabs { margin-top: 4px; }
.tm-subpanel { animation: tmFade .18s ease; }
@keyframes tmFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ============ 策略研究中枢 · 左侧研究侧栏（2026-11-08 融合：策略工坊 / 回测中心 / 择时对垒 收进左侧竖向导航） ============ */
/* 进入研究模块时，main 切换为左右分栏：左侧研究侧栏 + 右侧内容区（沿用 is-wide 全宽） */
main.research-mode { display: flex; align-items: stretch; gap: 0; max-width: none; padding: 0; }
main.is-wide.research-mode { padding: 0; }
main.research-mode > .panel.active { flex: 1; min-width: 0; }
.sr-side {
  /* 2026-11-21：收窄侧栏 220→182px（约1厘米），策略工坊内容区整体左移（黄总要求） */
  flex: 0 0 182px; width: 182px; align-self: stretch;
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 16px 8px; display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.sr-side[hidden] { display: none; }
.sr-side-head { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.sr-side-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex-shrink: 0; }
.sr-side-title { font-size: 12.5px; font-weight: 700; letter-spacing: .5px; color: var(--text); }
.sr-mod {
  display: flex; align-items: center; gap: 12px; padding: 12px 10px;
  border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: .15s;
  background: transparent; text-align: left; width: 100%; font-family: inherit; color: var(--text);
}
.sr-mod:hover { background: var(--panel); }
.sr-mod.active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.sr-mod .sr-mod-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--panel); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-dim); }
.sr-mod.active .sr-mod-ic { background: var(--accent); color: #fff; }
.sr-mod .sr-mod-ic svg { width: 16px; height: 16px; }
.sr-mod .sr-mod-meta { display: flex; flex-direction: row; align-items: center; min-width: 0; }
.sr-mod .sr-mod-name { font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .2px; color: var(--text); }
.sr-mod.active .sr-mod-name { color: var(--accent); }
.sr-side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--border-soft); font-size: 11px; color: var(--text-mute); line-height: 1.6; }
.sr-side-foot b { color: var(--text-dim); }
/* 窄屏：侧栏收窄，内容可横向滚动 */
@media (max-width: 900px) {
  .sr-side { flex-basis: 184px; width: 184px; }
}

/* ============ 治理与可信工作台 · 左侧治理侧栏（2026-11-08 融合：机构工具 → 风控合规 / 数据可信 二三级；策略共创降级为「变更治理 › 策略变更评审」） ============ */
/* 语义色：风控合规=琥珀（审慎约束），数据可信=青绿（可核验）。两套都克制，仅用于激活态与状态点。 */
main.governance-mode[data-gov="risk"]  { --gv: #d8a45a; --gv-soft: rgba(216,164,90,.13); --gv-line: rgba(216,164,90,.32); }
main.governance-mode[data-gov="trust"] { --gv: #3fb59a; --gv-soft: rgba(63,181,154,.13); --gv-line: rgba(63,181,154,.32); }
main.governance-mode { --gv: var(--accent); --gv-soft: rgba(233,183,86,.13); --gv-line: rgba(233,183,86,.32); }
/* 进入治理工作台时，main 切为左右分栏：左侧治理侧栏 + 右侧内容区（沿用 is-wide 全宽） */
main.governance-mode { display: flex; align-items: stretch; gap: 0; max-width: none; padding: 0; }
main.is-wide.governance-mode { padding: 0; }
main.governance-mode > .panel.active { flex: 1; min-width: 0; padding: 18px 22px 30px; }
.gv-side {
  flex: 0 0 258px; width: 258px; align-self: stretch;
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto;
}
.gv-side[hidden] { display: none; }
.gv-side-head { display: flex; align-items: center; gap: 8px; padding: 0 8px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.gv-side-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gv); box-shadow: 0 0 8px var(--gv); flex-shrink: 0; }
.gv-side-title { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--text); }
.gv-side-sub { font-size: 9px; color: var(--text-dim); margin-left: auto; letter-spacing: 1px; }
.gv-group { display: flex; flex-direction: column; gap: 2px; }
.gv-group.hidden { display: none; }   /* 与 app.js 的 classList.toggle("hidden") 一致 */
.gv-group-label {
  font-size: 10px; letter-spacing: 1px; color: var(--text-dim);
  padding: 12px 10px 5px; display: flex; align-items: center; gap: 8px;
}
.gv-group-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.gv-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 12px;
  border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: .15s;
  background: transparent; text-align: left; width: 100%; font-family: inherit; color: var(--text);
  position: relative;
}
.gv-item:hover { background: var(--panel); }
.gv-item.active { background: var(--gv-soft); border-color: var(--gv-line); }
.gv-item.active::before { content: ""; position: absolute; left: 3px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--gv); }
.gv-item.hidden { display: none; }   /* 敏感三级项按 institution 权限二次收口（class 方式） */
.gv-item-ic { width: 26px; height: 26px; border-radius: 7px; background: var(--panel); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-dim); }
.gv-item.active .gv-item-ic { background: var(--gv); color: #10161f; }
.gv-item-ic svg { width: 14px; height: 14px; }
.gv-item-meta { display: flex; flex-direction: column; min-width: 0; }
.gv-item-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.gv-item.active .gv-item-name { color: var(--gv); }
.gv-item-desc { font-size: 10.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--text-dim); line-height: 1.7; }
.gv-side-foot b { color: var(--text); }

/* 治理工作台头部：面包屑 + 状态体检条 + 动态标题与口径 */
.gov-head { display: none; margin-bottom: 14px; }
main.governance-mode .gov-head { display: block; }
.gov-crumb { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.gov-crumb-sep { color: var(--text-dim); opacity: .6; }
.gov-crumb-cur { color: var(--gv); font-weight: 700; }
.gov-status { display: flex; gap: 9px; padding: 12px 0 14px; flex-wrap: wrap; }
.st-chip { display: flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 6px 11px; font-size: 11.5px; }
.st-chip .sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--down); flex-shrink: 0; }
.st-chip .sdot.warn { background: var(--up); }
.st-chip .k { color: var(--text-dim); }
.st-chip .v { color: var(--text); font-weight: 600; }
.gov-head h2 { font-size: 19px; font-weight: 700; letter-spacing: .3px; margin: 0 0 4px; }
.gov-head .hint { font-size: 12px; color: var(--text-dim); line-height: 1.65; max-width: 860px; margin: 0; }
/* 治理模式下隐藏旧版头部与横向分段条（导航由左侧治理侧栏接管）；非治理模式反之 */
main.governance-mode .inst-legacy-head,
main.governance-mode .mode-bar { display: none !important; }
/* 合规声明 / 口径速查表 */
.gov-declare { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 6px; }
.gov-declare .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); }
.gov-declare .row:first-child { border-top: 0; }
.gov-declare .row b { color: var(--text); font-weight: 600; text-align: right; }
.gov-declare-lead .row:first-child b { color: var(--gv); }
/* 策略变更评审（原「策略共创」panel）内嵌归属面包屑 */
.gov-inner-crumb { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.gov-inner-crumb span { margin: 0 5px; opacity: .6; }
.gov-inner-crumb b { color: var(--gv, var(--accent)); }
@media (max-width: 900px) {
  .gv-side { flex-basis: 210px; width: 210px; }
  main.governance-mode > .panel.active { padding: 14px 14px 24px; }
}

/* KPI 卡片行 */
.tm-kpi-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-bottom: 14px;
}
.tm-kpi {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; min-height: 96px;
  display: flex; flex-direction: column; justify-content: center;
}
.tm-kpi.is-primary {
  background: linear-gradient(135deg, #b3263a 0%, #8d1f2d 100%);
  border-color: #c93a4d;
}
.tm-kpi.is-primary .tm-kpi-label,
.tm-kpi.is-primary .tm-kpi-foot { color: #ffd9de; }
.tm-kpi.is-primary .tm-kpi-value { color: #fff; }
.tm-kpi-label { font-size: 12px; color: var(--text-dim); letter-spacing: .5px; }
.tm-kpi-value {
  font-size: 24px; font-weight: 700; margin: 6px 0 4px;
  font-variant-numeric: tabular-nums; letter-spacing: -.3px;
}
.tm-kpi-value.up { color: var(--up); }
.tm-kpi-value.down { color: var(--down); }
.tm-kpi-foot { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.tm-kpi-foot.up { color: var(--up); }
.tm-kpi-foot.down { color: var(--down); }

/* 图表卡片 */
.tm-ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; }
.tm-ov-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 12px;
}
.tm-ov-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px; flex-wrap: wrap;
}
.tm-ov-head h4 { margin: 0; font-size: 14px; font-weight: 600; }
.tm-chart-body { min-height: 150px; }

/* 环形图 + 图例 */
.tm-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tm-donut { width: 190px; height: 190px; flex: 0 0 auto; }
.tm-donut-top { font-size: 22px; font-weight: 700; fill: var(--text); }
.tm-donut-sub { font-size: 12px; fill: var(--text-dim); }
.tm-legend { flex: 1 1 200px; min-width: 190px; display: flex; flex-direction: column; gap: 6px; }
.tm-legend-item {
  display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px;
  align-items: center; font-size: 13px;
}
.tm-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tm-legend-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-legend-pct { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.tm-legend-val { color: var(--text-dim); font-variant-numeric: tabular-nums; min-width: 78px; text-align: right; }

/* 收益曲线 */
.tm-area { width: 100%; height: auto; display: block; }
.tm-axis-text { font-size: 11px; fill: var(--text-dim); }

/* 收益日历 */
.tm-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tm-cal-head { text-align: center; font-size: 12px; color: var(--text-dim); padding: 4px 0; }
.tm-cal-cell {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 4px; text-align: center; min-height: 48px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--panel-2);
}
.tm-cal-cell.is-empty { background: transparent; border-color: transparent; }
.tm-cal-cell.is-none { opacity: .45; }
.tm-cal-cell.is-up { background: rgba(244, 85, 107, .16); border-color: rgba(244, 85, 107, .5); }
.tm-cal-cell.is-down { background: rgba(47, 201, 141, .16); border-color: rgba(47, 201, 141, .5); }
.tm-cal-cell.is-flat { background: var(--panel-2); }
.tm-cal-d { font-size: 12px; color: var(--text-dim); }
.tm-cal-v { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tm-cal-cell.is-up .tm-cal-v { color: var(--up); }
.tm-cal-cell.is-down .tm-cal-v { color: var(--down); }

/* 交易统计 */
.tm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tm-stat {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.tm-stat-k { font-size: 12px; color: var(--text-dim); }
.tm-stat-v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* 成交笔数等可点击统计格（点击查看明细弹窗）2026-11-19 */
.tm-stat-clickable { cursor: pointer; transition: border-color .15s, background .15s; }
.tm-stat-clickable:hover { border-color: var(--accent); background: var(--panel-3); }
.tm-stat-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tm-stat-hint { font-size: 11px; color: var(--accent); opacity: .85; margin-top: 1px; }

/* 资金操作条 */
.tm-fund-bar {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 8px;
}
.tm-fund-field { display: flex; flex-direction: column; gap: 4px; }
.tm-fund-field label { font-size: 12px; color: var(--text-dim); }
.tm-fund-field input {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 7px 10px; width: 160px; font-variant-numeric: tabular-nums;
}
.sel-sm {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 5px 8px; font-size: 13px;
}
.btn-danger { border-color: #7d2b36; color: #ff8a99; }
.btn-danger:hover { background: rgba(244, 85, 107, .14); }

@media (max-width: 720px) {
  .tm-kpi-value { font-size: 20px; }
  .tm-donut { width: 150px; height: 150px; }
}

/* 收益归因（2026-10-23 新增） */
.tm-attr-sum {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 4px 0 14px;
}
.tm-attr-cell {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.tm-attr-k { font-size: 12px; color: var(--text-dim); }
.tm-attr-v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-attr-v.up { color: var(--up); }
.tm-attr-v.down { color: var(--down); }

.tm-attr-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px; margin-bottom: 12px;
}
.tm-sub-h {
  margin: 8px 0 6px; font-size: 13px; font-weight: 600; color: var(--text-dim);
  letter-spacing: .3px;
}
.tm-attr-bar { white-space: nowrap; }
.tm-bar {
  display: inline-block; width: 70px; height: 6px; border-radius: 3px;
  background: rgba(255, 255, 255, .08); vertical-align: middle;
  margin-right: 6px; overflow: hidden;
}
.tm-bar-fill { display: block; height: 100%; border-radius: 3px; }
/* 会员锁定态（交易监控，2026-10-23） */
.tm-lock {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px 18px; margin: 4px 0;
  border: 1px dashed var(--border); border-radius: 10px;
  background: repeating-linear-gradient(45deg,
    rgba(255, 255, 255, .015) 0 10px, transparent 10px 20px);
  color: var(--text-dim);
}
.tm-lock-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: rgba(61, 139, 253, .16); color: #8ab8ff;
  border: 1px solid rgba(61, 139, 253, .35);
}
.tm-lock-title { font-size: 15px; font-weight: 600; color: var(--text); }
.tm-lock-desc { font-size: 13px; line-height: 1.6; }
.tm-lock-desc b { color: var(--text); font-weight: 600; }
.tm-lock-inline { margin: 10px 0; }

.btn.is-locked, .btn:disabled {
  opacity: .5; cursor: not-allowed; filter: grayscale(.4);
}
.is-locked input { opacity: .5; }
.ae-grid.is-locked { opacity: .5; pointer-events: none; }/* =========================================================================
   交易终端（2026-10-23）
   与真实交易软件同构：左列表 / 中行情+账本 / 右下单
   ========================================================================= */
.tt-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 268px;
  gap: 10px;
  align-items: start;
}
@media (max-width: 1280px) {
  .tt-layout { grid-template-columns: 210px minmax(0, 1fr) 244px; }
}
@media (max-width: 1080px) {
  .tt-layout { grid-template-columns: 1fr; }
  .tt-side, .tt-order { max-height: none; }
}

/* ---- 左：标的列表 ---- */
.tt-side {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; max-height: 720px;
}
.tt-side-head { padding: 8px; border-bottom: 1px solid var(--border); }
.tt-search { display: flex; gap: 4px; align-items: stretch; }
.tt-search .tt-input { flex: 1; min-width: 0; }
.tt-search-btn {
  flex: none; cursor: pointer;
  background: linear-gradient(135deg, #2f81f7, #1f6feb); border: none; color: #fff;
  border-radius: 5px; padding: 0 9px; font-size: 12px; line-height: 1;
}
.tt-search-btn:hover { filter: brightness(1.12); }
.tt-search-btn:active { transform: translateY(1px); }
.tt-input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 5px; padding: 6px 8px; font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tt-input:focus { outline: none; border-color: var(--accent); }
.tt-sorts { display: flex; gap: 4px; margin-top: 6px; }
.tt-sorts .seg { flex: 1; font-size: 11px; padding: 3px 0; }
.tt-list { overflow-y: auto; flex: 1; min-height: 160px; }
.tt-side-foot { padding: 5px 8px; border-top: 1px solid var(--border); font-size: 11px; }

.tt-row {
  /* 🔴 2026-10-25 修：原 4 列（46px 1fr auto auto）装 5 个单元格，
     第 5 列（成交额）溢出被 .tt-side 的 overflow:hidden 裁掉 → 用户看不到成交量。
     改显式 5 列并给金额列定宽。 */
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 52px 46px 56px;
  gap: 4px; align-items: center;
  padding: 5px 8px; cursor: pointer; font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .035);
  font-variant-numeric: tabular-nums;
}
.tt-row:hover { background: rgba(61, 139, 253, .09); }
.tt-row.is-active { background: rgba(61, 139, 253, .18); box-shadow: inset 2px 0 0 var(--accent); }
.tt-r-code { color: var(--text-dim); font-size: 11px; }
.tt-r-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-r-last { text-align: right; }
.tt-r-chg { text-align: right; font-size: 11px; }
.tt-r-amt { text-align: right; font-size: 11px; color: var(--text-dim); }
.tt-r-last.up, .tt-r-chg.up { color: var(--up); }
.tt-r-last.down, .tt-r-chg.down { color: var(--down); }

/* ---- 中：行情 ---- */
.tt-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tt-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; padding: 8px 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
}
.tt-title { font-size: 16px; font-weight: 700; }
.tt-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.tt-head-r { text-align: right; }
.tt-last { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tt-chg { font-size: 13px; font-variant-numeric: tabular-nums; }
.tt-last .up, .tt-chg .up { color: var(--up); }
.tt-last .down, .tt-chg .down { color: var(--down); }

.tt-chart {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 8px; min-height: 300px;
}
.tt-svg { width: 100%; height: auto; display: block; }

/* 盘口概览 */
.tt-book {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.tt-bk {
  background: var(--panel); padding: 7px 10px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px;
  font-size: 12px;
}
.tt-bk-k { color: var(--text-dim); font-size: 11px; }
.tt-bk-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.tt-bk-v.up { color: var(--up); }
.tt-bk-v.down { color: var(--down); }
.tt-bk-note {
  grid-column: 1 / -1; background: var(--panel);
  padding: 5px 10px; font-size: 11px;
}

/* 底部账本 */
.tt-bottom {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.tt-btabs { display: flex; gap: 4px; padding: 7px 8px; border-bottom: 1px solid var(--border); }
.tt-btabs .seg { font-size: 12px; padding: 4px 12px; }
.tt-bbody { max-height: 250px; overflow: auto; }
.tt-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tt-table th {
  position: sticky; top: 0; background: var(--panel-2);
  text-align: left; padding: 6px 8px; font-weight: 600;
  color: var(--text-dim); font-size: 11px; white-space: nowrap;
}
.tt-table td {
  padding: 6px 8px; border-top: 1px solid rgba(255, 255, 255, .04);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tt-table tr.tt-clickable { cursor: pointer; }
.tt-table tr.tt-clickable:hover { background: rgba(61, 139, 253, .08); }
.tt-reject {
  margin: 8px; padding: 10px 12px; border-radius: 6px;
  background: rgba(244, 85, 107, .12); border: 1px solid rgba(244, 85, 107, .4);
  display: flex; flex-direction: column; gap: 4px; font-size: 12px;
}
.tt-reject b { color: var(--up); }

/* ---- 右：下单面板 ---- */
.tt-order {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 9px;
}
.tt-bs { display: flex; gap: 6px; }
.tt-bs .seg { flex: 1; padding: 7px 0; font-weight: 600; }
.tt-bs .seg.is-buy.active {
  background: rgba(244, 85, 107, .18); border-color: var(--up); color: var(--up);
  box-shadow: none;
}
.tt-bs .seg.is-sell.active {
  background: rgba(47, 201, 141, .18); border-color: var(--down); color: var(--down);
  box-shadow: none;
}
.tt-side-hint { font-size: 11px; color: var(--text-dim); }
.tt-side-hint b { color: var(--text); font-variant-numeric: tabular-nums; }

.tt-field { display: flex; flex-direction: column; gap: 4px; }
.tt-field label { font-size: 11px; color: var(--text-dim); }
.tt-price-row { display: flex; gap: 6px; }
.tt-price-row .tt-input { flex: 1; }
.tt-price-row .btn { flex: 0 0 auto; font-size: 11px; padding: 0 8px; }
.tt-quick { display: flex; gap: 4px; margin-top: 4px; }
.tt-quick button {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-dim); border-radius: 4px; font-size: 11px;
  padding: 4px 0; cursor: pointer;
}
.tt-quick button:hover { border-color: var(--accent); color: var(--text); }

.tt-est {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 9px;
  display: flex; flex-direction: column; gap: 4px; font-size: 12px;
}
.tt-est-row { display: flex; justify-content: space-between; gap: 8px; }
.tt-est-row span { color: var(--text-dim); font-size: 11px; }
.tt-est-row b { font-variant-numeric: tabular-nums; }
.tt-est-row.is-total { border-top: 1px dashed var(--border); padding-top: 5px; }
.tt-est-row.is-total b { color: var(--text); font-size: 13px; }

.tt-submit {
  width: 100%; padding: 11px 0; border-radius: 6px; cursor: pointer;
  font-size: 14px; font-weight: 700; border: 1px solid transparent;
  color: #fff; transition: filter .15s;
}
.tt-submit.is-buy { background: #c9283e; }
.tt-submit.is-sell { background: #0d8a63; }
.tt-submit:hover { filter: brightness(1.12); }
.tt-submit:disabled { opacity: .6; cursor: wait; }

.tt-acct {
  display: flex; flex-direction: column; gap: 3px;
  border-top: 1px solid var(--border); padding-top: 8px;
}
.tt-acct-row { display: flex; justify-content: space-between; font-size: 12px; }
.tt-acct-row span { color: var(--text-dim); font-size: 11px; }
.tt-acct-row b { font-variant-numeric: tabular-nums; }

.tt-guard {
  border-top: 1px solid var(--border); padding-top: 8px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px; color: var(--text-dim); line-height: 1.5;
}
.tt-guard b { color: var(--text); font-size: 11px; }

/* ---- 总览页两栏 ---- */
.tm-ov-cols {
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 12px; align-items: start;
}
@media (max-width: 1080px) { .tm-ov-cols { grid-template-columns: 1fr; } }
.tm-ov-col { min-width: 0; }
.tm-ov-col .tm-ov-card:last-child { margin-bottom: 0; }

/* 下单面板紧凑化：确保提交按钮落在首屏（视口较矮的笔记本也够用） */
.tt-order { gap: 7px; }
.tt-acct { padding-top: 6px; gap: 2px; }
.tt-acct-cash { color: #ffd166; }
.tt-guard { padding-top: 6px; line-height: 1.4; }
@media (max-height: 800px) {
  .tt-guard span:nth-child(3) { display: none; }
  .tt-chart { min-height: 240px; }
}

/* =========================================================================
   交易终端 · 布局改版（2026-10-23 第二轮）
   起因：交易监控页「两边空荡荡」。
   根因：中间栏误写成 <main class="tt-main">，嵌套在外层 <main> 内，
        继承了全局 main{max-width:1280px; margin:0 auto; padding:22px}，
        于是行情卡片被压成 1280 居中（还各缩进 22px），两侧大片空白。
   改版：① 中间栏改 div + 交易页全宽；② 三栏等高（原 align-items:start，
        左右两栏只有内容高度、下方留空）；③ 图表按容器实测宽重绘；
        ④ 用真实信息填满空白（表头持仓、下单面板持仓卡），而不是留白。
   ========================================================================= */

/* ① 交易监控全宽；其他栏目仍保持 1280 阅读宽度 */
main.is-wide { max-width: none; padding: 14px 16px 20px; }

/* ② 中间栏不再受 main 规则影响（防御性：万一又被写成 main 也不至于塌） */
.tt-main { padding: 0; max-width: none; margin: 0; }

/* ③ 三栏比例自适应 + 等高 */
.tt-layout {
  grid-template-columns: clamp(258px, 19vw, 352px) minmax(0, 1fr) clamp(284px, 18vw, 346px);
  gap: 12px;
  align-items: stretch;
}
.tt-side { max-height: none; }
@media (max-width: 1080px) {
  .tt-layout { grid-template-columns: 1fr; }
  .tt-side, .tt-order { max-height: none; height: auto; }
}

/* ④ 标的列表：宽屏才加「成交额」列，避免窄栏把名称挤没 */
.tt-r-amt { display: none; }
@media (min-width: 1700px) {
  .tt-row { grid-template-columns: 52px minmax(0, 1fr) 54px 54px 50px; padding: 6px 10px; }
  .tt-r-amt { display: block; text-align: right; color: var(--text-dim); font-size: 11px; }
}

/* ⑤ 表头三段式：名称/代码 · 本标的持仓 · 最新价（填掉表头中段空白） */
.tt-head { align-items: center; padding: 10px 14px; }
.tt-head-l { min-width: 0; }
.tt-head-m { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; flex: 1 1 auto; }
.tt-hm { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.tt-hm-k { font-size: 11px; color: var(--text-dim); }
.tt-hm-v { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tt-hm-v.up { color: var(--up); }
.tt-hm-v.down { color: var(--down); }

/* ⑥ 盘口概览：宽屏自动排成一行 8 项，不再固定 4 列拉出大段空白 */
.tt-book { grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); }

/* ⑦ 下单面板：内容紧凑排列，空白集中留在底部（space-between 会把 8 组
   均分，导致「委托数量」与「买入」按钮之间空出 100px，很不专业） */
.tt-order { justify-content: flex-start; gap: 8px; }
.tt-mine { margin-top: auto; }   /* 本标的持仓卡 + 免责声明贴底 */
.tt-mine {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px;
}
.tt-mine-h { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); }
.tt-mine-h b { color: var(--text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tt-mine-row { display: flex; justify-content: space-between; font-size: 12px; gap: 8px; }
.tt-mine-row span { color: var(--text-dim); font-size: 11px; }
.tt-mine-row b { font-variant-numeric: tabular-nums; }
.tt-mine-row b.up { color: var(--up); }
.tt-mine-row b.down { color: var(--down); }

/* ⑧ 账本空态：居中说明，不再是一行小字顶在大片空白上 */
.tt-bbody { min-height: 150px; }
.tt-empty {
  min-height: 140px; display: flex; flex-direction: column; gap: 7px;
  align-items: center; justify-content: center; text-align: center;
  color: var(--text-dim); font-size: 12px; padding: 18px 24px; line-height: 1.6;
}
.tt-empty-ico { font-size: 20px; opacity: .45; line-height: 1; }
.tt-empty .hint { max-width: 460px; font-size: 12px; }

/* ⑨ 盘口概览列数固定为 4 / 8（auto-fit 会排成 6+2，最后一行空半截） */
.tt-book { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1700px) {
  .tt-book { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* ⑩ 终端纵向铺满：由 JS 实测可用高度写入 --tt-h（写死 calc(100vh - Npx)
   会因顶栏/二级栏高度变化而算不准，底部总会差一截留白） */
.tt-layout {
  height: var(--tt-h, auto);
  align-items: stretch;
}
.tt-side, .tt-order { max-height: none; height: 100%; }
.tt-main { height: 100%; min-height: 0; }
/* 中栏：图表与账本按 flex 分配剩余高度，各自内部滚动 */
.tt-chart { flex: 1 1 auto; min-height: 240px; display: flex; flex-direction: column; }
.tt-chart .tt-svg { flex: 1 1 auto; min-height: 0; }
.tt-bottom { display: flex; flex-direction: column; min-height: 150px; flex: 0 0 auto; }
.tt-bbody { flex: 1 1 auto; max-height: none; min-height: 0; overflow: auto; }
/* 右栏：内容超出时内部滚动，不撑高整列 */
.tt-order { overflow-y: auto; }
@media (max-width: 1080px) {
  .tt-layout { height: auto; }
  .tt-side, .tt-order, .tt-main { height: auto; }
  .tt-bbody { max-height: 250px; }
}

/* =========================================================================
   策略共创工作台（2026-10-23）
   设计要点：让「提议 → 重测 → 投票 → 采纳」在视觉上是一条清晰的流水线，
   每一步都有明确的当前状态标识与下一步按钮，降低参与门槛。
   ========================================================================= */
.cl-pane.hidden { display: none; }
.cl-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}

/* ---- 提案卡片 ---- */
.cl-list { display: flex; flex-direction: column; gap: 12px; }
.cl-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
}
.cl-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.cl-card-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; row-gap: 5px; }
.cl-card-title b { font-size: 14px; }
/* 策略名与编号单独一组，弱化显示，避免和标题挤在一起 */
.cl-card-title .hint { padding-left: 9px; border-left: 1px solid var(--border); }
.cl-st {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.cl-st-open   { background: rgba(47, 201, 141, .16); color: #2fc98d; border: 1px solid rgba(47,201,141,.4); }
.cl-st-pass   { background: rgba(47, 143, 249, .16); color: #4f9cf9; border: 1px solid rgba(79,156,249,.4); }
.cl-st-rej    { background: rgba(244, 85, 107, .14); color: #f4556b; border: 1px solid rgba(244,85,107,.4); }
.cl-st-adopt  { background: rgba(210, 153, 34, .16); color: #d69922; border: 1px solid rgba(210,153,34,.45); }
.cl-st-closed { background: var(--bg-2); color: var(--text-dim); border: 1px solid var(--border); }

.cl-votes { display: flex; gap: 6px; flex-shrink: 0; }
.cl-vote {
  padding: 2px 9px; border-radius: 14px; font-size: 11px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cl-vote.up   { background: rgba(244, 85, 107, .13); color: #f4556b; }
.cl-vote.down { background: rgba(47, 201, 141, .13); color: #2fc98d; }
.cl-vote.ab   { background: var(--bg-2); color: var(--text-dim); }

.cl-rationale {
  font-size: 13px; line-height: 1.6; color: var(--text);
  padding: 8px 10px; background: var(--bg-2);
  border-radius: 6px; margin-bottom: 8px;
  border-left: 3px solid var(--accent);
}
.cl-diffs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.cl-diff {
  font-size: 12px; padding: 3px 10px; border-radius: 5px;
  background: var(--panel-2); border: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.cl-diff b { color: var(--text-dim); font-weight: 500; margin-right: 4px; }

.cl-hint-block {
  font-size: 12px; color: var(--text-dim); padding: 12px;
  background: var(--bg-2); border-radius: 6px; text-align: center;
}

/* ---- 重测报告 ---- */
.cl-test { border-radius: 7px; padding: 11px 13px; margin-bottom: 10px; }
.cl-test.is-ok { background: rgba(47, 201, 141, .07); border: 1px solid rgba(47, 201, 141, .3); }
.cl-test.is-no { background: rgba(244, 85, 107, .07); border: 1px solid rgba(244, 85, 107, .3); }
.cl-test-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 9px; flex-wrap: wrap;
}
.cl-test.is-ok .cl-test-head b { color: #2fc98d; }
.cl-test.is-no .cl-test-head b { color: #f4556b; }
.cl-test-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 12px;
}
.cl-metric { display: flex; flex-direction: column; gap: 2px; }
.cl-m-k { font-size: 11px; color: var(--text-dim); }
.cl-m-v {
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.cl-m-arrow { color: var(--text-dim); font-weight: 400; font-style: normal; }
.cl-m-d { font-size: 11px; }
.cl-delta { font-variant-numeric: tabular-nums; }
.cl-d-good { color: #2fc98d; }
.cl-d-bad  { color: #f4556b; }
.cl-verdict {
  margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--border);
  font-size: 12px; line-height: 1.6; color: var(--text-dim);
}
.cl-meta { font-size: 11px; margin-bottom: 8px; }
.cl-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cl-adopted { font-size: 12px; color: #d69922; }

.cl-empty {
  min-height: 150px; display: flex; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; text-align: center;
  color: var(--text-dim); font-size: 13px; padding: 24px;
  background: var(--panel); border: 1px dashed var(--border); border-radius: var(--radius);
}
.cl-empty-ico { font-size: 26px; opacity: .4; line-height: 1; }
.cl-empty .hint { max-width: 480px; font-size: 12px; line-height: 1.6; }

/* ---- 流程说明 ---- */
.cl-flow { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.cl-step {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 13px 15px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.cl-step-n {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #2f81f7, #1f6feb); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.cl-step .hint { margin-top: 3px; line-height: 1.65; }
.cl-note {
  padding: 13px 15px; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 3px solid #d69922;
}
.cl-note .hint { margin-top: 4px; line-height: 1.7; }

.cl-ok  { color: #2fc98d; }
.cl-err { color: #f4556b; }

/* =========================================================================
   风险测评弹窗（2026-10-23）
   放在登录之后弹一次，让用户直接得到自己的风险类型，而不是系统里
   挂着一个没人测过的"C3"。点击右上角风险徽章可随时重测。
   ========================================================================= */
.quiz-card { width: min(620px, 94vw); padding: 0; display: flex; flex-direction: column; max-height: 88vh; }
.quiz-card .modal-body { padding: 16px 20px; }
.quiz-intro { margin: 0 0 14px; line-height: 1.7; }
.quiz-intro b { color: var(--accent); }

.quiz-q { margin-bottom: 16px; }
.quiz-q:last-child { margin-bottom: 4px; }
.quiz-q-title {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13px; font-weight: 600; margin-bottom: 8px; line-height: 1.5;
}
.quiz-q-no {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.quiz-opts { display: flex; flex-direction: column; gap: 5px; }
.quiz-opt {
  text-align: left; padding: 8px 12px; font-size: 12px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 7px;
  cursor: pointer; transition: border-color .12s, background .12s;
  font-family: inherit;
}
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt.is-on {
  background: rgba(47, 129, 247, .14);
  border-color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* ---- 结论页 ---- */
.quiz-verdict {
  display: flex; align-items: baseline; gap: 12px;
  padding: 4px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.quiz-lvl {
  font-size: 34px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #4f9cf9, #2f81f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quiz-lvl-cn { font-size: 17px; font-weight: 700; }
.quiz-score { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.quiz-desc { font-size: 13px; line-height: 1.7; margin-bottom: 8px; }
.quiz-fit {
  font-size: 12px; line-height: 1.7; color: var(--text-dim);
  padding: 9px 12px; background: var(--bg-2); border-radius: 7px;
  border-left: 3px solid var(--accent); margin-bottom: 10px;
}
.quiz-note { line-height: 1.65; }

/* =========================================================================
   扫描规则参数设置（2026-10-23）
   UI 取舍：不另开全局参数面板（21 条规则会非常长），改为「就地编辑」——
   每个带参数的规则卡片右侧一个齿轮，点开在卡片旁弹出小面板。
   「勾选 → 设参 → 扫描」始终在同一视线内，不用跳页。
   ========================================================================= */
/* 规则卡片：沿用 .chip 本身的样式（原本就渲染正常），
   齿轮作为卡片内最后一个 flex 子元素追加，不再套外层容器。
   2026-10-23 教训：套一层 .chip-wrap 会打断原有宽度计算，导致卡片被压窄、
   文字换行/截断。改样式前先确认它原本是靠什么撑开的。 */
/* 🔴 规则卡片必须单行：.field input 有 width:100%（给文本框用的），
   会把勾选框撑满整行、把文字挤到下一行 —— 表现为卡片变高、勾选框在上文字在下。
   这里用更高特异性把勾选框还原成内容宽度。2026-10-23 实测定位。 */
.chipbox .chip,
.chipgrp .chip {
  display: inline-flex; align-items: center; gap: 6px;
  flex-wrap: nowrap; white-space: nowrap;
}
.chipbox .chip > input[type="checkbox"],
.chipgrp .chip > input[type="checkbox"] {
  width: auto; flex: 0 0 auto; margin: 0; padding: 0;
}
.chip > .chip-gear { margin-left: 2px; }
.chip.is-custom { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.chip.is-custom > .chip-gear { color: var(--accent); }

/* 齿轮：默认弱化，悬停/已自定义时显眼，避免视觉噪音 */
.chip-gear {
  flex: 0 0 auto;
  border: none; border-left: 1px solid var(--border);
  background: transparent; color: var(--text-dim);
  padding: 0 8px; cursor: pointer; font-size: 11px; line-height: 1;
  transition: background .12s, color .12s;
}
.chip-gear:hover { background: var(--panel-2); color: var(--accent); }
/* 参数被改过：齿轮点亮 + 卡片描边，一眼看出哪条不是默认值 */


.sc-param-sum {
  margin-left: 8px; font-size: 11px; color: var(--text-dim);
  font-weight: 400;
}
.sc-param-sum.has-custom { color: var(--accent); font-weight: 600; }

/* ---- 参数弹层 ---- */
.spp {
  position: fixed; z-index: 80; width: 244px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-lg);
  font-size: 12px;
}
.spp.hidden { display: none; }
.spp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-bottom: 1px solid var(--border);
}
.spp-title { font-size: 12px; font-weight: 700; }
.spp-x {
  border: none; background: transparent; color: var(--text-dim);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.spp-x:hover { color: var(--text); }
.spp-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; }
.spp-field { display: grid; grid-template-columns: 1fr 68px; gap: 4px 8px; align-items: center; }
.spp-k { font-size: 12px; color: var(--text); }
.spp-field input {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 5px 7px; font-size: 12px; width: 100%;
  font-variant-numeric: tabular-nums; font-family: inherit;
}
.spp-field input:focus { outline: none; border-color: var(--accent); }
.spp-rng { grid-column: 2; font-size: 10px; color: var(--text-dim); text-align: right; }
.spp-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 9px 12px; border-top: 1px solid var(--border);
}

/* =========================================================================
   组合权重优化面板（2026-10-23）
   放在「组合回测」里：回测告诉你策略赚不赚钱，这块告诉你钱怎么分配。
   ========================================================================= */
.pf-opt {
  margin: 18px 0 6px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pf-opt-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-opt-head b { font-size: 13px; }
.pf-opt-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); }
.pf-opt-bar label { display: inline-flex; align-items: center; gap: 6px; }
.pf-opt-bar select {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 4px 7px; font-size: 12px; font-family: inherit;
}
.pf-opt-result { margin-top: 14px; }
.pf-opt-kpi {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.pf-opt-kpi .kpi {
  background: var(--bg-2); border-radius: 8px; padding: 9px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.pf-opt-kpi .kpi-k { font-size: 11px; color: var(--text-dim); }
.pf-opt-kpi .kpi-v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-opt-kpi .kpi-v.up { color: #2fc98d; }
.pf-opt-kpi .kpi-sub { font-size: 11px; color: var(--text-dim); }

/* 权重条形：一眼看出谁重谁轻 */
.pf-opt-list { display: flex; flex-direction: column; gap: 5px; max-height: 260px; overflow: auto; }
.pf-opt-row { display: grid; grid-template-columns: 74px 1fr 62px; gap: 10px; align-items: center; }
.pf-opt-code { font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.pf-opt-track { background: var(--bg-2); border-radius: 3px; height: 8px; overflow: hidden; }
.pf-opt-track i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #4f9cf9, #2f81f7);
}
.pf-opt-val { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.pf-opt-note { margin-top: 10px; line-height: 1.7; }

/* 基准下拉（组合回测） */
.pf-bench-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }
.pf-bench-label select {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 4px 7px; font-size: 12px; font-family: inherit;
}

/* 行业暴露条 */
.pf-opt-groups { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pf-opt-gk { font-size: 11px; color: var(--text-dim); }
.pf-opt-g { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); }
.pf-opt-g b { font-weight: 500; }
.pf-opt-g i { display: inline-block; height: 6px; min-width: 2px; border-radius: 3px; background: #2f81f7; }
.pf-opt-g em { font-style: normal; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* ===== 选中即分析：行情表行内动作 ===== */
.acts-col { white-space: nowrap; text-align: right; }
.lnk-btn {
  border: none; background: none; padding: 2px 6px; margin-left: 2px;
  color: var(--accent); cursor: pointer; font-size: 12px; border-radius: 4px;
  line-height: 1.6;
}
.lnk-btn:hover { background: rgba(47,129,247,.12); text-decoration: underline; }
.lnk-btn + .lnk-btn { margin-left: 4px; }
.data-table tbody tr:hover .acts-col .lnk-btn { opacity: 1; }
.acts-col .lnk-btn { opacity: .72; transition: opacity .12s; }

/* ===== 结果区操作条（导出等） ===== */
.result-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 4px 0 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
}
.result-actions .hint { margin-left: 2px; }

/* ===== 研究台结论卡（方案 P0-1：结论+推理链路+规则+失败披露） ===== */
.ir-card {
  margin: 0 18px 14px; padding: 14px 18px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  animation: ir-in .25s ease;
}
@keyframes ir-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ir-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ir-conclusion { font-size: 15px; font-weight: 600; line-height: 1.55; }
.ir-conclusion .ir-q { color: var(--text-dim); font-weight: 400; }
.ir-head-side { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ir-src {
  font-size: 11px; padding: 2px 8px; border-radius: 20px; white-space: nowrap;
  background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text-dim);
}
.ir-src.llm {
  color: var(--accent); font-weight: 600;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.ir-close {
  border: none; background: none; font-size: 15px; line-height: 1;
  color: var(--text-dim); cursor: pointer; padding: 4px 7px;
}
.ir-close:hover { color: var(--text); }
/* 推理链：意图 → 解析 → 规则 → 执行 */
.ir-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 10px 0 4px; }
.ir-step {
  display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  background: var(--panel-2); border: 1px solid var(--border);
}
.ir-step b { color: var(--accent); }
.ir-arrow { color: var(--text-dim); font-size: 11px; }
.ir-chip {
  font-size: 11px; padding: 2px 8px; border-radius: 4px; white-space: nowrap;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.ir-chip .ir-pv { color: var(--text-dim); }
.ir-body { margin-top: 8px; }
.ir-body .data-table { margin: 4px 0; }
.ir-body .table-wrap { max-height: 340px; overflow: auto; }
.ir-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 4px 0 8px; }
/* 失败披露：黄色警示边区，把「我们主动交底」做成固定形态 */
.ir-disclosure {
  margin-top: 10px; padding: 8px 12px; border-radius: 6px;
  background: color-mix(in srgb, var(--warn) 8%, transparent);
  border-left: 3px solid var(--warn);
  font-size: 12px; color: var(--text-dim); line-height: 1.75;
}
.ir-disclosure b { color: var(--text); }
.ir-pass { color: var(--down); font-weight: 700; }
.ir-fail { color: var(--up); font-weight: 700; }

/* ===== 骨架屏（P0-2：替换 loading 文字占位） ===== */
.sk-box {
  position: relative; overflow: hidden; border-radius: 6px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.sk-box::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--text) 11%, transparent), transparent);
  animation: sk-shimmer 1.4s infinite;
}
@keyframes sk-shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; margin: 7px 0; }
.sk-line.w-60 { width: 60%; } .sk-line.w-40 { width: 40%; } .sk-line.w-80 { width: 80%; }
.sk-h-28 { height: 28px; } .sk-h-40 { height: 40px; } .sk-h-44 { height: 44px; }
.sk-h-64 { height: 64px; } .sk-h-96 { height: 96px; } .sk-h-120 { height: 120px; }
.sk-h-160 { height: 160px; } .sk-h-200 { height: 200px; }
.sk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 8px 0; }
.sk-table { padding: 4px 0; }

/* ===== 持仓来源徽章（AI选股 / 扫描全自动 / 手动，2026-10-25） ===== */
.src-badge {
  display: inline-block; font-size: 11px; line-height: 1.7;
  padding: 1px 8px; border-radius: 20px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text-dim);
}
.src-badge.src-ai {
  color: var(--accent); font-weight: 600;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}
.src-badge.src-scan {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  border-color: color-mix(in srgb, var(--warn) 30%, transparent);
}
.src-badge.src-mix { color: var(--text-dim); }

/* ===== AI 选股 → 自动下单 自动执行区 ===== */
.adv-autoexec {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 8px 0; padding: 9px 12px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, transparent);
}
.adv-autoexec .hint { display: inline-flex; align-items: center; gap: 4px; }
.adv-autoexec input[type="number"] {
  width: 52px; padding: 2px 5px; font-size: 12px;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg); color: var(--text);
}

/* ===== 快照对比 ===== */
.ra-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.snap-body { display: flex; gap: 18px; padding: 16px 20px; align-items: flex-start; }
.snap-list { flex: 0 0 320px; max-height: 60vh; overflow: auto; }
.snap-hint { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.snap-item {
  display: flex; align-items: center; gap: 6px; padding: 7px 8px;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.snap-item:hover { background: var(--row-hover); }
.snap-label { font-weight: 500; }
.snap-meta { flex: 1; font-size: 12px; color: var(--text-dim); }
.snap-cmp { flex: 1; min-width: 0; overflow: auto; max-height: 66vh; }
.snap-cmp table { margin-top: 8px; }
.snap-eq { color: var(--text-dim); font-size: 12px; }
.snap-diff-row td { background: rgba(240,160,32,.08); }

/* ===== Cmd+K 命令面板 ===== */
.cmdk-card { width: 560px; padding: 12px; }
.cmdk-card input {
  width: 100%; padding: 10px 12px; font-size: 14px; margin-bottom: 8px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); outline: none;
}
.cmdk-card input:focus { border-color: var(--accent); }
.cmdk-list { max-height: 320px; overflow: auto; }
.cmdk-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.cmdk-item.active, .cmdk-item:hover { background: var(--row-hover); }
.cmdk-type {
  flex: 0 0 40px; font-size: 11px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 4px; text-align: center; padding: 1px 0;
}

/* ===== 统计可信度抽屉 ===== */
.trust-body { padding: 16px 20px; max-height: 74vh; overflow: auto; }
.trust-body .sub-h { margin: 18px 0 8px; }
.trust-body .sub-h:first-child { margin-top: 0; }
.trust-list { margin: 6px 0 0 18px; line-height: 1.9; }
.trust-list li { font-size: 13px; }
.metric .k { cursor: help; }

/* ===== 研究台（意图驱动） ===== */
.intent-bar { display: flex; align-items: center; gap: 6px; margin-right: 10px; }
.intent-bar input {
  width: min(230px, 19vw); padding: 7px 12px; font-size: 13px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); outline: none;
}
.intent-bar input:focus { border-color: var(--accent); }
/* 顶栏防挤压折行（2026-10-26 黄总反馈：意图框太长把左侧徽章/账户切换挤成两行） */
.topbar .badge, .acct-mode .am-label, .acct-mode .am-seg,
.theme-btn, .brand-text h1, .brand-text p, .user-menu { white-space: nowrap; }
.intent-body { padding: 16px 20px; }
.intent-list { margin: 0 0 10px 18px; line-height: 2; }
.intent-src {
  margin: 0 0 8px; padding: 6px 10px; font-size: 12px;
  border-radius: 6px; color: var(--text-dim);
  background: var(--bg-soft, rgba(127,127,127,.08));
}
.intent-src.llm {
  color: var(--accent); font-weight: 600;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.intent-foot {
  padding: 12px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* 买卖方向：独立于涨跌语义，避免 --up/--down 变更时被顺带改掉 */
.buy, .side-buy { color: var(--buy); }
.sell, .side-sell { color: var(--sell); }

/* ===== 策略共创 ===== */
.cb-form {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; margin: 10px 0 16px; background: var(--panel-2);
}
.cb-form textarea {
  width: 100%; padding: 8px 10px; font-size: 13px; font-family: inherit;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); resize: vertical;
}
.cb-body { padding: 16px 20px; max-height: 62vh; overflow: auto; }
.cb-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.cb-kv { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 13px; margin: 4px 0; }
.cb-kv > span:first-child { color: var(--text-dim); }
.cb-status { padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.cb-st-open { background: rgba(47,129,247,.15); color: var(--accent); border: 1px solid rgba(47,129,247,.4); }
.cb-st-passed { background: rgba(46,160,67,.15); color: var(--ok); border: 1px solid rgba(46,160,67,.4); }
.cb-st-rejected { background: rgba(210,153,34,.15); color: #d29922; border: 1px solid rgba(210,153,34,.4); }
.cb-st-adopted { background: rgba(46,160,67,.15); color: var(--ok); border: 1px solid rgba(46,160,67,.4); }
.cb-st-closed { background: rgba(139,152,169,.15); color: var(--text-dim); border: 1px solid var(--border); }
.cb-st-testing { background: rgba(210,153,34,.15); color: #d29922; border: 1px solid rgba(210,153,34,.4); }
.cb-diff { font-size: 13px; }
.cb-diff del { color: var(--text-dim); }
.cb-diff ins { color: var(--buy); text-decoration: none; font-weight: 600; }

.cb-verdict { border-radius: 8px; padding: 10px 12px; margin: 8px 0 12px; font-size: 13px; line-height: 1.7; }
.cb-verdict.ok { background: rgba(46,160,67,.10); border: 1px solid rgba(46,160,67,.35); }
.cb-verdict.bad { background: rgba(210,153,34,.10); border: 1px solid rgba(210,153,34,.35); }
.cb-sum { font-size: 12px; color: var(--text-dim); }

/* ===== AI 选股能力看板（第④段 · 过程指标 · 模拟盘，2026-10-25） ===== */
.cap-notice {
  margin: 8px 0 12px; padding: 9px 12px; border-radius: 8px;
  font-size: 12px; line-height: 1.75; color: var(--text-dim);
  background: color-mix(in srgb, var(--warn) 8%, transparent);
  border-left: 3px solid var(--warn);
}
.cap-notice b { color: var(--text); }
#adv-cap-table { margin-top: 10px; }
#adv-cap-table td:nth-child(1) { white-space: nowrap; font-weight: 600; }
#adv-cap-table td:nth-child(3) { color: var(--text-dim); }

/* ===== 机构工具 · 对外材料下载（2026-10-25） ===== */
.inst-download {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin: 10px 0 14px; padding: 11px 14px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border: 1px dashed color-mix(in srgb, var(--accent) 28%, transparent);
}
.inst-dl-text { display: flex; flex-direction: column; gap: 3px; min-width: 260px; flex: 1; }
.inst-dl-text b { font-size: 13px; }
.inst-dl-text span { font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ===== 机构研究环境提示条（合规裁剪版，2026-10-25） ===== */
.shell-banner {
  padding: 8px 20px; font-size: 12px; line-height: 1.7; color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.shell-banner b { color: var(--accent); }

/* ===== 机构版外壳状态提示（管理员账号管理页，2026-11-05） ===== */
.shell-admin-note {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 8px;
  font-size: 12px; line-height: 1.75; color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.shell-admin-note b { color: var(--text); }
.shell-admin-note .sn-warn { color: var(--accent); }

/* ===== 自动交易执行 · 边界说明块（2026-10-25） ===== */
.ae-note {
  margin: 8px 0 10px; padding: 9px 12px; border-radius: 8px;
  font-size: 12px; line-height: 1.75; color: var(--text-dim);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-left: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.ae-note b { color: var(--text); }

/* ===== 榜单列头排序（2026-10-25） ===== */
.data-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.data-table th.sortable:hover { color: var(--accent); }

/* ===== 日期选择日历弹层（2026-10-26） ===== */
.cal-pop {
  position: fixed; z-index: 9999; width: 252px; padding: 8px;
  background: var(--panel); color: var(--text);
  border: 1px solid rgba(120, 140, 170, 0.35); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); font-size: 13px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-title { font-weight: 600; }
.cal-nav {
  width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1;
  border: 1px solid rgba(120, 140, 170, 0.35); background: var(--panel-2); color: var(--text);
}
.cal-nav:hover { color: var(--accent); border-color: var(--accent); }
.cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: var(--text-dim); margin-bottom: 2px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  height: 30px; border: none; border-radius: 6px; cursor: pointer;
  background: transparent; color: var(--text); font-size: 13px;
}
.cal-day:hover { background: var(--panel-2); }
.cal-day.is-out { color: var(--text-dim); opacity: 0.55; }
.cal-day.is-wknd { color: #e5734d; }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day.is-sel { background: var(--accent); color: #fff; }
.cal-foot { display: flex; justify-content: space-between; margin-top: 6px; }
.cal-foot button {
  border: 1px solid rgba(120, 140, 170, 0.35); border-radius: 6px; cursor: pointer;
  background: var(--panel-2); color: var(--text); padding: 3px 10px; font-size: 12px;
}
.cal-foot button:hover { color: var(--accent); border-color: var(--accent); }

/* ===== 个股 K 线详情弹层（2026-10-26） ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8, 12, 20, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.hidden { display: none; }
/* 弹层叠放：个股详情(kline) 压在 板块详情(board) 之上 —— 2026-11-04 板块下钻链路 */
#board-modal { z-index: 1100; }
#kline-modal { z-index: 1200; }
.kline-dialog {
  width: min(880px, 96vw); max-height: 92vh; overflow: auto;
  background: var(--panel); color: var(--text);
  border: 1px solid rgba(120, 140, 170, 0.3); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 18px 20px 22px;
}
.kline-head { display: flex; align-items: center; gap: 14px; }
.kline-tit { font-size: 17px; font-weight: 700; }
.kline-tit .muted { font-weight: 400; font-size: 13px; margin-left: 4px; }
.kline-price { display: flex; align-items: baseline; gap: 10px; font-size: 22px; font-weight: 700; }
.kline-price .up { color: #e03131; }
.kline-price .down { color: #2f9e44; }
.kline-close {
  margin-left: auto; width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(120, 140, 170, 0.35); background: var(--panel-2); color: var(--text);
  font-size: 15px;
}
.kline-close:hover { color: #e03131; border-color: #e03131; }
.kline-quote {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 6px 14px; margin: 14px 0 10px;
  padding: 12px 14px; background: var(--panel-2); border-radius: 10px;
}
.kl-q-cell { display: flex; flex-direction: column; gap: 2px; }
.kl-q-k { font-size: 12px; color: var(--text-dim); }
.kl-q-v { font-size: 14px; font-weight: 600; }
.kline-toolbar { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.kl-period {
  border: 1px solid rgba(120, 140, 170, 0.35); border-radius: 7px; cursor: pointer;
  background: var(--panel-2); color: var(--text); padding: 4px 14px; font-size: 13px;
}
.kl-period.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.kline-chart { margin-top: 8px; }
.kline-chart svg { display: block; }
.kline-note { margin-top: 10px; font-size: 12px; color: var(--text-dim); }

/* ---------------- 板块详情弹层（2026-11-04 黄总：板块下钻成分股明细） ---------------- */
.board-dialog {
  width: min(980px, 96vw); max-height: 92vh; overflow: hidden; display: flex; flex-direction: column;
  background: var(--panel); color: var(--text);
  border: 1px solid rgba(120, 140, 170, 0.3); border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 18px 20px 16px;
}
.board-quote {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 14px; margin: 14px 0 10px;
  padding: 12px 14px; background: var(--panel-2); border-radius: 10px;
}
.bd-search {
  flex: 0 1 220px; padding: 5px 10px; border-radius: 7px; font-size: 13px;
  border: 1px solid rgba(120, 140, 170, 0.35); background: var(--panel-2); color: var(--text);
  outline: none;
}
.bd-search:focus { border-color: var(--accent); }
.bd-sort {
  padding: 5px 8px; border-radius: 7px; font-size: 13px;
  border: 1px solid rgba(120, 140, 170, 0.35); background: var(--panel-2); color: var(--text);
}
.bd-table-wrap { margin-top: 10px; overflow: auto; min-height: 200px; max-height: calc(92vh - 220px); border: 1px solid rgba(120, 140, 170, 0.22); border-radius: 10px; }
.bd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bd-table thead th {
  position: sticky; top: 0; z-index: 1; text-align: right; padding: 8px 10px;
  background: var(--panel-2); color: var(--text-dim); font-weight: 600; font-size: 12px;
  border-bottom: 1px solid rgba(120, 140, 170, 0.3);
}
.bd-table thead th:nth-child(1), .bd-table thead th:nth-child(2) { text-align: left; }
.bd-table tbody td { padding: 7px 10px; text-align: right; border-bottom: 1px solid rgba(120, 140, 170, 0.14); }
.bd-table tbody td:nth-child(1), .bd-table tbody td:nth-child(2) { text-align: left; }
.bd-table tbody tr:last-child td { border-bottom: none; }
.bd-table tbody tr:hover td { background: rgba(99, 140, 255, 0.10); }

/* =========================================================================
   交易终端 v2（2026-10-29）：仿专业交易软件布局
   最左快捷栏 ｜ 下单面板+账户资金卡（左） ｜ 五档盘口+标的列表（中） ｜ 图表（右）
   底部：持仓/成交/委托/未结/撤单拒单 多页签 + 批量操作工具条
   诚实原则：五档为腾讯实时 L1 真实快照；逐笔成交无数据源，中栏下半放
   「全市场标的列表」（本系统独有），不模拟逐笔。
   ========================================================================= */
.tt-layout.tt-v2 {
  grid-template-columns: 42px 238px 212px minmax(0, 1fr);
  /* 行高编排（2026-10-29 遮挡修复）：图表行保底 400px——参考竞品终端，
     图表是主视口，绝不允许被底部账本压缩到 content 溢出；
     底部行 auto 但受 .tt-bottom max-height 300px 约束 */
  grid-template-rows: minmax(400px, 1fr) minmax(180px, auto);
  gap: 8px;
}
.tt-layout.tt-v2 > .tt-rail     { grid-column: 1; grid-row: 1; }
.tt-layout.tt-v2 > .tt-order    { grid-column: 2; grid-row: 1; }
.tt-layout.tt-v2 > .tt-depthcol { grid-column: 3; grid-row: 1; }
.tt-layout.tt-v2 > .tt-main     { grid-column: 4; grid-row: 1; }
.tt-layout.tt-v2 > .tt-bottom   { grid-column: 2 / -1; grid-row: 2; }

/* ---- 最左快捷导航竖条 ---- */
.tt-rail {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 4px; overflow: hidden;
}
.tt-rail-g {
  font-size: 10px; color: var(--text-dim); text-align: center;
  padding: 4px 0 3px; letter-spacing: 2px;
}
.tt-rail-btn {
  appearance: none; border: 0; background: transparent; color: var(--text);
  font-size: 12px; padding: 7px 2px; border-radius: 6px; cursor: pointer;
  font-family: inherit;
}
.tt-rail-btn:hover { background: rgba(255, 255, 255, .06); }
.tt-rail-btn.is-buy { color: var(--up); }
.tt-rail-btn.is-sell { color: var(--down); }

/* ---- 下单面板（左）---- */
.tt-layout.tt-v2 .tt-order { gap: 7px; padding: 10px 10px 8px; }
.tt-code-row { display: flex; align-items: center; gap: 6px; }
.tt-code-row .tt-input { flex: 1 1 auto; min-width: 0; }
.tt-name-lb {
  font-size: 12px; color: var(--text-dim); white-space: nowrap;
  max-width: 86px; overflow: hidden; text-overflow: ellipsis;
}
.tt-caprows { display: flex; flex-direction: column; gap: 2px; }
.tt-cap-row { display: flex; justify-content: space-between; font-size: 12px; }
.tt-cap-row span { color: var(--text-dim); font-size: 11px; }
.tt-cap-row b { font-variant-numeric: tabular-nums; }
.tt-cap-row b.up { color: var(--up); }
.tt-cap-row b.down { color: var(--down); }

/* 账户资金卡（仿专业终端左下角） */
.tt-acct-card {
  margin-top: auto;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 9px;
  display: flex; flex-direction: column; gap: 3px;
}
.tt-acct-head { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.tt-acct-badge {
  font-size: 10px; font-weight: 700; color: #ffd166;
  border: 1px solid rgba(255, 209, 102, .45); border-radius: 4px; padding: 1px 6px;
}
.tt-acct-card .tt-acct-row { display: flex; justify-content: space-between; font-size: 12px; }
.tt-acct-card .tt-acct-row span { color: var(--text-dim); font-size: 11px; }
.tt-acct-card .tt-acct-row b { font-variant-numeric: tabular-nums; }
.tt-acct-card .tt-acct-row b.up { color: var(--up); }
.tt-acct-card .tt-acct-row b.down { color: var(--down); }

/* ---- 五档盘口 + 标的列表（中栏）---- */
.tt-depthcol {
  display: flex; flex-direction: column; gap: 6px; min-height: 0;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; overflow: hidden;
}
.tt-depth-head { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.tt-d-name { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-d-last { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tt-d-chg  { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tt-d-limits { display: flex; gap: 10px; font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.tt-d-limits b { font-variant-numeric: tabular-nums; }
.tt-d-limits b.up { color: var(--up); }
.tt-d-limits b.down { color: var(--down); }

.tt-depth { display: flex; flex-direction: column; }
.tt-dp-row {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 4px;
  font-size: 12px; padding: 2.5px 2px; border-radius: 4px; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.tt-dp-row:hover { background: rgba(255, 255, 255, .05); }
.tt-dp-lb { color: var(--text-dim); font-size: 11px; }
.tt-dp-lb.up { color: var(--up); }
.tt-dp-lb.down { color: var(--down); }
.tt-dp-p { text-align: right; font-weight: 600; }
.tt-dp-p.up { color: var(--up); }
.tt-dp-p.down { color: var(--down); }
.tt-dp-v { color: var(--text-dim); font-size: 11px; text-align: right; min-width: 44px; }
.tt-dp-mid {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 3px 2px; margin: 3px 0; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tt-dp-mid .hint { font-weight: 400; font-size: 11px; }
.tt-dp-mid b.up { color: var(--up); }
.tt-dp-mid b.down { color: var(--down); }
.tt-depth-note { font-size: 10px; line-height: 1.5; padding: 2px 0; }

.tt-depth-list-head { border-top: 1px solid var(--border); padding-top: 6px; }
.tt-depth-list-head .tt-sorts { display: flex; gap: 4px; }
.tt-depth-list-head .seg { font-size: 11px; padding: 3px 8px; }
.tt-layout.tt-v2 .tt-list {
  flex: 1 1 auto; min-height: 90px; border: 0; background: transparent; padding: 0;
}

/* ---- 底部账本 + 工具条 ---- */
.tt-layout.tt-v2 .tt-bottom {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  min-height: 180px; max-height: 300px;
}
/* 图表区溢出裁剪（2026-10-29 遮挡修复）：SVG 按渲染瞬间的容器高度固定尺寸，
   容器被压缩时 SVG 会用兜底高度画出并越界——没有这行裁剪，
   图表会画到底部账本的地盘、再被后绘制的账本盖住（黄总截图中的遮挡现象） */
.tt-layout.tt-v2 .tt-chart { overflow: hidden; }
.tt-btool {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 8px; border-bottom: 1px solid var(--border);
}
.tt-btool .tt-bq { width: 150px; padding: 4px 8px; font-size: 12px; }
.tt-btool .btn { padding: 3px 10px; font-size: 12px; }
.tt-btool .btn:disabled { opacity: .4; cursor: not-allowed; }
.tt-btool .hint { margin-left: auto; }
.tt-table th.tt-cb, .tt-table td.tt-cb { width: 30px; text-align: center; padding: 4px 2px; }
.tt-table td.tt-cb input { accent-color: var(--accent); cursor: pointer; }

/* ---- 响应式：窄屏折叠 ---- */
@media (max-width: 1400px) {
  .tt-layout.tt-v2 { grid-template-columns: 42px 224px 196px minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  .tt-layout.tt-v2 {
    grid-template-columns: 1fr 1fr; grid-template-rows: none;
    height: auto;
  }
  .tt-layout.tt-v2 > .tt-rail { display: none; }
  .tt-layout.tt-v2 > .tt-order    { grid-column: 1; grid-row: auto; }
  .tt-layout.tt-v2 > .tt-depthcol { grid-column: 2; grid-row: auto; max-height: 420px; }
  .tt-layout.tt-v2 > .tt-main     { grid-column: 1 / -1; grid-row: auto; height: 420px; }
  .tt-layout.tt-v2 > .tt-bottom   { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 760px) {
  .tt-layout.tt-v2 { grid-template-columns: 1fr; }
  .tt-layout.tt-v2 > .tt-order, .tt-layout.tt-v2 > .tt-depthcol { grid-column: 1; }
}

/* ---- 仿真账户管理（2026-10-29，每用户多账户）---- */
.sim-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 2px 0 10px;
}
.sim-toolbar label { font-size: 12px; color: var(--text-dim); }
.sim-sel {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 10px; font-size: 13px; min-width: 230px; font-family: inherit;
}
.sim-form { display: flex; flex-direction: column; gap: 6px; }
.sim-form label { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.sim-form input {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 13px; font-family: inherit;
}
.sim-form-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* ===== 顶栏备注徽标：券商通道备注 / 引擎版本号 =====
   2026-10-29 黄总要求去掉（隐藏而非删 DOM，留待恢复）。
   2026-10-30：「合规·仅历史统计」标签黄总要求彻底删除（此地无银三百两，
   全平台本就是虚拟数字模拟撮合，无需专门备注），DOM 已移除，此处不再列它；
   行情页 #mk-prov 等功能性数据来源标识不受影响。 */
/* 2026-11-07 顶栏v3：broker 徽标恢复显示（样图要求「证券账户-已连接」常驻顶栏），engine 版本移入副标题 */
.topbar-right > #engine-ver { display: none !important; }
/* 2026-11-22 顶栏精简：隐藏「决策快照」入口及其下拉面板、「模拟盘」通道徽标。
   仅隐藏展示，DOM 节点与底层状态/拉取逻辑全部保留，便于后续恢复。 */
.topbar-right > #qh-dec-chip,
.topbar-right > #qh-dec-panel,
.topbar-right > #broker-badge { display: none !important; }

/* ===== 策略研究 · 三栏目与「我的策略」（2026-10-30）===== */
.st-subtabs, #st-subtabs { border-bottom-color: var(--border); }
#factor [data-stsub].hidden { display: none; }

/* 组合例子：增强开关标签 + 克隆按钮 */
.cc-enh { font-size: 11px; color: var(--accent); }
.cc-foot { flex-wrap: wrap; }

/* 我的策略 · 头部 */
.ms-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 8px; }
.ms-head .section-head { margin: 0; }

/* 我的策略 · 列表卡片 */
.ms-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin: 2px 0 4px; }
.ms-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; display: flex; flex-direction: column; gap: 8px; }
.ms-card:hover { border-color: var(--accent); }
.ms-card-main { flex: 1; }
.ms-card-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.ms-card-meta { font-size: 11.5px; color: var(--text-dim); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ms-card-note { font-size: 11.5px; color: var(--text-dim); margin-top: 5px; line-height: 1.6; }
.ms-card-ops { display: flex; gap: 6px; flex-wrap: wrap; }

/* 我的策略 · 空状态（仿参考图2） */
.ms-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: 12px; }
.ms-empty-ic { width: 54px; height: 54px; margin: 0 auto 14px; border: 2px solid var(--border); border-radius: 10px; position: relative; opacity: .55; }
.ms-empty-ic::before { content: ""; position: absolute; left: 12px; right: 12px; top: 14px; height: 2px; background: var(--border); box-shadow: 0 8px 0 var(--border), 0 16px 0 var(--border); }
.ms-empty-t { color: var(--text); font-size: 14px; margin: 0 0 6px; }
.ms-empty-s { color: var(--text-dim); font-size: 12px; margin: 0 0 16px; }

/* 策略编辑器 / 公共参数条 */
#ms-editor { border: 1px solid var(--accent); }
.ms-params { background: var(--panel-2); }

@media (max-width: 760px) {
  .ms-list { grid-template-columns: 1fr; }
}

/* ===== 策略研究工作台：左竖导航 + 右内容（仿交易监控 tt-rail，2026-10-30）===== */
.sr-layout {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 4px;
}
.sr-rail {
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 5px;
  position: sticky; top: 12px;
}
.sr-rail-g {
  font-size: 10px; color: var(--text-dim); text-align: center;
  padding: 2px 0 5px; letter-spacing: 1.5px;
  border-bottom: 1px solid var(--border); margin-bottom: 3px;
}
.sr-rail-btn {
  appearance: none; border: 1px solid transparent; background: transparent;
  color: var(--text-dim); font-size: 12px; padding: 7px 2px;
  border-radius: 6px; cursor: pointer; font-family: inherit;
  text-align: center; line-height: 1.2; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.sr-rail-btn:hover { background: rgba(127, 127, 127, .12); color: var(--text); }
.sr-rail-btn.is-accent { color: var(--accent); font-weight: 500; }
.sr-rail-btn.is-accent:hover { background: rgba(47, 129, 247, .14); border-color: rgba(47, 129, 247, .4); }
.sr-rail-btn:disabled { opacity: .45; cursor: not-allowed; }
.sr-rail-sel {
  font-size: 11px; color: var(--accent); text-align: center;
  padding: 4px 2px 1px; border-top: 1px solid var(--border); margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.sr-main { min-width: 0; }

/* ---- 分节卡片：对齐交易监控 .tm-ov-card 的密度与字号（标题 14/600、正文 12.5、说明 12）---- */
.sr-block {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px 14px; margin-bottom: 12px;
}
.sr-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.sr-head h3 {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--text);
  letter-spacing: .2px; padding-left: 0;
}
.sr-head h3::before { content: none; }   /* 取消旧的左侧竖条，标题改为纯文字 */
.sr-head .hint { font-size: 12px; line-height: 1.4; color: var(--text-dim); }
.sr-head .hint:last-child { margin-left: auto; }
.sr-note { font-size: 13px; color: var(--text-dim); line-height: 1.75; margin: 0 0 10px; }
.sr-note b { color: var(--text); font-weight: 600; }
.sr-note:last-child { margin-bottom: 0; }
/* 分节内不再"卡中卡"：表单/操作条去掉自带外框，只保留分节卡片的边界 */
.sr-block .form-grid {
  background: transparent; border: 0; border-radius: 0; padding: 0;
  margin-bottom: 2px; gap: 12px 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
/* 控件字号降一档，与 13px 正文 / 12px 标签成套，避免"输入框比标签还大" */
.sr-block .field input,
.sr-block .field select,
.sr-block .field textarea { font-size: 13px; padding: 7px 9px; }
.sr-block .field label { font-size: 12px; line-height: 1.45; }
.sr-block .actions { margin: 10px 0 0; }
.sr-block .table-wrap { margin-top: 8px; }
.sr-block .result { margin-top: 12px; }
/* 分节内图表块改为分隔线 + 标题，减少边框噪音 */
.sr-block .chart-block {
  background: transparent; border: 0; border-top: 1px solid var(--border);
  border-radius: 0; padding: 10px 0 0; margin: 14px 0 0;
}
.sr-block .chart-block h3 { font-size: 12.5px; font-weight: 600; color: var(--text); margin: 0 0 8px; letter-spacing: .2px; }
.sr-block .chart-block h3::before { content: none; }
.sr-block .metric-grid { gap: 10px; margin: 12px 0 4px; }

/* 单列列表不适合无限拉宽：内容区设上限并居中，避免一屏横扫、行内大片空白 */
/* 2026-11-21：去掉居中留白，策略工坊内容贴左（黄总反馈「侧栏与操作列之间很宽」） */
#factor .sr-layout { max-width: 1240px; margin: 4px 0 0; }
/* 表单列宽收紧：数字框不撑满列，勾选框文字不折行 */
.sr-block .field input[type="number"] { max-width: 170px; }
.sr-block .field label.chk { white-space: nowrap; font-size: 12.5px; color: var(--text); }
/* 🔴 全局 .field input{width:100%} 会把勾选框撑满整行、文字挤到下一行（2026-10-23 老坑的同类场景） */
.sr-block .field label.chk > input[type="checkbox"],
.sr-block .field label.chk > input[type="radio"] {
  width: auto; flex: 0 0 auto; margin: 0; padding: 0;
}
/* 同一列里有多个勾选框时横排，而不是上下堆叠错位 */
.sr-block .field:has(> label.chk) {
  flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px;
}

/* 元信息徽标（共 1746 个 / 可算 1731 / 待接入 15），替代原先堆在标题右侧的两行长文本 */
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.sr-chip {
  font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--text-dim);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.sr-chip b { color: var(--text); font-weight: 600; margin-left: 3px; }
.sr-chip.is-ok b { color: var(--up); }
.sr-chip.is-pending { border-color: rgba(230, 160, 30, .45); color: rgba(230, 160, 30, .95); }
.sr-chip.is-pending b { color: inherit; }

/* 左竖条内容区里首个标题的上边距收一点，避免与竖条错位 */
.sr-main > .section-head:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .sr-layout { grid-template-columns: 1fr; }
  .sr-rail {
    flex-direction: row; flex-wrap: wrap; position: static;
    align-items: center;
  }
  .sr-rail-g { border-bottom: 0; margin: 0; padding: 0 6px 0 0; }
  .sr-rail-sel { border-top: 0; margin: 0 0 0 auto; padding: 0 4px; }
}

/* ===== 全自动执行动态沙盘（2026-11-02 UI 重构：终端流光河——高密度行 + 光纤束曲线 + 三级灰阶） ===== */
.ae-live { --ae-bg:#070d18; --ae-bg2:#0a1220; --ae-line:rgba(77,124,255,.09);
  --ae-txt:#e8eef7; --ae-txt2:#8fa3bf; --ae-txt3:#4a5c78;
  --ae-up:#ff4d5e; --ae-dn:#22c07a; --ae-flow:#4d7cff; --ae-flow2:#8fb6ff; --ae-hot:#ff6a3d;
  margin-top: 14px; border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; background: var(--ae-bg); }
.ae-live-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ae-live-head h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ae-txt); }
.ae-live-head .hint { color: var(--ae-txt3); }
.ae-live-badge { font-size: 12px; padding: 3px 10px; border-radius: 20px;
  border: 1px solid var(--ae-line); color: var(--ae-txt2); }
.ae-live-badge.on { color: #fff; background: var(--ae-flow); border-color: var(--ae-flow);
  animation: ae-pulse 1.6s ease-in-out infinite; }
.ae-live-badge.on.demo { background: #f0b429; border-color: #f0b429; }
@keyframes ae-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
/* 漏斗（压缩留白，弱化边框）；2026-11-14 由 5 节点扩到 6 节点，min-width 收窄防换行 */
.ae-funnel { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.ae-stage { flex: 1; min-width: 92px; display: flex; flex-direction: column; gap: 0;
  padding: 6px 10px; border: 1px solid var(--ae-line); border-radius: 8px; background: var(--ae-bg2); }
.ae-stage .as-label { font-size: 10.5px; color: var(--ae-txt3); }
.ae-stage .as-val { font-size: 16px; font-weight: 700; color: var(--ae-txt); font-variant-numeric: tabular-nums; }
.ae-stage .as-sub { font-size: 10px; color: var(--ae-txt3); }
.ae-stage.hot { border-color: var(--ae-up); }
.ae-stage.hot .as-val { color: var(--ae-up); }
.as-arrow { align-self: center; color: var(--ae-txt3); font-size: 13px; }
/* 第 6 节点「精细买卖信号」：可点击展开明细 */
.ae-stage.ae-sig { cursor: pointer; border-style: dashed; }
.ae-stage.ae-sig:hover { border-color: var(--accent, #e9b756); }
.ae-sig-panel-anchor { position: relative; }
/* 双栏：左=全市场密流行（曲线束源头），右=候选/成交（束的汇聚终点） */
/* 2026-11-02 用户定调：网格锁定固定高度，左「全场流动」/右「候选·动作」两栏均填满网格、
   内容各自内部滚动，扫描前/后整框高度恒定不变 */
/* 2026-11-02 用户定调（v=s）：恢复原版双栏布局——左「全场流动」约 58% + 右「本轮候选/买入动作」约 41.7%，
   两栏小间隙由光纤束自然收束穿过（撤销此前「中间 130px 河道 + 左栏收窄到红框」方案） */
.ae-live-grid { position: relative; display: grid;
  /* 2026-11-02 v=w 用户定调：左栏收窄 ~3cm（≈115px），中间让给「流光河」河道；
     右栏保持 41.7% 原位不动（百分比宽，右缘锚定）。 */
  grid-template-columns: minmax(0, 1fr) 115px 41.7%; gap: 10px; overflow: hidden;
  min-height: 520px; height: 520px; grid-template-rows: minmax(0, 1fr);
  background:
    radial-gradient(circle at 50% 46%, rgba(77,124,255,.08), transparent 52%),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(77,124,255,.04) 21px 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(77,124,255,.04) 21px 22px);
  border-radius: 8px; }
.ae-flow { position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2; }
.ae-col-right { display: grid; grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; min-height: 0; }
.ae-panel { border: 1px solid var(--ae-line); border-radius: 8px; background: var(--ae-bg2);
  display: flex; flex-direction: column; min-height: 320px; overflow: hidden;
  transition: box-shadow .4s, border-color .4s; }
.ae-col-right .ae-panel { min-height: 0; }
/* 网格直接子项（左栏流板、右栏容器）填满固定高度，不随内容撑高 */
.ae-live-grid > .ae-panel { min-height: 0; }
.ae-live-grid > .ae-col-right { grid-column: 3; } /* 三栏后右栏显式落第 3 列（左栏自动落第 1 列，中列留给流光河） */
.ae-panel-stream .ae-panel-body { max-height: none; min-height: 0; }
/* 2026-11-02 用户定调：候选/买入动作面板高度固定，记录再多框不变大，内容内部上下滚动 */
.ae-col-right .ae-panel-body { min-height: 0; overscroll-behavior: contain; }
.ae-panel-body::-webkit-scrollbar { width: 6px; }
.ae-panel-body::-webkit-scrollbar-track { background: rgba(77,124,255,.06); border-radius: 3px; }
.ae-panel-body::-webkit-scrollbar-thumb { background: rgba(77,124,255,.35); border-radius: 3px; }
.ae-panel-body::-webkit-scrollbar-thumb:hover { background: rgba(77,124,255,.55); }
.ae-panel-h { padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--ae-txt);
  border-bottom: 1px solid var(--ae-line); display: flex; gap: 8px; align-items: baseline; }
.ae-panel-h .hint { font-weight: 400; color: var(--ae-txt3); }
.ae-panel-body { flex: 1; overflow-y: auto; padding: 3px 0; }
.ae-empty { padding: 14px 10px; font-size: 11.5px; color: var(--ae-txt3); text-align: center; }
/* 行：10.5px/20px 终端密度 + 隔行底色 */
.ae-row { display: flex; align-items: baseline; gap: 6px; padding: 0 10px;
  font-size: 10.5px; font-variant-numeric: tabular-nums; line-height: 20px;
  border-left: 2px solid transparent; transition: background .25s, border-color .25s; }
.ae-row:nth-child(even) { background: rgba(77,124,255,.035); }
.ae-row:hover { background: rgba(77,124,255,.09); }
.ae-row-new { animation: ae-in .55s ease-out; }
@keyframes ae-in { from { opacity: 0; transform: translateX(-6px); background: rgba(77,124,255,.22); border-left-color: var(--ae-flow2); }
  to { opacity: 1; transform: none; } }
.ar-code { color: var(--ae-txt3); min-width: 54px; }
.ar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; color: var(--ae-txt2); }
.ar-last { min-width: 54px; text-align: right; color: var(--ae-txt); }
.ar-chg { min-width: 52px; text-align: right; font-weight: 600; border-radius: 3px; padding: 0 4px; }
.ar-chg.up { color: var(--ae-up); background: rgba(255,77,94,.13); }
.ar-chg.down { color: var(--ae-dn); background: rgba(34,192,122,.13); }
.ar-amt { color: var(--ae-txt3); min-width: 56px; text-align: right; }
/* 组合融合「策略级」徽标（金色调，区别于涨跌色与扫描蓝）：候选命中组合融合前 N 时标注 */
.ar-combo-badge { flex: 0 0 auto; font-size: 10px; line-height: 1; padding: 1px 5px; border-radius: 9px;
  color: #ffd479; border: 1px solid rgba(255,200,90,.5); background: rgba(255,196,80,.12);
  white-space: nowrap; margin-left: 2px; }
.ar-combo { background: linear-gradient(90deg, rgba(255,196,80,.10), transparent 55%); }
.ar-combo .ar-code { color: #ffd479; font-weight: 600; }
/* 动作 */
.ae-act { display: flex; align-items: baseline; gap: 6px; padding: 2px 10px;
  font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.8;
  animation: ae-in .4s ease-out; }
.aa-badge { font-size: 10.5px; padding: 1px 7px; border-radius: 10px; flex-shrink: 0; }
.aa-badge.buy { color: #fff; background: var(--ae-up); }
.aa-badge.skip { color: var(--ae-txt3); border: 1px solid var(--ae-line); }
.aa-badge.block { color: #fff; background: var(--ae-dn); }
.aa-badge.sell { color: #fff; background: var(--ae-hot); }
.aa-code { font-weight: 600; color: var(--ae-txt); }
.aa-name { color: var(--ae-txt2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aa-detail { margin-left: auto; color: var(--ae-txt3); text-align: right; }
/* 日志 */
.ae-log-panel { min-height: 0; margin-top: 10px; }
.ae-log-panel .ae-panel-body { max-height: 170px; }
.ae-line { display: flex; gap: 8px; padding: 2px 10px; font-size: 11.5px;
  font-variant-numeric: tabular-nums; line-height: 1.7; }
.al-ts { color: var(--ae-txt3); flex-shrink: 0; }
.ae-line.k-ok .al-tx { color: var(--ae-up); }
.ae-line.k-warn .al-tx { color: var(--ae-dn); }
.ae-line.k-run .al-tx { color: var(--ae-flow2); }
.ae-live .disclaimer { margin: 8px 0 0; }
.ae-hud{margin-bottom:10px}
@media (max-width: 1200px) and (min-width: 901px) {
  .ae-live-grid { grid-template-columns: minmax(0, 1fr) 80px 41.7%; }
}
@media (max-width: 900px) {
  .ae-live-grid { grid-template-columns: 1fr; min-height: 0; height: auto; }
  .ae-flow { display: none; }
  .ae-panel-stream .ae-panel-body { max-height: 360px; }
  /* 移动端单栏：候选/动作面板同样限高、内容内部滚动，避免记录多时面板无限撑高 */
  .ae-col-right .ae-panel-body { max-height: 260px; }
  .ae-col-right { grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr); }
}
/* —— 扫描风暴（蓝色光流态） —— */
.ae-scan-bar { height: 4px; border-radius: 4px; background: rgba(77,124,255,.15); margin: 6px 0 2px;
  overflow: hidden; opacity: 0; transition: opacity .3s; }
.ae-scan-bar.on, .ae-scan-bar.done { opacity: 1; }
.ae-scan-bar > i { display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ae-flow), var(--ae-flow2)); box-shadow: 0 0 8px var(--ae-flow);
  transition: width .25s ease-out; }
.ae-scan-bar.done > i { background: linear-gradient(90deg, var(--ae-up), #ff8aa0); box-shadow: 0 0 8px var(--ae-up); }
.ae-scan-tip { font-size: 11px; color: var(--ae-flow2); min-height: 14px; margin-bottom: 4px;
  font-variant-numeric: tabular-nums; }
/* 行情自适应策略审核横幅（2026-11-06）：把 regime→阈值→剔除数 显式呈现 */
.ae-guard { display: none; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 8px;
  padding: 6px 10px; font-size: 12px; border-radius: 7px; line-height: 1.4;
  font-variant-numeric: tabular-nums; color: var(--ae-txt2); }
.ae-guard:not(:empty) { display: flex; }
.ae-guard-tag { font-weight: 600; padding: 1px 7px; border-radius: 5px;
  background: rgba(77,124,255,.18); color: #9ecbff; }
.ae-guard-regime b, .ae-guard-ex b { font-variant-numeric: tabular-nums; }
.ae-guard-danger { border: 1px solid rgba(255,77,94,.5); background: rgba(255,77,94,.10); color: #ff8a96; }
.ae-guard-danger .ae-guard-regime b { color: #ff4d5e; }
.ae-guard-warn { border: 1px solid rgba(255,106,61,.5); background: rgba(255,106,61,.10); color: #ff9b73; }
.ae-guard-warn .ae-guard-regime b { color: #ff6a3d; }
.ae-guard-mild { border: 1px solid rgba(255,206,77,.45); background: rgba(255,206,77,.08); color: #ffd97a; }
.ae-guard-mild .ae-guard-regime b { color: #ffce4d; }
.ae-guard-safe { border: 1px solid rgba(34,192,122,.45); background: rgba(34,192,122,.08); color: #7fe3b0; }
.ae-guard-safe .ae-guard-regime b { color: #22c07a; }
.ae-guard-info { border: 1px solid rgba(77,124,255,.45); background: rgba(77,124,255,.08); color: #9ecbff; }
.ae-guard-info .ae-guard-regime b { color: #6fa8ff; }
/* 统一行情中枢（2026-11-11）：闸门审核档小字，语义区别于主「当前行情」 */
.ae-guard-tier { font-size: 10px; padding: 1px 6px; border-radius: 4px;
  background: rgba(160,170,190,.12); color: #aab4c4; border: 1px solid rgba(160,170,190,.25); }
/* 风格路由（2026-11-12）：当前生效因子表，随 regime×风格自适应，独占一行便于审计 */
.ae-guard-router { flex-basis: 100%; font-size: 11px; margin-top: 2px; padding: 2px 7px;
  border-radius: 5px; background: rgba(77,124,255,.10); color: #9ecbff;
  border: 1px solid rgba(77,124,255,.28); font-variant-numeric: tabular-nums; }
.ae-guard-router b { color: #cfe0ff; }
.ae-guard-router-factors { display: block; margin-top: 2px; font-size: 10px;
  color: #8fa8cc; word-break: break-all; }
/* 候选行：被行情自适应闸门剔除的自由落体票（诚实置灰 + 标注） */
.ae-row-excluded { opacity: .5; filter: grayscale(.45); }
.ae-row-excluded .ar-amt { color: #ff8a96; }
.ar-ex-tag { font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: 4px;
  background: rgba(255,77,94,.18); color: #ff8a96; border: 1px solid rgba(255,77,94,.4); }
/* 方向 B（2026-11-11）：soft 连续软罚分降权票——仍留候选，琥珀金标注（区别于红色「已剔除」） */
.ae-row-pen .ar-amt { color: #e9b756; }
.ar-pen-tag { font-size: 10px; padding: 1px 5px; border-radius: 4px; margin-left: 4px;
  background: rgba(233,183,86,.16); color: #e9b756; border: 1px solid rgba(233,183,86,.42); }
.ae-funnel .ae-stage.hot { animation: ae-stage-hot .8s ease-out; }
@keyframes ae-stage-hot { from { background: rgba(255,77,94,.18); } to { background: var(--ae-bg2); } }
/* 2026-11-02 用户定调：扫描态专属视觉（整板蓝色辉光/边框变亮/标题脉冲点/漏斗脉冲）
   保持常驻 —— 扫描前、扫描中、扫描后视觉一致，不因扫描状态切换而消失 */
.ae-funnel { border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(77,124,255,.5), 0 0 10px rgba(77,124,255,.25); }
@keyframes ae-scan-pulse {
  0%,100% { box-shadow: 0 0 0 1px rgba(77,124,255,.5), 0 0 10px rgba(77,124,255,.25); }
  50% { box-shadow: 0 0 0 1px var(--ae-flow), 0 0 24px rgba(77,124,255,.6); } }
.ae-funnel { animation: ae-scan-pulse 1s ease-in-out infinite; }
.ae-funnel .ae-stage:first-child { border-color: var(--ae-flow); background: rgba(77,124,255,.12); }
.ae-funnel .ae-stage:first-child .as-val { color: var(--ae-flow2); }
/* 整板辉光常驻 */
.ae-live .ae-panel { border-color: rgba(77,124,255,.45);
  box-shadow: 0 0 16px rgba(77,124,255,.16) inset, 0 0 10px rgba(77,124,255,.12); }
.ae-live .ae-panel-h { color: #9ecbff; border-bottom-color: rgba(77,124,255,.4); }
.ae-live .ae-panel-stream { border-color: rgba(143,182,255,.5); }
.ae-live .ae-flow { filter: drop-shadow(0 0 4px rgba(77,124,255,.35)); }
/* 候选/动作面板头部脉冲点常驻 */
.ae-panel-h::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ae-flow); box-shadow: 0 0 7px var(--ae-flow); flex-shrink: 0;
  animation: ae-dot-pulse 1s ease-in-out infinite; }
@keyframes ae-dot-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.ae-act.k-buy { box-shadow: inset 3px 0 0 var(--ae-up); }
.ae-act.k-sell { box-shadow: inset 3px 0 0 var(--ae-hot); }
/* 候选行强化闪现 */
#ae-cands .ae-row-new { background: rgba(77,124,255,.18); border-left-color: var(--ae-flow2); }

/* —— 账户总持仓票数管控条（2026-11-02，交易监控→持仓与委托） —— */
.tm-poscap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 8px 12px; margin-bottom: 10px; font-size: 13px;
  border: 1px solid rgba(77,124,255,.35); border-radius: 8px;
  background: rgba(77,124,255,.08); }
.tm-poscap b { font-size: 15px; font-variant-numeric: tabular-nums; }
.tm-poscap input { width: 64px; padding: 4px 8px; font-size: 13px; }
.tm-poscap button { padding: 4px 14px; font-size: 12px; }
.tm-poscap.full { border-color: rgba(255,77,94,.55); background: rgba(255,77,94,.10); }
.tm-poscap.full b { color: var(--up, #ff4d5e); }
.tm-poscap .hint { flex-basis: 100%; margin: 0; }

/* —— 仓位引擎状态卡（2026-11-05，交易监控→持仓与委托） —— */
.pe-tier { display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 12px; font-variant-numeric: tabular-nums;
  border: 1px solid rgba(77,124,255,.4); background: rgba(77,124,255,.10); }
.pe-tier.t0 { border-color: rgba(160,160,170,.4); background: rgba(160,160,170,.10); }
.pe-tier.t2 { border-color: rgba(255,170,60,.45); background: rgba(255,170,60,.10); }
.pe-tier.t3 { border-color: rgba(34,192,122,.45); background: rgba(34,192,122,.10); }
.pe-tier.add { border-color: rgba(255,77,94,.45); background: rgba(255,77,94,.10); }
.pe-ok { color: var(--down, #22c07a); font-size: 12px; }
.pe-pending { color: #ffab40; font-size: 12px; cursor: help; }

/* —— 仓位引擎可视化动态化（2026-11-06）：心跳 / 权重条 / 安全垫条 / 呼吸灯 / 变化闪烁 —— */
.pe-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 10px;
  padding: 8px 12px; border: 1px solid rgba(77,124,255,.25); border-radius: 8px;
  background: rgba(77,124,255,.06); font-size: 12.5px; }
.pe-heart { width: 9px; height: 9px; border-radius: 50%; background: #22c07a; flex: 0 0 auto;
  animation: pePulse 2s ease-in-out infinite; }
.pe-heart.stale { background: #8a93a6; animation: none; }
@keyframes pePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,192,122,.55); }
  50% { box-shadow: 0 0 0 6px rgba(34,192,122,0); }
}
.pe-sum { font-variant-numeric: tabular-nums; }
.pe-sum b { font-variant-numeric: tabular-nums; }
.pe-flex1 { flex: 1 1 auto; text-align: right; }
.pe-bar { position: relative; height: 6px; min-width: 88px; max-width: 160px; border-radius: 4px;
  background: rgba(140,150,170,.18); overflow: hidden; margin-top: 3px; }
.pe-bar > i { display: block; height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, rgba(77,124,255,.9), rgba(77,124,255,.55));
  transition: width .7s ease; }
.pe-bar.warn > i { background: linear-gradient(90deg, #ffb648, #ffab40); }
.pe-bar.danger > i { background: linear-gradient(90deg, #ff4d5e, #ff7a45); }
.pe-bar.safe > i { background: linear-gradient(90deg, #22c07a, #3ddc97); }
.pe-wtxt { font-size: 11.5px; color: var(--muted, #8a93a6); margin-top: 2px;
  font-variant-numeric: tabular-nums; }
.pe-pnl { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
.pe-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 5px; vertical-align: 1px; }
.pe-dot.ok { background: #22c07a; animation: pePulse 2.4s ease-in-out infinite; }
.pe-dot.pending { background: #ffab40; animation: peBlink 1.1s step-start infinite; }
.pe-dot.hist { background: #8a93a6; }
@keyframes peBlink { 50% { opacity: .25; } }
@keyframes peFlashRow { 0% { background: rgba(77,124,255,.30); } 100% { background: transparent; } }
tr.pe-flash > td { animation: peFlashRow 1.4s ease-out; }
.pe-hist { color: var(--muted, #8a93a6); font-size: 12px; cursor: help; }

.adv-pe-detail table td:first-child { width: 180px; color: var(--muted, #8a93a6); }

/* ===== 2026-11-02 v=ac：买卖成交弹窗横幅（借鉴「AI量化炒家」成交提示条），3s 自动关闭 ===== */
#ae-deal-stack { position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; }
.ae-deal { min-width: 340px; max-width: 560px; padding: 10px 20px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(40,8,12,.96), rgba(74,12,18,.92));
  border: 1px solid rgba(255,77,94,.55); box-shadow: 0 6px 24px rgba(255,77,94,.25);
  color: #fff; font-size: 13px; opacity: 0; transform: translateY(-14px);
  transition: opacity .3s ease, transform .3s ease; font-variant-numeric: tabular-nums; }
.ae-deal.on { opacity: 1; transform: translateY(0); }
.ae-deal .ad-head { font-size: 15px; font-weight: 700; letter-spacing: 2px; margin-bottom: 4px; color: #ff8a96; }
.ae-deal .ad-l1 { font-size: 14px; }
.ae-deal .ad-l1 b { margin-left: 8px; color: #ffd9dd; }
.ae-deal .ad-l2 { font-size: 12px; opacity: .92; margin-top: 2px; }
.ae-deal .ad-l2.dim { opacity: .6; }
.ae-deal.sell { background: linear-gradient(135deg, rgba(6,34,22,.96), rgba(10,58,36,.92));
  border-color: rgba(34,192,122,.55); box-shadow: 0 6px 24px rgba(34,192,122,.22); }
.ae-deal.sell .ad-head { color: #5fe3a5; }
.ae-deal.sell .ad-l1 b { color: #c9f5e2; }
.ae-deal.sim { background: linear-gradient(135deg, rgba(10,20,44,.96), rgba(16,34,70,.92));
  border-color: rgba(77,124,255,.55); box-shadow: 0 6px 24px rgba(77,124,255,.22); }
.ae-deal.sim .ad-head { color: #8fb6ff; }
.ae-deal.sim .ad-l1 b { color: #d6e2ff; }

/* ===== 2026-11-02 A方案：组合融合策略级关注常驻小条（金色系，与★策略级徽标统一） ===== */
.ae-combo-bar { display: flex; align-items: center; gap: 7px; padding: 5px 9px;
  border-bottom: 1px dashed rgba(255,193,7,.35); background: rgba(255,193,7,.06);
  font-size: 12px; overflow-x: auto; white-space: nowrap; }
.ae-combo-bar.on { background: rgba(255,193,7,.09); }
.ae-combo-bar-h { color: #ffd56b; font-weight: 600; flex: 0 0 auto;
  letter-spacing: .5px; }
.ae-combo-chips { display: inline-flex; align-items: center; gap: 5px; flex: 1 1 auto; }
.ae-combo-case { color: #ffd56b; font-weight: 600; flex: 0 0 auto; }
.ae-combo-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px;
  border-radius: 10px; background: rgba(255,193,7,.14);
  border: 1px solid rgba(255,193,7,.4); color: #ffe6a3;
  font-variant-numeric: tabular-nums; font-size: 12px; flex: 0 0 auto; }
.ae-combo-chip b { color: #fff3cf; font-weight: 700; }
.ae-combo-empty { color: #9aa7bd; font-size: 12px; }

/* ===== 策略研究 AI Agent 工作台（2026-11-02 提案制 / 科技感可视化） ===== */
.ra-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius, 10px);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 9%, var(--bg-2)), var(--bg-2));
  margin-bottom: 12px; flex-wrap: wrap; }
.ra-title { font-size: 18px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.ra-badge { font-size: 10px; letter-spacing: 1.5px; font-weight: 700; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 4px;
  padding: 2px 7px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ra-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; }
.ra-hl { color: var(--accent); font-weight: 600; }

.ra-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.ra-switch input { display: none; }
.ra-switch-track { width: 46px; height: 26px; border-radius: 13px; background: var(--bg-2);
  border: 1px solid var(--border); position: relative; transition: .25s; }
.ra-switch-knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--text-dim); transition: .25s; }
.ra-switch input:checked + .ra-switch-track { background: color-mix(in srgb, var(--ok) 35%, transparent); border-color: var(--ok); }
.ra-switch input:checked + .ra-switch-track .ra-switch-knob { left: 22px; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.ra-switch-label { font-size: 13px; font-weight: 600; color: var(--text); }

.ra-controlbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius, 10px);
  background: var(--bg-2); margin-bottom: 12px; }
.ra-ctrl-item label { font-size: 11px; color: var(--text-dim); display: block; margin-bottom: 3px; }
.ra-ctrl-item select { font-size: 13px; padding: 6px 9px; background: var(--bg);
  border: 1px solid var(--border); color: var(--text); border-radius: 6px; }
.ra-stats { display: flex; gap: 14px; flex-wrap: wrap; flex: 1 1 auto; font-size: 12px; color: var(--text-dim); }
.ra-stat b { color: var(--text); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 2px; }
.ra-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border); }
.ra-status .dot { width: 8px; height: 8px; border-radius: 50%; }
.ra-status.is-idle { color: var(--text-dim); }
.ra-status.is-idle .dot { background: var(--text-dim); }
.ra-status.is-running { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent);
  background: color-mix(in srgb, var(--ok) 12%, transparent); }
.ra-status.is-running .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: ra-blink 1.2s infinite; }
.ra-status.is-stopping { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.ra-status.is-stopping .dot { background: var(--warn); }
@keyframes ra-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.ra-pipeline { position: relative; display: flex; justify-content: space-between;
  padding: 14px 4px 8px; margin-bottom: 12px; }
.ra-node { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; z-index: 2; }
.ra-node .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-dim); transition: .3s; }
.ra-node .lbl { font-size: 11.5px; color: var(--text-dim); }
.ra-progress { position: absolute; top: 28px; left: 6%; right: 6%; height: 2px;
  background: var(--border); z-index: 1; border-radius: 2px; }
.ra-progress-bar { height: 100%; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px var(--accent); transition: width .6s ease; }
.ra-node.is-done .num { background: color-mix(in srgb, var(--ok) 18%, transparent);
  border-color: var(--ok); color: var(--ok); }
.ra-node.is-done .lbl { color: var(--text); }
.ra-node.is-active .num { background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 14px var(--accent);
  animation: ra-pulse 1.4s infinite; }
.ra-node.is-active .lbl { color: var(--text); font-weight: 600; }
@keyframes ra-pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 10px var(--accent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 18px var(--accent); } }

.ra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ra-card { border: 1px solid var(--border); border-radius: var(--radius, 10px);
  background: var(--bg-2); padding: 12px 14px; }
.ra-card-h { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px; }
.ra-tag { font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 2px 7px; border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.ra-tag.is-on { background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 40%, transparent); }
.ra-tag-gold { background: rgba(255,193,7,.15); color: #ffce5a; border-color: rgba(255,193,7,.45); }
.ra-current-title { font-size: 14px; font-weight: 600; color: var(--text); }
.ra-current-sub { font-size: 12px; color: var(--text-dim); margin: 4px 0 10px; }
.ra-muted { color: var(--text-dim); font-size: 12px; }

.ra-bars { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.ra-bar { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 8px; font-size: 11.5px; }
.ra-bar-name { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-bar-track { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.ra-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .5s; }
.ra-bar-fill.ok { background: linear-gradient(90deg, var(--ok), #36c46a); }
.ra-bar-fill.bad { background: linear-gradient(90deg, var(--up), #ff7a88); }
.ra-bar-fill.warn { background: linear-gradient(90deg, var(--warn), #e6b34d); }
.ra-bar-val { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

.ra-best-metrics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ra-metric { display: flex; flex-direction: column; align-items: center; min-width: 64px;
  padding: 7px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); }
.ra-metric-v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ra-metric-l { font-size: 10.5px; color: var(--text-dim); margin-top: 2px; }
.ra-metric-ok .ra-metric-v { color: var(--ok); }
.ra-metric-bad .ra-metric-v { color: var(--up); }
.ra-metric-warn .ra-metric-v { color: var(--warn); }
.ra-metric-info .ra-metric-v { color: var(--text); }
.ra-best-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.ra-best-specs { display: flex; flex-wrap: wrap; gap: 5px; }
.ra-spec { font-size: 11.5px; padding: 2px 8px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); }
.ra-spec b { color: var(--accent); }

.ra-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ra-mod { border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--bg-2); padding: 10px 12px; }
.ra-mod-h { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px; }
.ra-mod-tag { font-size: 10px; font-weight: 500; color: var(--text-dim); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px; }
.ra-mod-body { font-size: 12px; color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; line-height: 1.5; min-height: 20px; }
.ra-mod-body.ok { color: var(--ok); }
.ra-mod-body.bad { color: var(--up); }
.ra-mod-ts { color: var(--text-dim); }

.ra-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ra-terminal { border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--bg-2);
  overflow: hidden; display: flex; flex-direction: column; }
.ra-terminal-h { font-size: 12px; font-weight: 600; color: var(--text); padding: 8px 12px;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--text) 4%, transparent); }
.ra-blink { width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 8px var(--ok); transition: opacity .3s; margin-left: auto; }
.ra-terminal-body { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; padding: 8px 10px; height: 280px; overflow-y: auto; line-height: 1.6; }
.ra-ev { display: flex; gap: 6px; padding: 1px 0; }
.ra-ev-ts { color: var(--text-dim); flex: 0 0 auto; }
.ra-ev-txt { color: var(--text); }
.ra-ev-metrics { color: var(--accent); }
.ra-ev-ok .ra-ev-txt { color: var(--ok); }
.ra-ev-err .ra-ev-txt { color: var(--up); }
.ra-ev-warn .ra-ev-txt { color: var(--warn); }
.ra-ev-prop .ra-ev-txt { color: #ffce5a; font-weight: 600; }
.ra-ev-info .ra-ev-txt { color: var(--text); }

.ra-proposals { border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--bg-2);
  overflow: hidden; display: flex; flex-direction: column; }
.ra-hint { font-size: 10.5px; color: var(--text-dim); font-weight: 400; margin-left: auto; }
#ra-proposals-list { padding: 8px 10px; overflow-y: auto; height: 280px;
  display: flex; flex-direction: column; gap: 8px; }
.ra-prop { border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; background: var(--bg); }
.ra-prop-pend { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ra-prop-done { border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 7%, transparent); }
.ra-prop-rej { opacity: .62; }
.ra-prop-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ra-prop-kind { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.ra-prop-title { font-size: 13px; font-weight: 600; color: var(--text); }
.ra-prop-detail { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.ra-prop-metrics { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; font-size: 11.5px; color: var(--text-dim); }
.ra-prop-metrics b { color: var(--text); font-variant-numeric: tabular-nums; }
.ra-prop-actions { display: flex; gap: 8px; margin-top: 4px; }
.ra-prop-status { font-size: 12px; font-weight: 600; margin-top: 4px; }
.ra-prop-status.done { color: var(--ok); }
.ra-prop-status.rej { color: var(--text-dim); }
/* EMA 在线学习 */
.ra-ema { background: var(--bg-2, #182031); border: 1px solid var(--border, #323e52); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.ra-ema-h { font-size: 13px; font-weight: 600; color: var(--text, #e8eef7); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.ra-ema-tag { font-size: 11px; font-weight: 400; color: var(--text-dim, #98a5b8); background: rgba(77,124,255,.14); padding: 1px 8px; border-radius: 999px; }
.ra-ema-state { margin-left: auto; font-size: 11px; color: var(--text-dim, #98a5b8); font-weight: 400; }
.ra-ema-bars { display: flex; flex-direction: column; gap: 5px; }
.ra-ema-bar { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 8px; font-size: 12px; }
.ra-ema-name { color: var(--text, #e8eef7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-ema-track { height: 8px; background: var(--border, #323e52); border-radius: 999px; overflow: hidden; }
.ra-ema-fill { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }
.ra-ema-fill.hot { background: linear-gradient(90deg, #ff7a59, #ff4d5e); }
.ra-ema-fill.warm { background: linear-gradient(90deg, #ffcf5c, #22c07a); }
.ra-ema-fill.cool { background: linear-gradient(90deg, #4d7cff, #22c07a); }
.ra-ema-val { text-align: right; color: var(--text-dim, #98a5b8); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) { .ra-grid, .ra-modules, .ra-lower { grid-template-columns: 1fr; } }

/* ===== 策略研究AI · 行情自适应门槛指示 ===== */
.ra-regime { display: flex; align-items: center; gap: 7px; padding: 5px 11px;
  border: 1px solid var(--border); border-radius: 999px; font-size: 12px;
  background: var(--card-2); white-space: nowrap; }
.ra-regime .ra-regime-dot { width: 8px; height: 8px; border-radius: 50%;
  background: #9aa7bd; box-shadow: 0 0 0 3px rgba(154,167,189,.18); }
.ra-regime .ra-regime-lbl { color: var(--text-dim); }
.ra-regime .ra-regime-bias { font-size: 11px; padding: 1px 7px; border-radius: 999px;
  background: rgba(154,167,189,.16); color: var(--text-dim); }
.ra-regime .ra-regime-thr { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ra-regime b { font-size: 13px; }
/* 行情色码（与组合因子引擎 REGIME_BASE_N 基调一致） */
.ra-regime.regime-强多头 { border-color: rgba(34,192,122,.5); }
.ra-regime.regime-强多头 .ra-regime-dot { background: #22c07a; box-shadow: 0 0 0 3px rgba(34,192,122,.2); }
.ra-regime.regime-强多头 b { color: #22c07a; }
.ra-regime.regime-多头 { border-color: rgba(80,200,140,.45); }
.ra-regime.regime-多头 .ra-regime-dot { background: #5ec88c; box-shadow: 0 0 0 3px rgba(94,200,140,.2); }
.ra-regime.regime-多头 b { color: #5ec88c; }
.ra-regime.regime-震荡 { border-color: rgba(120,160,220,.4); }
.ra-regime.regime-震荡 .ra-regime-dot { background: #7aa0dc; box-shadow: 0 0 0 3px rgba(122,160,220,.2); }
.ra-regime.regime-震荡 b { color: #7aa0dc; }
.ra-regime.regime-空头 { border-color: rgba(240,170,60,.5); }
.ra-regime.regime-空头 .ra-regime-dot { background: #f0aa3c; box-shadow: 0 0 0 3px rgba(240,170,60,.2); }
.ra-regime.regime-空头 b { color: #f0aa3c; }
.ra-regime.regime-恐慌 { border-color: rgba(255,77,94,.55); }
.ra-regime.regime-恐慌 .ra-regime-dot { background: #ff4d5e; box-shadow: 0 0 0 3px rgba(255,77,94,.22); }
.ra-regime.regime-恐慌 b { color: #ff4d5e; }
.ra-regime.regime-恐慌 .ra-regime-bias { background: rgba(255,77,94,.16); color: #ff7b88; }

/* ===== 策略研究AI · 科技感动效层（2026-11-03，全部 transform/opacity 级，性能安全） ===== */
#ra-workbench { position: relative; z-index: 0; }

/* ① 运行态氛围：顶部极光呼吸 */
#ra-workbench::before {
  content: ""; position: absolute; z-index: -1; left: -10px; right: -10px; top: -14px; height: 150px;
  pointer-events: none; opacity: .5; transition: opacity .8s ease;
  background:
    radial-gradient(55% 100% at 18% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    radial-gradient(45% 90% at 82% 0%, color-mix(in srgb, var(--ok) 8%, transparent), transparent 72%);
  filter: blur(2px);
}
#ra-workbench.ra-running::before { opacity: 1; animation: ra-aurora 7s ease-in-out infinite alternate; }
@keyframes ra-aurora { from { transform: translateX(-2.5%) scale(1); } to { transform: translateX(2.5%) scale(1.05); } }

/* ② 流水线：进度条平滑充能 + 光头 + 流动数据脉冲（仅运行态） */
.ra-progress-bar { transition: width .8s cubic-bezier(.22, .9, .36, 1); position: relative; overflow: visible; }
.ra-progress-bar::after {
  content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%;
  transform: translateY(-50%); background: #fff; box-shadow: 0 0 8px 2px var(--accent);
  opacity: 0; transition: opacity .5s;
}
#ra-workbench.ra-running .ra-progress-bar::after { opacity: 1; }
.ra-progress { overflow: hidden; }
.ra-progress::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: repeating-linear-gradient(90deg, transparent 0 12px,
    color-mix(in srgb, var(--accent) 65%, transparent) 12px 20px);
  background-size: 40px 100%;
}
#ra-workbench.ra-running .ra-progress::after { opacity: .45; animation: ra-flow 1.1s linear infinite; }
@keyframes ra-flow { from { background-position: 0 0; } to { background-position: 40px 0; } }

/* ③ 当前阶段节点：虚线轨道旋转（卫星轨道感） */
.ra-node .num { position: relative; }
.ra-node.is-active .num::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  animation: ra-orbit 7s linear infinite;
}
@keyframes ra-orbit { to { transform: rotate(360deg); } }

/* ④ 指标条：宽度平滑 + 运行态流光扫过 + 同色微光 */
.ra-bar-fill { transition: width .7s cubic-bezier(.22, .9, .36, 1); position: relative; overflow: hidden; }
.ra-ema-fill { position: relative; overflow: hidden; }
.ra-bar-fill::after, .ra-ema-fill::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-110%); opacity: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .30) 50%, transparent 75%);
}
#ra-workbench.ra-running .ra-bar-fill::after, #ra-workbench.ra-running .ra-ema-fill::after {
  opacity: 1; animation: ra-shine 2.6s ease-in-out infinite;
}
@keyframes ra-shine { 0% { transform: translateX(-110%); } 55%, 100% { transform: translateX(240%); } }
.ra-bar-fill.ok { box-shadow: 0 0 7px -1px rgba(54, 196, 106, .45); }
.ra-bar-fill.bad { box-shadow: 0 0 7px -1px rgba(255, 90, 106, .40); }
.ra-bar-fill.warn { box-shadow: 0 0 7px -1px rgba(230, 179, 77, .40); }

/* ⑤ 终端：CRT 扫描线质感 + 运行态纵向扫描光带 + 新行淡入 + 呼吸光标 */
.ra-terminal { position: relative; }
.ra-terminal::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    radial-gradient(130% 55% at 50% -8%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 62%);
}
#ra-workbench.ra-running .ra-terminal::before {
  content: ""; position: absolute; left: 0; right: 0; height: 52px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 9%, transparent), transparent);
  animation: ra-scan 4.5s linear infinite;
}
@keyframes ra-scan { from { top: -12%; } to { top: 108%; } }
.ra-ev-new { animation: ra-ev-in .45s ease; }
@keyframes ra-ev-in { from { opacity: 0; transform: translateY(-3px); } }
.ra-caret {
  display: inline-block; width: 7px; height: 11px; margin-right: 5px; vertical-align: -1px;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
  animation: ra-blink 1s steps(2, start) infinite;
}

/* ⑥ 统计数字变化弹跳 */
.ra-stat b { display: inline-block; }
.ra-stat b.ra-bump { animation: ra-bump .55s cubic-bezier(.22, .9, .36, 1); }
@keyframes ra-bump {
  0% { transform: scale(1.45); color: var(--accent);
       text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); }
}

/* ⑦ 最优组合卡：金光横扫（JS 在 best.round 变化时挂 .ra-flash） */
.ra-card.ra-best { position: relative; overflow: hidden; }
.ra-card.ra-best::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 193, 7, .12), transparent);
}
.ra-card.ra-best.ra-flash::after { animation: ra-sweep 1.3s ease; }
@keyframes ra-sweep { to { left: 125%; } }

/* ⑧ 待确认提案：呼吸辉光，引导确认动作 */
.ra-prop-pend { animation: ra-prop-glow 2.6s ease-in-out infinite; }
@keyframes ra-prop-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(77, 124, 255, 0); }
  50% { box-shadow: 0 0 14px -3px color-mix(in srgb, var(--accent) 50%, transparent); }
}

/* ⑨ 运行态 BADGE / 状态胶囊微辉光 */
#ra-workbench.ra-running .ra-badge { animation: ra-badge-pulse 2.2s ease-in-out infinite; }
@keyframes ra-badge-pulse {
  50% { box-shadow: 0 0 12px -2px var(--accent); }
}
.ra-status.is-running { animation: ra-pill-glow 2.2s ease-in-out infinite; }
@keyframes ra-pill-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 192, 122, 0); }
  50% { box-shadow: 0 0 12px -3px color-mix(in srgb, var(--ok) 55%, transparent); }
}

/* ⑩ 无障碍：系统开启「减少动态效果」时全部关闭 */
@media (prefers-reduced-motion: reduce) {
  #ra-workbench *, #ra-workbench::before, #ra-workbench::after,
  .ra-terminal::before, .ra-terminal::after { animation: none !important; transition: none !important; }
  .radar-sweep, .radar-core, .radar-ripple { animation: none !important; }
}

/* ===== 顶栏 v2 · 专业终端风（2026-11-07 黄总参照专业后台样式要求重构） =====
   参考样式：深色导航条 + 圆角方形 Logo + 白色主标题/灰色副标题 + 右侧胶囊按钮组。
   黑金（默认）主题下顶栏为深色金黑；浅色主题下顶栏跟随变浅（2026-11-09 黄总调整：
   顶栏颜色也随两套主题变化一致），作用域均限 .topbar，不影响站内其余主题。 */
.topbar {
  background: linear-gradient(90deg, #131c27, #18232f) !important;
  border-bottom: 1px solid #0b1118;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 2px 10px rgba(4,10,18,.35);
  padding: 10px 22px;
  position: sticky; top: 0; z-index: 40;
}
.topbar .logo {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, #3d8bfd, #2b6ae0) !important;
  box-shadow: 0 2px 8px rgba(47,111,246,.35);
  font-size: 20px;
}
.topbar .brand { gap: 11px; }
.topbar .brand-text h1 { color: #f2f6fa; font-size: 16px; letter-spacing: .3px; }
.topbar .brand-text p { color: #8fa0b3; font-size: 12px; }
.topbar-right { gap: 9px; }
/* 右侧胶囊：主题切换 / 退出 */
.topbar .theme-btn,
.topbar .user-menu .btn.btn-sm {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  color: #dbe4ee;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
}
.topbar .theme-btn:hover,
.topbar .user-menu .btn.btn-sm:hover {
  background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.24);
}
/* 用户名与徽章 */
.topbar .um-name { color: #f2f6fa; font-size: 13px; letter-spacing: .2px; }
.topbar .um-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #c6d2df;
}
/* 身份切换（系统管理员 / 员工）：激活项蓝底白字，同参考样式 */
.topbar .um-switch { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); }
.topbar .um-sw-btn { color: #9fb0c2; }
.topbar .um-sw-btn:hover { color: #e6edf5; }
.topbar .um-sw-btn.is-on {
  background: #2f6df6; color: #fff;
  box-shadow: 0 1px 6px rgba(47,109,246,.45);
}
/* 风险类型徽章（成长型等）：金色描边胶囊，同参考样式 */
.topbar .um-risk {
  background: transparent;
  border: 1px solid rgba(214,171,74,.6);
  color: #e5bd62;
}
.topbar .um-risk:hover { border-color: rgba(214,171,74,.9); color: #f0cd7d; }
/* 兜底：顶栏内其他 badge（通道/引擎，已隐藏）如临时恢复也按深色胶囊显示 */
.topbar .badge {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: #c6d2df;
}

/* ===== 顶栏 v3（2026-11-07 黄总样图：官方Logo + 状态徽章组 + 全宽动态行情带） ===== */
/* 顶栏底色压深、主标题染金 */
.topbar {
  background: linear-gradient(90deg, #0b1016, #101823) !important;
}
.topbar .brand-text h1 { color: #e9c766; font-size: 16px; letter-spacing: .5px; }
.topbar .brand-text p { color: #8fa0b3; font-size: 11.5px; letter-spacing: .4px; }
/* Logo：官方深青金图标填充圆角方块 */
.topbar .logo { padding: 0; overflow: hidden; background: #1d3a3a !important; }
.topbar .logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
/* 状态徽章组 */
.topbar .live-pill { color: #e8eef7; }
.topbar .pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #e5484d; margin-right: 6px; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(229, 72, 77, .5);
  animation: pulse-dot-anim 1.6s ease-out infinite;
}
@keyframes pulse-dot-anim {
  0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .45); }
  70% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}
.topbar #mode-badge { border-style: dashed; }
.topbar #mode-badge.mode-live {
  color: #f4556b; border-color: rgba(244, 85, 107, .5);
  background: rgba(244, 85, 107, .08); border-style: solid;
}
.topbar .badge-broker { color: #9fd6a8; border-color: rgba(47, 201, 141, .35); }
/* 用户首字头像圆标（金色） */
.um-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #e3b95c, #c9962e);
  color: #2a1f0a; font-size: 13px; font-weight: 700;
  flex: none;
}
/* 全宽动态行情带（复用 mk-ticker 的跑马灯动画） */
.live-strip {
  overflow: hidden; position: relative;
  background: #0a0e14;
  border-bottom: 1px solid #101823;
}
.live-strip::before, .live-strip::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 2; pointer-events: none;
}
.live-strip::before { left: 0; background: linear-gradient(90deg, #0a0e14, transparent); }
.live-strip::after { right: 0; background: linear-gradient(-90deg, #0a0e14, transparent); }
.live-strip-track {
  display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 0;
  animation: mk-ticker-scroll 55s linear infinite; will-change: transform;
}
.live-strip:hover .live-strip-track { animation-play-state: paused; }
.live-strip .tk-item { padding: 0 18px; font-size: 12px; border-right: 1px solid rgba(148,165,184,.12); }
.live-strip .tk-name { color: #9fb0c2; font-family: ui-monospace, Consolas, monospace; letter-spacing: .4px; }
.live-strip .tk-val { color: #e8eef7; }
.live-strip .tk-item b { font-weight: 600; }
/* 窄屏：行情带保留，徽章组收敛 */
@media (max-width: 900px) {
  .topbar #live-clock, .topbar .badge-broker { display: none !important; }
}

/* ===== 用户菜单 v2 · 折叠下拉（2026-11-08 黄总参照样图：头像圆标收起，点击弹出账号卡片） ===== */
.topbar .user-menu { position: relative; }
.topbar .um-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 3px 9px 3px 3px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.topbar .um-trigger:hover { border-color: rgba(227,185,92,.55); background: rgba(255,255,255,.08); }
.topbar .um-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid #9fb0c2; transition: transform .15s;
}
.topbar .user-menu.open .um-caret { transform: rotate(180deg); }
.topbar .um-panel {
  display: none; position: absolute; right: 0; top: calc(100% + 10px);
  min-width: 220px; background: #101823;
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); overflow: hidden; z-index: 1200;
}
.topbar .user-menu.open .um-panel { display: block; }
.topbar .um-panel-head { padding: 13px 15px 10px; }
.topbar .um-panel-name { color: #f2f6fa; font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.topbar .um-panel-role { color: #9fb0c2; font-size: 12px; margin-top: 3px; }
.topbar .um-panel-divider { height: 1px; background: rgba(255,255,255,.08); margin: 5px 0; }
.topbar .um-row-label { padding: 4px 15px 6px; color: #7f92a6; font-size: 11px; letter-spacing: .5px; }
.topbar .um-panel .um-switch { margin: 0 15px 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); }
.topbar .um-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px 15px; background: none; border: 0; cursor: pointer;
  color: #cdd8e4; font-size: 13px; text-align: left; font-family: inherit;
}
.topbar .um-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.topbar .um-item .um-item-ic { display: inline-grid; place-items: center; color: #9fb0c2; flex: none; }
.topbar .um-item:hover .um-item-ic { color: #fff; }
.topbar .um-item.danger { color: #f4556b; }
.topbar .um-item.danger .um-item-ic { color: #f4556b; }
.topbar .um-item.danger:hover { background: rgba(244,85,107,.1); color: #ff7a8c; }

/* ===== 页脚产品描述（2026-11-08：自 hero 区下移，hero 保持干净）===== */
.footer-desc { color: var(--text-dim); font-size: 11px; line-height: 1.7; max-width: 760px; margin: 0 auto 8px; }

/* ===== 仪表盘（2026-11-08 重塑 + 科技感视觉增强）===== */
#dashboard { position: relative; }
.db-inner { position: relative; z-index: 1; }

/* 科技感背景层：网格 + 辉光 + 粒子 */
.db-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 12px; pointer-events: none; }
.db-fx-glow1 { position: absolute; top: -160px; left: 6%; width: 560px; height: 380px;
  background: radial-gradient(ellipse, rgba(31,58,58,.7), transparent 65%); filter: blur(40px); }
.db-fx-glow2 { position: absolute; top: -120px; right: 3%; width: 480px; height: 320px;
  background: radial-gradient(ellipse, rgba(201,162,39,.12), transparent 65%); filter: blur(50px); }
.db-fx-grid { position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%); }
.db-fx-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* LIVE 脉冲徽章 */
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); position: relative; display: inline-block; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--up); animation: dbPulse 2s infinite; }
@keyframes dbPulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.db-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #F0726F;
  margin-left: 10px; border: 1px solid rgba(229,72,77,.4); border-radius: 99px; padding: 2px 9px; background: rgba(229,72,77,.08); }
.db-live--sm { margin-left: auto; font-size: 10px; padding: 1px 7px; }

.db-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; margin-bottom: 16px;
  background: linear-gradient(90deg, rgba(31,58,58,.65), rgba(31,58,58,.22));
  border: 1px solid rgba(201,162,39,.18); border-radius: 12px;
  box-shadow: 0 0 24px rgba(31,58,58,.25);
}
.db-hero-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.db-hero-logo { font-size: 18px; font-weight: 700; color: #e9f3f1; letter-spacing: .5px; }
.db-hero-sub { font-size: 12px; color: var(--text-dim); }
.db-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.db-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.db-grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) { .db-grid-2 { grid-template-columns: 1fr; } }

.db-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 14px 16px; transition: .2s;
}
.db-card:hover { transform: translateY(-2px); border-color: rgba(201,162,39,.25); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.db-card-h {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; color: #cdd8e4;
}
.db-sub { font-size: 11px; font-weight: 400; color: var(--text-dim); }

.db-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.db-stat { display: flex; flex-direction: column; gap: 4px; }
.db-stat-l { font-size: 12px; color: var(--text-dim); }
.db-stat .num, .db-stat b.num { font-size: 20px; font-weight: 700; color: #eef4f7; }

.db-curve-box { width: 100%; }
#db-curve-canvas { width: 100%; height: 200px; display: block; }

.db-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 980px) { .db-kpis { grid-template-columns: repeat(2, 1fr); } }
.db-kpi {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden; transition: .2s;
}
.db-kpi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--accent); opacity: .85; }
.db-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.db-kpi--up::before { background: var(--up); }
.db-kpi--gold::before { background: #C9A227; }
.db-kpi--accent::before { background: var(--accent); }
.db-kpi--warn::before { background: var(--warn); }
.db-kpi-l { font-size: 12px; color: var(--text-dim); }
.db-kpi b.num { font-size: 22px; font-weight: 700; color: #eef4f7; }
.db-kpi-sub { font-size: 11px; color: var(--text-dim); }

.db-signals-body, .db-pool-body { min-height: 120px; }
.sig-list { display: flex; flex-direction: column; gap: 6px; }
.sig-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 7px 10px; background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06); border-left: 3px solid transparent; border-radius: 7px; font-size: 13px; transition: .15s;
}
.sig-row:hover { background: rgba(255,255,255,.05); }
.sig-row--up { border-left-color: var(--up); }
.sig-row--down { border-left-color: var(--down); }
.sig-row--flat { border-left-color: var(--text-dim); }
.sig-code { font-weight: 600; color: #dbe6ef; display: flex; flex-direction: column; }
.sig-name { font-size: 11px; color: var(--text-dim); font-weight: 400; }
.sig-tier { font-size: 12px; color: #9fb0c2; font-variant-numeric: tabular-nums; }
.sig-pnl { font-weight: 600; font-variant-numeric: tabular-nums; }

.pool-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.pool-list { display: flex; flex-direction: column; gap: 6px; }
.pool-row {
  display: grid; grid-template-columns: 84px 1fr auto auto; align-items: center; gap: 10px;
  padding: 7px 10px; background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06); border-radius: 7px; font-size: 13px;
}
.pool-row:hover { background: rgba(255,255,255,.05); }
.pool-code { font-weight: 600; color: #dbe6ef; font-variant-numeric: tabular-nums; }
.pool-name { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-price { font-variant-numeric: tabular-nums; color: #cdd8e4; }
.pool-chg { font-variant-numeric: tabular-nums; font-weight: 600; }
.pool-more { font-size: 11px; color: var(--text-dim); margin-top: 8px; text-align: right; }

/* 紧凑使用统计条（变小、放不显眼处，但保留社会证明） */
.usage-strip--compact { margin-top: 0; margin-bottom: 16px; }
.usage-strip--compact .usage-head { font-size: 11px; margin-bottom: 6px; }
.usage-strip--compact .usage-row { gap: 8px; }
.usage-strip--compact .usage-card { padding: 8px 14px 7px; }
.usage-strip--compact .usage-title { font-size: 12px; }
.usage-strip--compact .usage-tag { display: none; }
.usage-strip--compact .usage-num { font-size: 20px; margin-top: 2px; }
.usage-strip--compact .usage-sub { font-size: 10px; }
.usage-strip--compact .usage-plus { font-size: 16px; }

/* ============================================================================
   仪表盘 · 深青金交易终端（2026-11-08 v3 · 对标参考样版，全部作用域限定 #dashboard）
   设计语言：近黑底 + 细网格 + 金色辉光 + 发丝边 + 大字重数字 + 语义色条
   ============================================================================ */
#dashboard.panel {
  position: relative; padding: 0 !important; margin: 0 !important;
  background: #0a0a0b; border: none; border-radius: 0; overflow: hidden;
  color: #EDE6DA;
  --d-bg: #0a0a0b;
  --d-gold: #EFCF7E;
  --d-gold-2: #C9A85F;
  --d-line: rgba(232, 196, 120, .13);
  --d-line-2: rgba(232, 196, 120, .28);
  --d-text: #EDE6DA;
  --d-text-2: #B9B0A0;
  --d-mute: #7E7669;
  --d-up: #FF5A5F;
  --d-down: #2FD08A;
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- 背景：网格 + 辉光 + 粒子 ---------- */
#dashboard .db-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
#dashboard .db-fx-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(232, 196, 120, .052) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232, 196, 120, .052) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(130% 105% at 50% -8%, #000 22%, rgba(0,0,0,.32) 66%, transparent 100%);
  mask-image: radial-gradient(130% 105% at 50% -8%, #000 22%, rgba(0,0,0,.32) 66%, transparent 100%);
}
#dashboard .db-fx-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(640px 330px at 11% -8%, rgba(233, 183, 86, .14), transparent 62%),
    radial-gradient(720px 380px at 90% -12%, rgba(233, 183, 86, .075), transparent 66%),
    radial-gradient(900px 520px at 50% 118%, rgba(120, 88, 36, .10), transparent 72%);
}
#dashboard .db-fx-particles { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }

#dashboard .db-wrap { position: relative; z-index: 1; padding: 22px 22px 14px; }

/* ---------- 卡片基底 ---------- */
#dashboard .db-panel {
  position: relative; border-radius: 16px; padding: 22px 24px 20px;
  background: linear-gradient(168deg, #181510 0%, #12100d 42%, #0c0b0a 100%);
  border: 1px solid var(--d-line);
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .05), 0 26px 60px -38px #000;
}

/* ---------- 第一行 ---------- */
#dashboard .db-row1 { display: grid; grid-template-columns: 0.92fr 1fr; gap: 12px; margin-bottom: 20px; }

#dashboard .db-badge {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px;
  border-radius: 999px; background: rgba(233, 183, 86, .07);
  border: 1px solid rgba(233, 183, 86, .26);
  font-size: 12px; letter-spacing: .6px; color: #E8CE93;
}
#dashboard .db-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--d-gold);
  box-shadow: 0 0 0 3px rgba(239, 207, 126, .14), 0 0 10px rgba(239, 207, 126, .85);
}
#dashboard .db-h1 {
  margin: 16px 0 9px; font-size: 23px; line-height: 1.34; font-weight: 700;
  letter-spacing: .6px; color: #F4EEE2;
}
#dashboard .db-lead {
  margin: 0 0 18px; font-size: 12.8px; line-height: 1.65; color: var(--d-text-2);
  letter-spacing: .2px;
}
#dashboard .db-lead b { color: var(--d-gold); font-weight: 600; }

#dashboard .db-hstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
#dashboard .db-hstat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#dashboard .db-lab { font-size: 12px; color: var(--d-mute); letter-spacing: 1px; }
#dashboard .db-big {
  font-size: 27px; font-weight: 700; line-height: 1.14; letter-spacing: .4px;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  color: var(--d-up); text-shadow: 0 0 26px rgba(255, 90, 95, .22);
  white-space: nowrap;
}
#dashboard .db-big--gold { color: var(--d-gold); text-shadow: 0 0 28px rgba(239, 207, 126, .30); }
#dashboard .db-big.up { color: var(--d-up); text-shadow: 0 0 26px rgba(255, 90, 95, .24); }
#dashboard .db-big.down { color: var(--d-down); text-shadow: 0 0 26px rgba(47, 208, 138, .22); }
#dashboard .db-note { font-size: 11.5px; color: var(--d-mute); letter-spacing: .3px; }
#dashboard .db-note.up { color: var(--d-up); }
#dashboard .db-note.down { color: var(--d-down); }

#dashboard .db-hactions { display: flex; gap: 12px; flex-wrap: wrap; }
#dashboard .db-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; letter-spacing: .4px; cursor: pointer;
  transition: transform .16s ease, filter .16s ease, background .16s ease, border-color .16s ease;
  font-family: inherit;
}
#dashboard .db-btn-gold {
  background: linear-gradient(180deg, #F8DF96 0%, #E5BE59 100%); color: #2A2109;
  box-shadow: 0 12px 28px -14px rgba(235, 193, 95, .9), inset 0 1px 0 rgba(255, 255, 255, .55);
}
#dashboard .db-btn-gold:hover { filter: brightness(1.07); transform: translateY(-1px); }
#dashboard .db-btn-ghost {
  background: rgba(255, 255, 255, .022); color: #DCD3C3;
  border-color: rgba(232, 196, 120, .22);
}
#dashboard .db-btn-ghost:hover { background: rgba(232, 196, 120, .08); border-color: rgba(232, 196, 120, .42); transform: translateY(-1px); }
#dashboard .db-play { font-size: 10px; transform: translateY(-.5px); }

/* ---------- 净值曲线卡 ---------- */
#dashboard .db-curve-panel { display: flex; flex-direction: column; }
#dashboard .db-curve-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
#dashboard .db-curve-t { font-size: 13px; font-weight: 600; letter-spacing: .8px; color: #D9D0C0; }
#dashboard .db-curve-v {
  font-size: 21px; font-weight: 700; color: #F4EEE2; letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}
#dashboard .db-curve-chg { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--d-up); }
#dashboard .db-curve-chg.down { color: var(--d-down); }
#dashboard .db-curve-range { font-size: 11.5px; color: var(--d-mute); }
#dashboard .db-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 11px; border-radius: 999px;
  border: 1px solid rgba(255, 90, 95, .32); background: rgba(255, 90, 95, .085);
  color: #FF9296; font-size: 10.5px; font-weight: 600; letter-spacing: 1.4px;
}
#dashboard .db-live i { width: 6px; height: 6px; border-radius: 50%; background: #FF5A5F; animation: dbPulseRed 1.9s infinite; }
@keyframes dbPulseRed {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 95, .75); }
  70% { box-shadow: 0 0 0 7px rgba(255, 90, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0); }
}
#dashboard .db-curve-box { position: relative; flex: 1 1 auto; min-height: 168px; margin: 16px 0 8px; }
#dashboard #db-curve-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
/* 2026-11-09 修复：canvas 此前 height:100% 参与盒子内容尺寸计算 → dbDrawCurve 按
   rect.height×dpr 反写属性尺寸形成布局反馈环，dpr>1（Windows 125%/150% 缩放）时
   每次切回仪表盘重渲染都会放大一轮，卡片被越撑越高。改为绝对定位填满 .db-curve-box
   （已 relative + flex:1），canvas 退出内容尺寸反馈环，高度彻底稳定。 */
#dashboard .db-curve-foot { display: flex; align-items: center; gap: 18px; font-size: 11.5px; color: var(--d-mute); letter-spacing: .3px; }
#dashboard .db-lg { display: inline-flex; align-items: center; gap: 7px; }
#dashboard .db-lg-line { width: 16px; height: 2px; border-radius: 2px; background: var(--d-gold); box-shadow: 0 0 8px rgba(239, 207, 126, .85); }
#dashboard .db-lg-dash { width: 16px; height: 0; border-top: 1px dashed rgba(220, 210, 190, .42); }
#dashboard .db-curve-metrics { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- 六格 KPI ---------- */
#dashboard .db-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
#dashboard .db-kpi {
  position: relative; overflow: hidden; border-radius: 14px;
  padding: 14px 16px 13px 18px;
  background: linear-gradient(168deg, #161310 0%, #0f0d0b 60%, #0c0b0a 100%);
  border: 1px solid var(--d-line);
  display: flex; flex-direction: column; gap: 7px;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), border-color .22s, box-shadow .22s;
}
#dashboard .db-kpi::before {
  content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--d-gold); box-shadow: 0 0 14px rgba(239, 207, 126, .6);
}
#dashboard .db-kpi:hover { transform: translateY(-3px); border-color: var(--d-line-2); box-shadow: 0 28px 52px -34px #000; }
#dashboard .db-kpi-l { font-size: 12px; color: var(--d-mute); letter-spacing: 1px; }
#dashboard .db-kpi-v {
  font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: .3px;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; white-space: nowrap;
}
#dashboard .db-kpi-s { font-size: 11.5px; color: var(--d-mute); letter-spacing: .2px; }
#dashboard .db-kpi-s.up { color: var(--d-up); }
#dashboard .db-kpi-s.down { color: var(--d-down); }

#dashboard .db-kpi--up::before { background: var(--d-up); box-shadow: 0 0 14px rgba(255, 90, 95, .55); }
#dashboard .db-kpi--up .db-kpi-v { color: var(--d-up); text-shadow: 0 0 24px rgba(255, 90, 95, .22); }
#dashboard .db-kpi--green::before { background: var(--d-down); box-shadow: 0 0 14px rgba(47, 208, 138, .5); }
#dashboard .db-kpi--green .db-kpi-v { color: var(--d-down); text-shadow: 0 0 24px rgba(47, 208, 138, .2); }
#dashboard .db-kpi--gold::before { background: var(--d-gold); }
#dashboard .db-kpi--gold .db-kpi-v { color: var(--d-gold); text-shadow: 0 0 26px rgba(239, 207, 126, .28); }
#dashboard .db-kpi--warn::before { background: #E0A63C; box-shadow: 0 0 14px rgba(224, 166, 60, .5); }
#dashboard .db-kpi--warn .db-kpi-v { color: #F0C86A; text-shadow: 0 0 26px rgba(224, 166, 60, .26); }

/* ---------- 底部状态条 ---------- */
#dashboard .db-statusbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px;
  margin: 2px 0 14px; padding: 13px 18px; border-radius: 14px;
  background: linear-gradient(168deg, #161310 0%, #0f0d0b 60%, #0c0b0a 100%);
  border: 1px solid var(--d-line);
}
#dashboard .db-status-item { display: inline-flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--d-mute); }
#dashboard .db-status-k { letter-spacing: .6px; }
#dashboard .db-status-v { font-size: 16px; font-weight: 700; color: #EBD08C; font-variant-numeric: tabular-nums; }
#dashboard .db-status-s { font-size: 11.5px; letter-spacing: .2px; }
#dashboard .db-status-item--ok { align-items: center; gap: 7px; color: #5FE0AC; font-size: 12px; }
#dashboard .db-status-item--ok .db-pulse { flex: 0 0 auto; }

/* ---------- 第三行：信号 / 候选池 ---------- */
#dashboard .db-cols { display: grid; grid-template-columns: .78fr 1fr; gap: 20px; align-items: stretch; margin-bottom: 14px; }
#dashboard .db-sig-panel, #dashboard .db-pool-panel { display: flex; flex-direction: column; min-width: 0; }

#dashboard .db-ph {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 13px; margin-bottom: 14px; border-bottom: 1px solid rgba(232, 196, 120, .085);
}
#dashboard .db-ph-t {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .6px; color: #EAE2D4;
}
#dashboard .db-ph-t svg { width: 14px; height: 14px; color: var(--d-gold); flex: 0 0 auto; }
#dashboard .db-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 10px;
  border-radius: 999px; font-size: 11px; letter-spacing: .3px; white-space: nowrap;
}
#dashboard .db-pill-ok { background: rgba(47, 208, 138, .09); border: 1px solid rgba(47, 208, 138, .28); color: #5FE0AC; }
#dashboard .db-pill-mute { background: rgba(255, 255, 255, .025); border: 1px solid rgba(232, 196, 120, .14); color: var(--d-mute); }
#dashboard .db-pulse { width: 6px; height: 6px; border-radius: 50%; background: #2FD08A; animation: dbPulseGreen 1.9s infinite; }
@keyframes dbPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(47, 208, 138, .7); }
  70% { box-shadow: 0 0 0 6px rgba(47, 208, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 208, 138, 0); }
}

/* 信号上方说明条 */
#dashboard .db-sig-note {
  margin: 0 0 13px; padding: 11px 14px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(233, 183, 86, .075), rgba(233, 183, 86, .028));
  border: 1px solid rgba(232, 196, 120, .17);
  font-size: 12px; line-height: 1.62; color: #CFC6B6; letter-spacing: .2px;
}
#dashboard .db-sig-note b { color: var(--d-gold); font-weight: 600; }

/* 信号行 */
#dashboard .db-sig-list { display: flex; flex-direction: column; gap: 8px; }
#dashboard .sig-row {
  display: grid; grid-template-columns: 24px minmax(0, 1.5fr) minmax(56px, .85fr) 68px;
  align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .017);
  border: 1px solid rgba(232, 196, 120, .07);
  transition: background .16s, border-color .16s;
}
#dashboard .sig-row:hover { background: rgba(233, 183, 86, .045); border-color: rgba(232, 196, 120, .18); }
#dashboard .sig-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
}
#dashboard .sig-act--buy { background: rgba(255, 90, 95, .15); color: #FF9296; border: 1px solid rgba(255, 90, 95, .34); }
#dashboard .sig-act--sell { background: rgba(47, 208, 138, .13); color: #5FE0AC; border: 1px solid rgba(47, 208, 138, .3); }
#dashboard .sig-act--hold { background: rgba(233, 183, 86, .13); color: #EBD08C; border: 1px solid rgba(233, 183, 86, .3); }
#dashboard .sig-main { min-width: 0; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
#dashboard .sig-nm { font-size: 13px; font-weight: 600; color: #E7DFD2; letter-spacing: .2px; }
#dashboard .sig-cd { font-size: 11px; color: var(--d-mute); font-variant-numeric: tabular-nums; }
#dashboard .sig-meta { font-size: 11px; color: var(--d-mute); letter-spacing: .2px; white-space: nowrap; }
#dashboard .sig-meta b { color: #CBBFA8; font-weight: 600; }
#dashboard .sig-bar { height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
#dashboard .sig-bar i { display: block; height: 100%; border-radius: 3px; animation: dbBarGrow 1.2s cubic-bezier(.2, .8, .2, 1); }
@keyframes dbBarGrow { from { width: 0; } }
#dashboard .sig-bar--buy i { background: linear-gradient(90deg, rgba(255, 90, 95, .5), #FF5A5F); box-shadow: 0 0 10px rgba(255, 90, 95, .55); }
#dashboard .sig-bar--sell i { background: linear-gradient(90deg, rgba(47, 208, 138, .5), #2FD08A); box-shadow: 0 0 10px rgba(47, 208, 138, .5); }
#dashboard .sig-bar--hold i { background: linear-gradient(90deg, rgba(233, 183, 86, .45), #EFCF7E); box-shadow: 0 0 10px rgba(239, 207, 126, .5); }
#dashboard .sig-pnl { font-size: 12.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
#dashboard .sig-pnl.up { color: var(--d-up); }
#dashboard .sig-pnl.down { color: var(--d-down); }
#dashboard .sig-pnl.flat { color: var(--d-mute); }
#dashboard .sig-list { display: flex; flex-direction: column; gap: 8px; }

/* 候选池（2026-11-08 v2）：与「智能选股·本轮候选」面板同一行结构
   代码｜名称｜★策略级/已剔除｜涨跌徽标（色底）｜分 */
#dashboard .dp-meta {
  padding: 0 10px 9px; font-size: 11.5px; color: var(--d-mute); letter-spacing: .3px;
  font-variant-numeric: tabular-nums;
}
#dashboard .dp-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
#dashboard .dp-row:nth-child(even) { background: rgba(233, 183, 86, .028); }
#dashboard .dp-row:hover { background: rgba(233, 183, 86, .07); }
#dashboard .dp-row-out { opacity: .62; }
#dashboard .dp-row-combo { box-shadow: inset 2px 0 0 rgba(239, 207, 126, .55); }
#dashboard .dp-code {
  min-width: 54px; color: var(--d-mute); font-size: 12px;
  font-variant-numeric: tabular-nums; letter-spacing: .3px;
}
#dashboard .dp-name {
  flex: 1; min-width: 0; color: #E7DFD2; font-size: 13px; font-weight: 600;
  letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#dashboard .dp-badge {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
  border-radius: 4px; font-size: 10.5px; letter-spacing: .2px; white-space: nowrap;
  background: rgba(239, 207, 126, .13); border: 1px solid rgba(239, 207, 126, .34); color: #EBD08C;
}
#dashboard .dp-out {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
  border-radius: 4px; font-size: 10.5px; letter-spacing: .2px; white-space: nowrap;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); color: #7E7669;
}
#dashboard .dp-chg {
  flex: 0 0 auto; min-width: 56px; text-align: right; font-weight: 600;
  font-size: 12px; font-variant-numeric: tabular-nums;
  border-radius: 4px; padding: 2px 6px; white-space: nowrap;
}
#dashboard .dp-chg.up { color: #FF8A8E; background: rgba(255, 90, 95, .14); }
#dashboard .dp-chg.down { color: #5FE0AC; background: rgba(47, 208, 138, .13); }
#dashboard .dp-chg.flat { color: var(--d-mute); background: rgba(255, 255, 255, .04); }
#dashboard .dp-score {
  flex: 0 0 auto; min-width: 62px; text-align: right; color: #B9B0A0;
  font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
#dashboard .dp-score b { color: #EBD08C; font-weight: 700; font-size: 12.5px; }
#dashboard .dp-score-out { color: #8A8273; font-size: 11px; }

/* 候选池空态（此前 .db-empty 无样式，裸文本渲染——补齐） */
#dashboard .db-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 190px; padding: 26px 20px; text-align: center;
  border: 1px dashed rgba(232, 196, 120, .18); border-radius: 12px;
  background: rgba(233, 183, 86, .025);
}
#dashboard .db-empty-ic {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--d-gold); background: rgba(239, 207, 126, .08);
  border: 1px solid rgba(239, 207, 126, .28); box-shadow: 0 0 18px rgba(239, 207, 126, .14);
}
#dashboard .db-empty-t { font-size: 14px; font-weight: 700; color: #E7DFD2; letter-spacing: .4px; }
#dashboard .db-empty-s { max-width: 400px; font-size: 12px; line-height: 1.7; color: var(--d-mute); }
#dashboard .db-btn-sm { height: 34px; padding: 0 16px; font-size: 12.5px; }

/* 卡脚注 */
#dashboard .db-pf {
  margin-top: auto; padding-top: 13px; font-size: 11.5px; color: var(--d-mute);
  letter-spacing: .3px; line-height: 1.6; font-variant-numeric: tabular-nums;
}
#dashboard .db-pf b { color: #CBBFA8; font-weight: 600; }
#dashboard .hint { color: var(--d-mute); font-size: 12px; line-height: 1.7; }

/* ---------- 底部：全用户累计使用次数（极小，不抢眼） ---------- */
#dashboard .db-usage { padding: 2px 4px 0; }
#dashboard .usage-line {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; color: #6E6759; letter-spacing: .3px;
}
#dashboard .usage-k { display: inline-flex; align-items: center; gap: 6px; color: #7E7669; }
#dashboard .usage-k i {
  width: 5px; height: 5px; border-radius: 50%; background: rgba(239, 207, 126, .55);
  box-shadow: 0 0 8px rgba(239, 207, 126, .5);
}
#dashboard .usage-item { color: #8A8273; }
#dashboard .usage-item b {
  color: #C9AE72; font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums;
  letter-spacing: .4px; margin: 0 2px;
}
#dashboard .usage-sep { color: #4A453C; }
#dashboard .usage-tip { margin-left: auto; color: #5E584D; font-size: 10.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  #dashboard .db-row1 { grid-template-columns: 1fr; }
  #dashboard .db-cols { grid-template-columns: 1fr; }
  #dashboard .db-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  #dashboard .db-wrap { padding: 14px 12px 12px; }
  #dashboard .db-panel { padding: 16px 16px 14px; border-radius: 13px; }
  #dashboard .db-h1 { font-size: 19px; }
  #dashboard .db-hstats { grid-template-columns: 1fr 1fr; gap: 14px; }
  #dashboard .db-big { font-size: 22px; }
  #dashboard .db-kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  #dashboard .dp-chg { min-width: 50px; }
  #dashboard .dp-score { min-width: 56px; }
}

/* ============================================================================
   应用外壳 · 黑金终端（2026-11-08 v3）——与仪表盘同一套设计语言，
   只作用于深色主题，浅色主题（演示模式）保持原样。
   ============================================================================ */
body:not([data-theme="light"]) {
  background: #08080a;
  color: #EDE6DA;
}

/* 顶栏 */
body:not([data-theme="light"]) .topbar {
  background:
    radial-gradient(680px 220px at 18% -60%, rgba(233, 183, 86, .14), transparent 70%),
    linear-gradient(180deg, #0d0c0b 0%, #08080a 100%);
  border-bottom: 1px solid rgba(232, 196, 120, .10);
  box-shadow: 0 1px 0 rgba(255, 240, 200, .025) inset;
  padding: 11px 22px;
}
body:not([data-theme="light"]) .brand-text h1 { color: #F2EBDE; letter-spacing: .4px; font-weight: 700; }
body:not([data-theme="light"]) .brand-text p { color: #7E7669; letter-spacing: .3px; }
body:not([data-theme="light"]) .topbar .logo {
  box-shadow: 0 0 0 1px rgba(232, 196, 120, .18), 0 6px 18px -8px rgba(0, 0, 0, .9);
}
body:not([data-theme="light"]) .badge {
  background: rgba(255, 255, 255, .028); border: 1px solid rgba(232, 196, 120, .14);
  color: #B4AB9B; letter-spacing: .3px;
}
body:not([data-theme="light"]) .badge.live-pill {
  background: rgba(47, 208, 138, .07); border-color: rgba(47, 208, 138, .26); color: #5FE0AC;
}
body:not([data-theme="light"]) .theme-btn {
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(232, 196, 120, .16); color: #CBBFA8;
}

/* 行情跑马灯 */
body:not([data-theme="light"]) .live-strip {
  background: #08080a; border-top: 1px solid rgba(232, 196, 120, .07);
  border-bottom: 1px solid rgba(232, 196, 120, .07);
}
body:not([data-theme="light"]) .live-strip::before { background: linear-gradient(90deg, #08080a, transparent); }
body:not([data-theme="light"]) .live-strip::after { background: linear-gradient(-90deg, #08080a, transparent); }
body:not([data-theme="light"]) .live-strip .tk-name { color: #7E7669; }
body:not([data-theme="light"]) .live-strip .tk-val { color: #E4DCCC; }
body:not([data-theme="light"]) .live-strip .tk-item { border-right-color: rgba(232, 196, 120, .08); }

/* 一级导航（文件夹式） */
body:not([data-theme="light"]) .tabs {
  background: #0a0a0b;
  border-bottom: 1px solid rgba(232, 196, 120, .10);
  padding: 9px 18px 0;
}
body:not([data-theme="light"]) .tab-grp-box {
  background: rgba(255, 255, 255, .018);
  border: 1px solid rgba(232, 196, 120, .10);
  border-bottom: none;
}
body:not([data-theme="light"]) .tab-grp-box.is-hot {
  background: rgba(233, 183, 86, .07);
  box-shadow: inset 2px 0 0 rgba(233, 183, 86, .55);
}
body:not([data-theme="light"]) .tab-grp-badge { background: #E9C767; color: #2A2109; }
body:not([data-theme="light"]) .tab-grp-title { color: #8A8273; letter-spacing: .6px; }
body:not([data-theme="light"]) .tab-grp-box.is-hot .tab-grp-title { color: #EBD08C; }
body:not([data-theme="light"]) .tab { color: #9A9184; }
body:not([data-theme="light"]) .tab:hover { color: #EFD9A6; background: rgba(232, 196, 120, .07); }
body:not([data-theme="light"]) .tab.active { color: #F7E7BB; background: rgba(232, 196, 120, .10); }
body:not([data-theme="light"]) .tab.active::after { background: #E9C767 !important; }

/* 主内容容器 */
body:not([data-theme="light"]) .main,
body:not([data-theme="light"]) main { background: transparent; }
body:not([data-theme="light"]) .panel {
  border-color: rgba(232, 196, 120, .10);
}
body:not([data-theme="light"]) ::-webkit-scrollbar { width: 10px; height: 10px; }
body:not([data-theme="light"]) ::-webkit-scrollbar-track { background: #0a0a0b; }
body:not([data-theme="light"]) ::-webkit-scrollbar-thumb {
  background: rgba(232, 196, 120, .16); border-radius: 6px; border: 2px solid #0a0a0b;
}
body:not([data-theme="light"]) ::-webkit-scrollbar-thumb:hover { background: rgba(232, 196, 120, .3); }

/* 仪表盘独占宽屏：仅在仪表盘激活时放宽主容器，其他页面保持 1280 不变 */
main:has(> #dashboard.active) { max-width: 1560px; padding: 14px 20px 18px; }

/* ===== 黑金主题：补齐组件级残留蓝调（全局统一底板 #2，2026-11-09） ===== */
/* 以下组件此前硬编码蓝调（#2f81f7 / #3b82f6 / rgba(47,129,247,*)），在黑金底上仍显蓝。
   统一转金，确保「每个页面、每个组件」底板与强调色一致（浅色主题不受影响）。 */

/* 首页 Hero */
body:not([data-theme="light"]) .hero {
  background: radial-gradient(1200px 400px at 10% -20%, rgba(233,183,86,.12), transparent), var(--grad-panel);
  border-color: rgba(232,196,120,.18);
}
body:not([data-theme="light"]) .hero::after { background: radial-gradient(circle, rgba(233,183,86,.22), transparent 70%); }
body:not([data-theme="light"]) .hero-tag { background: rgba(233,183,86,.14); color: var(--accent); border-color: rgba(233,183,86,.4); }

/* 因子分析组件 */
body:not([data-theme="light"]) .fa-head:hover { background: rgba(233,183,86,.07); }
body:not([data-theme="light"]) .fa-bar > i { background: linear-gradient(90deg, rgba(233,183,86,.85), rgba(233,183,86,.35)); }
body:not([data-theme="light"]) .fa-row:hover { background: rgba(233,183,86,.05); }
body:not([data-theme="light"]) .fa-formula code { background: rgba(233,183,86,.10); color: var(--accent); }

/* 行情 HUD 终端风：四角刻度线 + 标题条 + accent 卡 */
body:not([data-theme="light"]) .hud-panel::before { border-top-color: rgba(233,183,86,.55); border-left-color: rgba(233,183,86,.55); }
body:not([data-theme="light"]) .hud-panel::after { border-bottom-color: rgba(233,183,86,.55); border-right-color: rgba(233,183,86,.55); }
body:not([data-theme="light"]) .hud-panel-h { background: linear-gradient(180deg, rgba(233,183,86,.07), transparent); }
body:not([data-theme="light"]) .hud-stat.accent { border-color: rgba(233,183,86,.45); }
body:not([data-theme="light"]) .hud-stat.accent b { color: #e9b756; }
body:not([data-theme="light"]) .hud-stat.accent::after { background: linear-gradient(90deg, #e9b756, transparent); }

/* 协作卡片 */
body:not([data-theme="light"]) .cc-badge { background: rgba(233,183,86,.14); color: var(--accent); border-color: rgba(233,183,86,.35); }
body:not([data-theme="light"]) .cc-card .btn.cc-run { color: var(--accent); border-color: rgba(233,183,86,.45); background: rgba(233,183,86,.10); }
body:not([data-theme="light"]) .cc-card .btn.cc-run:hover { background: rgba(233,183,86,.22); color: #fff; }

/* 扫描进度圈 */
body:not([data-theme="light"]) .scan-progress.live { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(233,183,86,.25) inset; }
body:not([data-theme="light"]) .spinner-ring { border: 6px solid rgba(233,183,86,.18); border-top-color: var(--accent); }

/* 标签页激活下划线 / 悬停（去掉渐变里的蓝色 #58a6ff） */
body:not([data-theme="light"]) .tab:hover { background: rgba(233,183,86,.06); }
body:not([data-theme="light"]) .tab.active::after { background: linear-gradient(90deg, var(--accent), #f0c46a); }

/* 表格分隔线去蓝（原 rgba(40,49,66,.6) 偏冷） */
body:not([data-theme="light"]) .data-table td,
body:not([data-theme="light"]) .table-wrap table td,
body:not([data-theme="light"]) table td { border-bottom-color: rgba(232,196,120,.08); }

/* 模态卡片描边金调，避免冷灰边 */
body:not([data-theme="light"]) .modal-card { border: 1px solid rgba(232,196,120,.16); }

/* 智能选股·自动引擎：蓝色光流/冷蓝底统一转金黑金（覆盖 .ae-live 变量集） */
body:not([data-theme="light"]) .ae-live {
  --ae-bg: #0c0b0a; --ae-bg2: #100f0d; --ae-line: rgba(233,183,86,.10);
  --ae-txt: #ece6da; --ae-txt2: #b8ad97; --ae-txt3: #6f675a;
  --ae-flow: #e9b756; --ae-flow2: #f0c46a; --ae-hot: #ff6a3d;
}
body:not([data-theme="light"]) .ae-scan-bar { background: rgba(233,183,86,.15); }
body:not([data-theme="light"]) .ae-funnel .ae-stage:first-child { background: rgba(233,183,86,.12); border-color: var(--ae-flow); }
body:not([data-theme="light"]) .ae-funnel .ae-stage:first-child .as-val { color: var(--ae-flow2); }
body:not([data-theme="light"]) #ae-cands .ae-row-new { background: rgba(233,183,86,.16); border-left-color: var(--ae-flow2); }

/* ===== 浅色主题：全自动执行动态沙盘适配（2026-11-22）：深蓝底板转白底浅灰，沿用浅色页面卡片语言 ===== */
body[data-theme="light"] .ae-live {
  --ae-bg:#ffffff; --ae-bg2:#f6f8fc; --ae-line:#dde3ed;
  --ae-txt:#1e2733; --ae-txt2:#5a6675; --ae-txt3:#8a93a6;
  --ae-up:#d92b3a; --ae-dn:#0e9f6e;
  --ae-flow:#1f6feb; --ae-flow2:#3b82f6; --ae-hot:#e8590c;
}
/* 网格河道：淡中性网格，去掉深蓝辉光 */
body[data-theme="light"] .ae-live-grid {
  background:
    radial-gradient(circle at 50% 46%, rgba(31,111,235,.05), transparent 52%),
    repeating-linear-gradient(0deg, transparent 0 21px, rgba(16,24,40,.04) 21px 22px),
    repeating-linear-gradient(90deg, transparent 0 21px, rgba(16,24,40,.04) 21px 22px);
}
/* 漏斗：常驻蓝辉光脉冲收敛为淡边框，关闭脉冲动画 */
body[data-theme="light"] .ae-funnel { box-shadow: 0 0 0 1px rgba(31,111,235,.18); animation: none; }
body[data-theme="light"] .ae-funnel .ae-stage:first-child { background: rgba(31,111,235,.08); }
/* 面板：去蓝辉光 inset，白/浅灰底 + 普通细边框 */
body[data-theme="light"] .ae-live .ae-panel { border-color: var(--border); box-shadow: none; }
body[data-theme="light"] .ae-live .ae-panel-h { color: var(--text); border-bottom-color: var(--border); }
body[data-theme="light"] .ae-live .ae-panel-stream { border-color: var(--border); }
body[data-theme="light"] .ae-live .ae-flow { filter: none; }
/* 滚动条中性化 */
body[data-theme="light"] .ae-panel-body::-webkit-scrollbar-track { background: rgba(16,24,40,.05); }
body[data-theme="light"] .ae-panel-body::-webkit-scrollbar-thumb { background: rgba(16,24,40,.18); }
body[data-theme="light"] .ae-panel-body::-webkit-scrollbar-thumb:hover { background: rgba(16,24,40,.3); }
/* 表格行隔色/hover 用浅色中性 */
body[data-theme="light"] .ae-row:nth-child(even) { background: rgba(16,24,40,.03); }
body[data-theme="light"] .ae-row:hover { background: rgba(31,111,235,.08); }
/* 组合融合徽标：金棕加深，白底可读 */
body[data-theme="light"] .ar-combo-badge { color:#b8860b; border-color: rgba(184,134,11,.4); background: rgba(184,134,11,.10); }
body[data-theme="light"] .ar-combo .ar-code { color:#b8860b; }
/* 合规/审核条：状态色在白底加深 */
body[data-theme="light"] .ae-guard-danger { color:#d92b3a; }
body[data-theme="light"] .ae-guard-warn { color:#e8590c; }
body[data-theme="light"] .ae-guard-mild { color:#b8860b; }
body[data-theme="light"] .ae-guard-safe { color:#0e9f6e; }
body[data-theme="light"] .ae-guard-info { color:#1f6feb; }
body[data-theme="light"] .ae-guard-router b { color: var(--text); }
/* 剔除/降权标签加深 */
body[data-theme="light"] .ae-row-excluded .ar-amt,
body[data-theme="light"] .ar-ex-tag { color:#d92b3a; }
body[data-theme="light"] .ae-row-pen .ar-amt,
body[data-theme="light"] .ar-pen-tag { color:#b8860b; }
/* guard 标签 / 路由条 / 层级标：白底加深 */
body[data-theme="light"] .ae-guard-tag { background: rgba(31,111,235,.12); color:#1f6feb; }
body[data-theme="light"] .ae-guard-danger .ae-guard-regime b { color:#d92b3a; }
body[data-theme="light"] .ae-guard-warn .ae-guard-regime b { color:#e8590c; }
body[data-theme="light"] .ae-guard-mild .ae-guard-regime b { color:#b8860b; }
body[data-theme="light"] .ae-guard-safe .ae-guard-regime b { color:#0e9f6e; }
body[data-theme="light"] .ae-guard-info .ae-guard-regime b { color:#1f6feb; }
body[data-theme="light"] .ae-guard-tier { background: rgba(16,24,40,.06); color:#5a6675; border-color: rgba(16,24,40,.12); }
body[data-theme="light"] .ae-guard-router { background: rgba(31,111,235,.08); color:#1f6feb; border-color: rgba(31,111,235,.25); }
body[data-theme="light"] .ae-guard-router b { color:#1e2733; }
body[data-theme="light"] .ae-guard-router-factors { color:#5a6675; }
/* 组合融合条：金棕加深，白底可读 */
body[data-theme="light"] .ae-combo-bar { background: rgba(184,134,11,.07); border-bottom-color: rgba(184,134,11,.3); }
body[data-theme="light"] .ae-combo-bar.on { background: rgba(184,134,11,.10); }
body[data-theme="light"] .ae-combo-bar-h,
body[data-theme="light"] .ae-combo-case { color:#b8860b; }
body[data-theme="light"] .ae-combo-chip { background: rgba(184,134,11,.12); border-color: rgba(184,134,11,.35); color:#8a6410; }
body[data-theme="light"] .ae-combo-chip b { color:#6b4e0a; }
body[data-theme="light"] .ae-combo-empty { color:#8a93a6; }
/* 扫描进度条：轨道中性化，去发光阴影 */
body[data-theme="light"] .ae-scan-bar { background: rgba(16,24,40,.08); }
body[data-theme="light"] .ae-scan-bar > i,
body[data-theme="light"] .ae-scan-bar.done > i { box-shadow: none; }

/* regime EMA 标签去蓝 */
body:not([data-theme="light"]) .ra-ema-tag { background: rgba(233,183,86,.14); color: var(--text-dim); }
/* regime 默认点/标签去冷灰，转暖中性 */
body:not([data-theme="light"]) .ra-regime .ra-regime-dot { background: #b8ad97; box-shadow: 0 0 0 3px rgba(184,173,151,.18); }
body:not([data-theme="light"]) .ra-regime .ra-regime-bias { background: rgba(184,173,151,.16); }

/* 研究问卷难度字去蓝渐变 */
body:not([data-theme="light"]) .quiz-lvl { background: linear-gradient(135deg, #e9b756, #d4a23e); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 治理（数据可信）强调色也统一为金 */
body:not([data-theme="light"]) main.governance-mode[data-gov="trust"] { --gv: #e9b756; --gv-soft: rgba(233,183,86,.13); --gv-line: rgba(233,183,86,.32); }

/* ============================================================================
   仪表盘 · 浅色主题适配（2026-11-09）——切到「浅色」时仪表盘跟随变浅。
   调色板与全站浅色主题一致：白卡 + 深字 + 深金强调（保证白底可读），
   涨红 #d92b3a / 跌绿 #0e9f6e 与浅色语义色统一。仅作用域 #dashboard。
   ============================================================================ */
body[data-theme="light"] #dashboard.panel {
  background: #f3f5f9; color: #1e2733;
  --d-bg: #f3f5f9;
  --d-gold: #a0731c;
  --d-gold-2: #8a6214;
  --d-line: var(--border);
  --d-line-2: rgba(16, 24, 40, .20);
  --d-text: #1e2733;
  --d-text-2: #4c5563;
  --d-mute: #7a8291;
  --d-up: #d92b3a;
  --d-down: #0e9f6e;
}
body[data-theme="light"] #dashboard .db-fx-grid {
  background-image:
    linear-gradient(to right, rgba(30, 40, 60, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 40, 60, .05) 1px, transparent 1px);
}
body[data-theme="light"] #dashboard .db-fx-glow {
  background:
    radial-gradient(640px 330px at 11% -8%, rgba(214, 168, 74, .10), transparent 62%),
    radial-gradient(720px 380px at 90% -12%, rgba(214, 168, 74, .055), transparent 66%);
}
body[data-theme="light"] #dashboard .db-fx-particles { opacity: .28; }
body[data-theme="light"] #dashboard .db-panel {
  background: var(--panel);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 20px 44px -34px rgba(16, 24, 40, .18);
}
body[data-theme="light"] #dashboard .db-statusbar {
  background: var(--panel);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 20px 44px -34px rgba(16, 24, 40, .18);
}
body[data-theme="light"] #dashboard .db-status-v { color: #a0731c; }
body[data-theme="light"] #dashboard .db-status-item--ok { color: #0b8a5c; }
body[data-theme="light"] #dashboard .db-status-item--ok .db-pulse { background: #0e9f6e; }
body[data-theme="light"] #dashboard .db-badge {
  background: rgba(190, 140, 40, .08);
  border-color: rgba(190, 140, 40, .30);
  color: #8a6214;
}
body[data-theme="light"] #dashboard .db-badge-dot { box-shadow: 0 0 0 3px rgba(190, 140, 40, .14), 0 0 10px rgba(190, 140, 40, .45); }
body[data-theme="light"] #dashboard .db-h1 { color: #1e2733; }
body[data-theme="light"] #dashboard .db-curve-t { color: #4c5563; }
body[data-theme="light"] #dashboard .db-curve-v { color: #1e2733; }
body[data-theme="light"] #dashboard .db-btn-ghost {
  background: rgba(30, 40, 60, .03); color: #3d4654;
  border-color: var(--border);
}
body[data-theme="light"] #dashboard .db-btn-ghost:hover { background: var(--row-hover); border-color: var(--border); }
body[data-theme="light"] #dashboard .db-live {
  border-color: rgba(217, 43, 58, .38); background: rgba(217, 43, 58, .07); color: #c2212f;
}
body[data-theme="light"] #dashboard .db-lg-dash { border-top-color: rgba(90, 102, 117, .50); }
body[data-theme="light"] #dashboard .db-kpi {
  background: var(--panel-2);
  border-color: var(--border);
  box-shadow: 0 10px 26px -22px rgba(16, 24, 40, .18);
}
body[data-theme="light"] #dashboard .db-kpi:hover { box-shadow: 0 22px 40px -30px rgba(16, 24, 40, .22); }
body[data-theme="light"] #dashboard .db-kpi--warn::before { background: #c98f1e; box-shadow: 0 0 10px rgba(201, 143, 30, .40); }
body[data-theme="light"] #dashboard .db-kpi--warn .db-kpi-v { color: #a0731c; text-shadow: none; }
body[data-theme="light"] #dashboard .db-kpi--up .db-kpi-v,
body[data-theme="light"] #dashboard .db-kpi--green .db-kpi-v,
body[data-theme="light"] #dashboard .db-kpi--gold .db-kpi-v,
body[data-theme="light"] #dashboard .db-big--gold,
body[data-theme="light"] #dashboard .db-big.up,
body[data-theme="light"] #dashboard .db-big.down { text-shadow: none; }
body[data-theme="light"] #dashboard .db-ph { border-bottom-color: var(--border); }
body[data-theme="light"] #dashboard .db-ph-t { color: #1e2733; }
body[data-theme="light"] #dashboard .db-pill-ok { background: rgba(14, 159, 110, .08); border-color: rgba(14, 159, 110, .32); color: #0b8a5c; }
body[data-theme="light"] #dashboard .db-pill-mute { background: rgba(30, 40, 60, .04); border-color: var(--border); }
body[data-theme="light"] #dashboard .db-sig-note {
  background: var(--panel-2);
  border-color: var(--border); color: var(--text-dim);
}
body[data-theme="light"] #dashboard .sig-row { background: var(--panel-2); border-color: var(--border); }
body[data-theme="light"] #dashboard .sig-row:hover { background: var(--row-hover); border-color: var(--border); }
body[data-theme="light"] #dashboard .sig-act--buy { background: rgba(217, 43, 58, .10); color: #c2212f; border-color: rgba(217, 43, 58, .36); }
body[data-theme="light"] #dashboard .sig-act--sell { background: rgba(14, 159, 110, .10); color: #0b8a5c; border-color: rgba(14, 159, 110, .34); }
body[data-theme="light"] #dashboard .sig-act--hold { background: rgba(190, 140, 40, .12); color: #8a6214; border-color: rgba(190, 140, 40, .34); }
body[data-theme="light"] #dashboard .sig-nm { color: #1e2733; }
body[data-theme="light"] #dashboard .sig-meta b { color: #4c5563; }
body[data-theme="light"] #dashboard .sig-bar { background: rgba(30, 40, 60, .09); }
body[data-theme="light"] #dashboard .sig-bar--buy i { background: linear-gradient(90deg, rgba(217, 43, 58, .5), #d92b3a); box-shadow: none; }
body[data-theme="light"] #dashboard .sig-bar--sell i { background: linear-gradient(90deg, rgba(14, 159, 110, .5), #0e9f6e); box-shadow: none; }
body[data-theme="light"] #dashboard .sig-bar--hold i { background: linear-gradient(90deg, rgba(190, 140, 40, .45), #c99a2e); box-shadow: none; }
body[data-theme="light"] #dashboard .dp-row:nth-child(even) { background: var(--zebra); }
body[data-theme="light"] #dashboard .dp-row:hover { background: var(--row-hover); }
body[data-theme="light"] #dashboard .dp-name { color: #1e2733; }
body[data-theme="light"] #dashboard .dp-badge { background: rgba(190, 140, 40, .11); border-color: rgba(190, 140, 40, .34); color: #8a6214; }
body[data-theme="light"] #dashboard .dp-out { background: rgba(30, 40, 60, .05); border-color: rgba(30, 40, 60, .13); color: #7a8291; }
body[data-theme="light"] #dashboard .dp-chg.up { color: #c2212f; background: rgba(217, 43, 58, .10); }
body[data-theme="light"] #dashboard .dp-chg.down { color: #0b8a5c; background: rgba(14, 159, 110, .10); }
body[data-theme="light"] #dashboard .dp-chg.flat { color: #7a8291; background: rgba(30, 40, 60, .05); }
body[data-theme="light"] #dashboard .dp-score { color: #5a6675; }
body[data-theme="light"] #dashboard .dp-score b { color: #a0731c; }
body[data-theme="light"] #dashboard .dp-score-out { color: #7a8291; }
body[data-theme="light"] #dashboard .db-empty { border-color: var(--border); background: var(--panel-2); }
body[data-theme="light"] #dashboard .db-empty-ic { background: rgba(190, 140, 40, .08); border-color: rgba(190, 140, 40, .32); box-shadow: 0 0 14px rgba(190, 140, 40, .12); }
body[data-theme="light"] #dashboard .db-empty-t { color: #1e2733; }
body[data-theme="light"] #dashboard .db-pf b { color: #4c5563; }

/* 顶栏 · 浅色模式（2026-11-09）：两套主题下顶栏均保持深色（专业终端惯例），
   但浅色下此前回退到 v2 旧蓝调（navy 深蓝 + 蓝 Logo），与黑金品牌不符——
   统一为黑金色相 + 金色 Logo，与深色模式顶栏同款。 */
/* 顶栏 · 浅色主题（2026-11-09 修订）：顶栏跟随主题变浅，与站内浅色一致。
   黑金模式下的深色顶栏（body:not([data-theme="light"]) 块）保持不变。 */
body[data-theme="light"] .topbar {
  background: linear-gradient(90deg, #ffffff 0%, #f3f6fb 100%) !important;
  border-bottom: 1px solid rgba(160, 125, 50, .18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 10px rgba(90, 70, 20, .06);
}
body[data-theme="light"] .topbar .brand-text h1 { color: #1e2733; }
body[data-theme="light"] .topbar .brand-text p { color: #7a8291; }
/* 官方 Logo：保留金色品牌识别 */
body[data-theme="light"] .topbar .logo {
  background: linear-gradient(135deg, #e9b756, #c99a2e) !important;
  box-shadow: 0 2px 8px rgba(190, 140, 40, .28);
}
/* 右侧胶囊按钮（主题切换 / 退出） */
body[data-theme="light"] .topbar .theme-btn,
body[data-theme="light"] .topbar .user-menu .btn.btn-sm {
  background: rgba(30, 40, 60, .04);
  border-color: rgba(160, 125, 50, .28);
  color: #3d4654;
}
body[data-theme="light"] .topbar .theme-btn:hover,
body[data-theme="light"] .topbar .user-menu .btn.btn-sm:hover {
  background: rgba(190, 140, 40, .10); color: #1e2733; border-color: rgba(190, 140, 40, .5);
}
/* 兜底 badge（通道/引擎，已隐藏） */
body[data-theme="light"] .topbar .badge {
  background: rgba(30, 40, 60, .04); border-color: rgba(160, 125, 50, .25); color: #55606f;
}
body[data-theme="light"] .topbar .live-pill { color: #3d4654; }
body[data-theme="light"] .topbar #mode-badge {
  border-color: rgba(160, 125, 50, .30); color: #8a6214; background: rgba(190, 140, 40, .10);
}
body[data-theme="light"] .topbar #mode-badge.mode-live {
  border-color: rgba(14, 159, 110, .45); color: #0b8a5c; background: rgba(14, 159, 110, .08);
}
body[data-theme="light"] .topbar .badge-broker { color: #0b8a5c; border-color: rgba(14, 159, 110, .40); }
/* 用户名 / 风险徽章 */
body[data-theme="light"] .topbar .um-name { color: #1e2733; }
body[data-theme="light"] .topbar .um-badge {
  background: rgba(30, 40, 60, .05); border-color: rgba(160, 125, 50, .26); color: #55606f;
}
body[data-theme="light"] .topbar .um-risk {
  background: rgba(190, 140, 40, .10); border-color: rgba(190, 140, 40, .5); color: #8a6214;
}
body[data-theme="light"] .topbar .um-risk:hover { border-color: rgba(190, 140, 40, .8); color: #6f4f12; }
/* 身份切换胶囊 */
body[data-theme="light"] .topbar .um-switch { background: rgba(30, 40, 60, .05); border-color: rgba(160, 125, 50, .24); }
body[data-theme="light"] .topbar .um-sw-btn { color: #7a8291; }
body[data-theme="light"] .topbar .um-sw-btn:hover { color: #1e2733; }
body[data-theme="light"] .topbar .um-sw-btn.is-on {
  background: linear-gradient(135deg, #e9b756, #c99a2e); color: #2a2206;
  box-shadow: 0 1px 6px rgba(190, 140, 40, .4);
}
/* 用户头像触发器 */
body[data-theme="light"] .topbar .um-trigger {
  background: rgba(30, 40, 60, .04); border-color: rgba(160, 125, 50, .26);
}
body[data-theme="light"] .topbar .um-trigger:hover { border-color: rgba(190, 140, 40, .55); background: rgba(190, 140, 40, .08); }
body[data-theme="light"] .topbar .um-caret { border-top-color: #7a8291; }

/* 用户菜单下拉面板：浅色 */
body[data-theme="light"] .topbar .um-panel {
  background: #ffffff; border: 1px solid rgba(160, 125, 50, .20); box-shadow: 0 14px 40px rgba(40, 30, 10, .14);
}
body[data-theme="light"] .topbar .um-panel-name { color: #1e2733; }
body[data-theme="light"] .topbar .um-panel-role { color: #7a8291; }
body[data-theme="light"] .topbar .um-panel-divider { background: rgba(30, 40, 60, .08); }
body[data-theme="light"] .topbar .um-row-label { color: #9a8f73; }
body[data-theme="light"] .topbar .um-panel .um-switch { background: rgba(30, 40, 60, .05); border-color: rgba(160, 125, 50, .22); }
body[data-theme="light"] .topbar .um-item { color: #3d4654; }
body[data-theme="light"] .topbar .um-item:hover { background: rgba(190, 140, 40, .08); color: #1e2733; }
body[data-theme="light"] .topbar .um-item .um-item-ic { color: #7a8291; }
body[data-theme="light"] .topbar .um-item:hover .um-item-ic { color: #8a6214; }
body[data-theme="light"] .topbar .um-item.danger { color: #c0233a; }
body[data-theme="light"] .topbar .um-item.danger .um-item-ic { color: #c0233a; }
body[data-theme="light"] .topbar .um-item.danger:hover { background: rgba(192, 35, 58, .08); color: #e0304a; }

/* 行情跑马灯：浅色 */
body[data-theme="light"] .live-strip {
  background: #f4f6fb; border-top: 1px solid rgba(160, 125, 50, .14); border-bottom: 1px solid rgba(160, 125, 50, .14);
}
body[data-theme="light"] .live-strip::before { background: linear-gradient(90deg, #f4f6fb, transparent); }
body[data-theme="light"] .live-strip::after { background: linear-gradient(-90deg, #f4f6fb, transparent); }
body[data-theme="light"] .live-strip .tk-name { color: #9a8f73; }
body[data-theme="light"] .live-strip .tk-val { color: #1e2733; }
body[data-theme="light"] .live-strip .tk-item { border-right-color: rgba(160, 125, 50, .10); }

/* ============================================================================
   仪表盘第三行 · 固定高度 + 内部滚动（2026-11-09）
   「仓位引擎 · 实时信号」与「本轮候选 · 全市场扫描」两张卡定死高度，
   数据超出时内容区自动出竖向滚动条；头部 / 说明条 / 脚注保持钉住不滚。
   ============================================================================ */
#dashboard .db-sig-panel, #dashboard .db-pool-panel { height: 520px; }
#dashboard .db-sig-list, #dashboard .db-pool-body {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: 5px;
  scrollbar-width: thin; scrollbar-color: rgba(233, 183, 86, .30) transparent;
}
#dashboard .db-sig-list::-webkit-scrollbar, #dashboard .db-pool-body::-webkit-scrollbar { width: 6px; }
#dashboard .db-sig-list::-webkit-scrollbar-track, #dashboard .db-pool-body::-webkit-scrollbar-track { background: transparent; }
#dashboard .db-sig-list::-webkit-scrollbar-thumb, #dashboard .db-pool-body::-webkit-scrollbar-thumb {
  background: rgba(233, 183, 86, .26); border-radius: 3px;
}
#dashboard .db-sig-list::-webkit-scrollbar-thumb:hover, #dashboard .db-pool-body::-webkit-scrollbar-thumb:hover { background: rgba(233, 183, 86, .45); }
/* 浅色主题：滚动条转中性暖灰 */
body[data-theme="light"] #dashboard .db-sig-list, body[data-theme="light"] #dashboard .db-pool-body {
  scrollbar-color: rgba(120, 110, 90, .35) transparent;
}
body[data-theme="light"] #dashboard .db-sig-list::-webkit-scrollbar-thumb, body[data-theme="light"] #dashboard .db-pool-body::-webkit-scrollbar-thumb { background: rgba(120, 110, 90, .30); }
body[data-theme="light"] #dashboard .db-sig-list::-webkit-scrollbar-thumb:hover, body[data-theme="light"] #dashboard .db-pool-body::-webkit-scrollbar-thumb:hover { background: rgba(120, 110, 90, .50); }
/* 窄屏（两卡竖排）也保持固定高度，行为一致 */
@media (max-width: 1180px) {
  #dashboard .db-sig-panel, #dashboard .db-pool-panel { height: 460px; }
}

/* ========== 白名单开关（账号管理，2026-11-12） ========== */
.wl-switch{position:relative;display:inline-block;width:36px;height:19px;border-radius:10px;background:#3a3a3e;border:1px solid #55555c;cursor:pointer;padding:0;transition:background .15s,border-color .15s;vertical-align:middle}
.wl-switch .knob{position:absolute;top:2px;left:2px;width:13px;height:13px;border-radius:50%;background:#c9c9cf;transition:left .15s,background .15s}
.wl-switch.on{background:rgba(233,183,86,.30);border-color:#e9b756}
.wl-switch.on .knob{left:19px;background:#e9b756}
.wl-switch:hover:not(:disabled){border-color:#f0c877}
.wl-switch:disabled{opacity:.5;cursor:not-allowed}
body[data-theme="light"] .wl-switch{background:#d8d8de;border-color:#b8b8c0}
body[data-theme="light"] .wl-switch.on{background:rgba(214,158,50,.25);border-color:#b8862e}
body[data-theme="light"] .wl-switch.on .knob{background:#b8862e}

/* ========== V2 研究课题库 / OOS 证据徽标（2026-11-12） ========== */
.ra-topics { border: 1px solid var(--border); border-radius: var(--radius, 10px);
  background: var(--bg-2); padding: 14px 16px; margin-bottom: 12px; }
.ra-topics-h { font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ra-topics-tag { font-size: 11px; font-weight: 500; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; }
.ra-topics-state { margin-left: auto; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 10px; }
.ra-topics-state.on { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
.ra-topics-state.off { color: var(--text-dim); background: color-mix(in srgb, var(--border) 60%, transparent); }
.ra-topics-sub { font-size: 11.5px; color: var(--text-dim); margin: 8px 0 12px; line-height: 1.6; }
.ra-topics-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px; }
.ra-topic { border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; background: color-mix(in srgb, var(--bg) 55%, var(--bg-2));
  opacity: .72; transition: opacity .15s, border-color .15s; }
.ra-topic.en { opacity: 1; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.ra-topic-head { display: flex; align-items: center; gap: 8px; }
.ra-topic-name { font-size: 13px; font-weight: 600; color: var(--text); }
.ra-topic-tag { font-size: 10px; color: var(--accent); border: 1px solid
  color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 3px; padding: 1px 5px; }
.ra-topic-tag.custom { color: var(--text-dim); border-color: var(--border); }
.ra-topic-sw { margin-left: auto; display: inline-flex; cursor: pointer; }
.ra-topic-sw input { display: none; }
.ra-topic-sw-track { width: 34px; height: 18px; border-radius: 9px; background: var(--bg);
  border: 1px solid var(--border); position: relative; transition: .2s; }
.ra-topic-sw-knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--text-dim); transition: .2s; }
.ra-topic-sw input:checked + .ra-topic-sw-track { background: color-mix(in srgb, var(--ok) 35%, transparent); border-color: var(--ok); }
.ra-topic-sw input:checked + .ra-topic-sw-track .ra-topic-sw-knob { left: 18px; background: var(--ok); }
.ra-topic-desc { font-size: 11px; color: var(--text-dim); margin: 7px 0; line-height: 1.55; }
.ra-topic-meta { font-size: 11px; color: var(--text); display: flex; gap: 8px;
  flex-wrap: wrap; align-items: center; }
.ra-topic-meta b { color: var(--accent); font-weight: 600; }
.ra-topic-ev { font-size: 10px; color: var(--text-dim); border: 1px dashed var(--border);
  border-radius: 3px; padding: 1px 5px; }
.ra-topic-src { font-size: 10px; color: var(--text-dim); margin-top: 5px; opacity: .8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-topics-foot { margin-top: 12px; display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; justify-content: space-between; }
.ra-topics-findings { font-size: 11.5px; color: var(--text-dim); }
.ra-topics-findings b { color: var(--text); }
.ra-topics-feedon { color: var(--ok); font-weight: 600; }
.ra-topics-add { display: flex; gap: 6px; flex-wrap: wrap; }
.ra-topics-add input { font-size: 11px; padding: 4px 8px; border: 1px solid var(--border);
  border-radius: 5px; background: var(--bg); color: var(--text); min-width: 130px; }
.ra-topics-add input::placeholder { color: var(--text-dim); }

/* 提案样本外证据徽标 */
.ra-prop-ev { font-size: 10.5px; margin-top: 6px; padding: 3px 8px; border-radius: 4px; }
.ra-prop-ev.pass { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.ra-prop-ev.fail { color: var(--warn, #e0a040); background: color-mix(in srgb, #e0a040 12%, transparent);
  border: 1px solid color-mix(in srgb, #e0a040 32%, transparent); }
.ra-prop-ev.neutral { color: var(--text-dim); background: color-mix(in srgb, var(--border) 45%, transparent); }
.ra-prop-fed { color: var(--ok); font-size: 10px; margin-left: 6px; }

/* P0 透明化：策略先验 vs 实际持仓（2026-11-13） */
.adv-prior { color: var(--text-dim); font-size: 11px; font-weight: 400; }
.adv-actual { color: var(--accent); font-size: 11.5px; }
body[data-theme="light"] .adv-actual { color: #9a6b12; }


/* P1 unified decision chip + sector ignition panel */
.qh-dec-chip { font-size: 11px; padding: 4px 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text-dim);
  white-space: nowrap; line-height: 1.4; }
.qh-dec-chip:hover { border-color: var(--accent); color: var(--text); }
.qh-dec-chip.hot { border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  color: var(--accent); }
.qh-dec-chip b { color: var(--text); font-weight: 600; }
.qh-dec-chip .qh-dec-hot { color: var(--up, #e05a5a); }
.qh-dec-panel { display: none; position: absolute; right: 16px; top: 56px; z-index: 900;
  width: 380px; max-width: 92vw; max-height: 70vh; overflow: auto;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2);
  box-shadow: 0 12px 36px rgba(0,0,0,.35); padding: 14px 16px; }
.qh-dec-panel.open { display: block; }
.qh-dec-ph { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--text); margin-bottom: 8px; }
.qh-dec-dim { font-size: 10.5px; color: var(--text-dim); }
.qh-dec-kv { font-size: 11.5px; color: var(--text-dim); margin-bottom: 10px; line-height: 1.6; }
.qh-dec-kv b { color: var(--accent); }
.qh-dec-sub { font-size: 11px; color: var(--text-dim); margin: 10px 0 6px; }
.qh-dec-row { display: grid; grid-template-columns: 1fr 68px 52px 62px; gap: 6px;
  align-items: center; font-size: 11.5px; padding: 5px 0;
  border-top: 1px solid var(--border); }
.qh-dec-nm { color: var(--text); font-weight: 600; }
.qh-dec-stage { color: var(--accent); }
.qh-dec-score { color: var(--text); text-align: right; }
.qh-dec-chg { color: var(--up, #e05a5a); text-align: right; }
.qh-dec-reason { margin: 10px 0 0; padding-left: 16px; font-size: 11px;
  color: var(--text-dim); line-height: 1.65; }

/* 精细买卖信号专版（持仓与委托页，2026-11-14）：与漏斗第6节点深度链接 */
.sig-board { margin: 16px 0 4px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-2, var(--panel)); }
.sig-board-hd { display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.sig-board-ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sig-board .qh-dec-kv { margin-bottom: 10px; }
.sig-board .table-wrap { max-height: 52vh; }
.sig-board .qh-dec-sub { margin-top: 10px; }
.sig-board table td { font-size: 11.5px; white-space: normal; }

/* 复盘确认弹窗两步内容 */
#sr-modal .modal-body { max-height: 66vh; }
#sr-modal .qh-dec-row { grid-template-columns: 1fr; border-top: 0; padding: 3px 0; }
#sr-modal .qh-dec-sub { line-height: 1.7; }

/* 逐股买卖打通表·买卖点（2026-11-19）：入场/止损/目标价参考，仅展示不下单 */
.hub-tp { margin-top: 3px; font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.hub-tp b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.hub-tp b.up { color: var(--up); }
.hub-tp b.down { color: var(--down); }

/* 委托与成交明细（2026-11-19）：锁定高度、超出内部滚动、表头固定
   417+ 条委托不再把整页拉长；表头 sticky 已在 .table-wrap table thead th 定义，
   这里给滚动容器固定高度即可让它生效。委托表与成交表分别独立滚动。 */
#tm-orders .table-wrap {
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;   /* 滚到底不带动整页 */
}
#tm-orders .table-wrap table thead th { z-index: 2; }
/* 明细标题与表格间距收紧，滚动条更明显 */
#tm-orders h4 { margin: 10px 0 6px; }
#tm-orders .table-wrap::-webkit-scrollbar { width: 9px; height: 9px; }
#tm-orders .table-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
#tm-orders .table-wrap::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* 当前持仓 / 仓位引擎（2026-11-19）：锁定高度、超出内部滚动、表头固定
   与委托明细同款体验；表头 sticky 已在全局定义，给容器固定高度即生效。
   顶部管控条(.tm-poscap)/汇总头(.pe-head)在最上方，滚回顶部即可操作。 */
#tm-positions, #tm-pe {
  max-height: 460px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#tm-positions table thead th, #tm-pe table thead th { z-index: 2; }
#tm-positions::-webkit-scrollbar, #tm-pe::-webkit-scrollbar { width: 9px; height: 9px; }
#tm-positions::-webkit-scrollbar-thumb, #tm-pe::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
#tm-positions::-webkit-scrollbar-thumb:hover, #tm-pe::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* 因子质量体检（2026-11-19）：相关性矩阵/IC显著性/影子诊断 */
.sb-quality { margin-top: 14px; }
.sb-q-tag { display:inline-block; margin-left:8px; padding:2px 9px; border-radius:20px;
  font-size:11px; font-weight:600; color:var(--dim); background:var(--panel); border:1px solid var(--border); }
.sb-q-sec { margin: 10px 0 16px; }
.sb-q-sec > b { display:block; margin-bottom:6px; font-size:13px; }
.sb-q-table { width:100%; border-collapse:collapse; font-size:12px; }
.sb-q-table th, .sb-q-table td { padding:5px 9px; border-bottom:1px solid var(--border); text-align:left; }
.sb-q-table th { color:var(--dim); font-weight:600; background:#f8fafc; }
.sb-q-flag { display:inline-block; padding:1px 7px; margin:1px 0; border-radius:5px; font-size:11px;
  background:rgba(77,124,255,.10); color:#1e40af; }
.sb-q-flag.bad { background:rgba(255,77,94,.10); color:var(--up); }
.sb-q-ok { color:var(--down); font-size:11px; }
.sb-q-base { color:var(--dim); font-size:10px; }
.sb-q-matrix td { text-align:center; font-variant-numeric:tabular-nums; }
.sb-q-matrix th { text-align:center; }
.sb-q-diag { color:var(--dim); }
.sb-q-hint { margin-top:6px; font-size:11px; color:var(--dim); }
.sb-up { color:var(--up); } .sb-down { color:var(--down); }
.sb-flip { display:inline-block; padding:1px 6px; margin-left:3px; border-radius:5px; font-size:10px;
  font-weight:600; color:var(--up); background:rgba(255,77,94,.12); }
/* 自适应反应速度 + 变更事件流（2026-11-20） */
.sb-adaptive { margin-top:14px; }
.sb-hint-inline { font-size:10px; font-weight:400; color:var(--dim); margin-left:6px; }
.sb-adp-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:9px; margin-bottom:8px; }
.sb-adp-cell { background:var(--bg,#f8fafc); border:1px solid var(--border); border-radius:8px; padding:9px 11px; }
.sb-adp-cell span { display:block; font-size:11px; color:var(--dim); }
.sb-adp-cell b { display:block; font-size:16px; margin:2px 0; }
.sb-adp-cell small { display:block; font-size:10px; color:var(--dim); }
.sb-adp-note { font-size:11px; color:var(--dim); line-height:1.7; padding:6px 2px; }
.sb-evline { display:flex; align-items:center; gap:9px; padding:6px 4px; border-bottom:1px solid var(--border); font-size:12px; }
.sb-evline b { font-variant-numeric:tabular-nums; color:var(--dim); font-weight:500; }
.sb-ev-gap { font-size:10px; color:var(--accent,#e9b756); }
.sb-ev-chg { display:flex; flex-wrap:wrap; gap:4px; }
.sb-ev-tag { display:inline-block; padding:1px 7px; border-radius:5px; font-size:11px;
  background:rgba(77,124,255,.10); color:#1e40af; }
/* 管理员双击账户下钻（2026-11-20） */
.admin-acct-row { cursor:pointer; }
.admin-acct-row:hover { background:rgba(233,183,86,.08); }
.aa-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin-bottom:14px; }
.aa-kpis > div { background:var(--bg,#f8fafc); border:1px solid var(--border); border-radius:8px; padding:10px 12px; }
.aa-kpis span { display:block; font-size:11px; color:var(--dim); }
.aa-kpis b { display:block; font-size:16px; margin-top:3px; }
.aa-h { font-size:13px; margin:16px 0 7px; padding-left:8px; border-left:3px solid var(--accent,#e9b756); }
#admin-acct-body .data-table { font-size:12px; }
#admin-acct-body .data-table td, #admin-acct-body .data-table th { padding:5px 8px; }
/* 全网扫描标题栏上移对齐交易监控（2026-11-20）：去掉 dash-block 的顶部空白带，
   使「全网扫描」标题与交易监控页标题一样紧贴顶部导航（标题左/控件右的 section-head 结构保留）。 */
#scan > .dash-block { margin-top: 0; padding-top: 0; border-top: 0; }

/* ============================================================================
   竖版平铺导航覆盖层（2026-11-22 v5.3）
   左侧固定竖栏：一级平铺、二级缩进可折叠；右侧主区左移、取消居中限宽。
   仅重组外壳几何，保留原有 .tab / .sr-mod / .gv-item 绑定、data-* 属性与黑金配色。
   ============================================================================ */

/* 外壳：纵向先排提示条，再横排「竖栏 + 主区」 */
#app-view { min-height: 100vh; display: flex; flex-direction: column; }
.app-shell { flex: 1 1 auto; display: flex; align-items: stretch; min-height: 0; }

/* ---- 左侧竖栏 ---- */
.side-nav {
  flex: 0 0 171px; width: 171px;
  background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; min-height: 0;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 14px 16px; border-bottom: 1px solid var(--border);
}
.nav-brand .logo { width: 36px; height: 36px; flex: none; overflow: hidden; border-radius: 10px; }
.nav-brand .logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.nav-brand .brand-text { min-width: 0; flex: 1; }
.nav-brand .brand-text h1 {
  font-size: 15px; margin: 0; font-weight: 700; letter-spacing: .3px;
  line-height: 1.25; white-space: nowrap;
}
.nav-brand .brand-text p {
  margin: 2px 0 0; font-size: 10px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav-menu {
  flex: 1 1 auto; overflow-y: auto;
  padding: 12px 10px; display: flex; flex-direction: column; gap: 2px;
}

/* 一级按钮：覆盖旧横版 .tab / .tab-grp-tabs .tab 样式 */
.nav-menu .tab {
  position: relative; display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 9px;
  padding: 9px 11px; color: var(--text-dim); font-size: 13px; cursor: pointer;
  font-family: inherit; transition: color .15s, background .15s, border-color .15s;
}
.nav-menu .tab:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav-menu .tab.active {
  color: var(--accent); font-weight: 600;
  background: rgba(233,183,86,.13); border-color: #5a4a1e;
}
.nav-menu .tab.active::after { content: none; }   /* 去掉旧横版下划线 */
.nav-menu .tab .caret {
  margin-left: auto; flex: none; width: 7px; height: 7px;
  border-right: 1.5px solid var(--text-dim); border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg); transition: transform .18s ease;
}
.nav-menu .tab.has-sub.collapsed .caret { transform: rotate(-45deg); }

/* 二级子树：缩进 + 左竖线，可折叠（hidden 属性 / .collapsed 双控） */
.nav-sub {
  margin: 1px 0 1px 16px; padding-left: 11px;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 1px;
}
.nav-sub[hidden] { display: none; }
.nav-sub.collapsed { display: none; }

/* 研究二级项（.sr-mod）在竖栏内重置为紧凑子项 */
.nav-sub .sr-mod {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: transparent; border: none; border-radius: 8px;
  color: var(--text-dim); font-size: 12.5px; text-align: left; width: 100%;
}
.nav-sub .sr-mod:hover { background: var(--panel); color: var(--text); }
.nav-sub .sr-mod.active { background: rgba(233,183,86,.08); border-color: transparent; }
.nav-sub .sr-mod .sr-mod-ic { width: 17px; height: 17px; background: none; border-radius: 0; color: var(--text-dim); }
.nav-sub .sr-mod.active .sr-mod-ic { background: none; color: var(--accent); }
.nav-sub .sr-mod .sr-mod-name { font-size: 12.5px; }

/* 治理二级（.gv-group / .gv-item）在竖栏内压缩 */
.nav-sub .gv-side-head { padding: 2px 8px 8px; margin-bottom: 4px; gap: 6px; }
.nav-sub .gv-side-title { font-size: 11px; white-space: nowrap; }
.nav-sub .gv-side-sub { display: none; }
.nav-sub .gv-group { gap: 1px; }
.nav-sub .gv-group-label { padding: 10px 10px 4px; }
.nav-sub .gv-item { gap: 8px; padding: 7px 10px; }
.nav-sub .gv-item-ic { width: 17px; height: 17px; background: none; border-radius: 0; }
.nav-sub .gv-item.active .gv-item-ic { background: none; color: var(--gv, var(--accent)); }
.nav-sub .gv-item-desc { display: none; }   /* 竖栏内收起描述，保持紧凑；口径由 title / data-hint 提供 */
.nav-sub .gv-side-foot { margin-top: 8px; padding: 10px 8px 0; font-size: 10.5px; }

/* 竖栏底部状态区：上排只读状态徽标，下排账号卡片 */
.nav-foot {
  padding: 10px 12px 12px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 11.5px; color: var(--text-dim);
}
.nav-foot .nf-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav-foot .badge { font-size: 11px; padding: 3px 9px; }
.nav-foot .nf-account { width: 100%; }

/* ---- 右侧主区：左移、取消 1280 居中限宽 ---- */
.stage { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.stage main { flex: 1 1 auto; min-width: 0; padding: 22px; max-width: none; margin: 0; }

/* 覆盖旧研究 / 治理双栏分栏：侧栏已移入竖栏，main 回到正常块级 */
main.research-mode, main.is-wide.research-mode,
main.governance-mode, main.is-wide.governance-mode {
  display: block; max-width: none; padding: 22px;
}
main.research-mode > .panel.active,
main.governance-mode > .panel.active { flex: none; padding: 0; }

/* 旧 .sr-side / .gv-side 作为 main 内浮动侧栏的几何重置（现已挂到 .nav-sub 内） */
.sr-side, .gv-side {
  flex: none; width: auto; align-self: auto;
  background: transparent; border-right: none; padding: 0;
  display: flex; flex-direction: column; gap: 1px; overflow: visible;
}
.sr-side[hidden], .gv-side[hidden] { display: none; }

/* 窄屏兜底：竖栏收窄，主区不被挤压 */
@media (max-width: 900px) {
  .side-nav { flex-basis: 147px; width: 147px; }
  .stage main { padding: 16px 14px; }
}

/* ===== 竖栏账号卡片（豆包式：整条触发器 + 分组下拉，向上弹出） ===== */
.nav-foot .user-menu { position: relative; width: 100%; display: block; }
.nav-foot .um-trigger {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; text-align: left;
  transition: border-color .15s, background .15s;
}
.nav-foot .um-trigger:hover { border-color: rgba(233,183,86,.45); background: var(--panel); }
.nav-foot .user-menu.open .um-trigger { border-color: rgba(233,183,86,.55); background: var(--panel); }
.nav-foot .um-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #e3b95c, #c9962e);
  color: #2a1f0a; font-size: 14px; font-weight: 700;
}
.nav-foot .um-avatar--lg { width: 34px; height: 34px; font-size: 15px; }
.nav-foot .um-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nav-foot .um-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-foot .um-sub { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-foot .um-caret { flex: none; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--text-dim); transition: transform .15s; }
.nav-foot .user-menu.open .um-caret { transform: rotate(180deg); }

.nav-foot .um-panel {
  display: none; position: absolute; left: 0; bottom: calc(100% + 8px);
  width: 232px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.5); overflow: hidden; z-index: 1200;
}
.nav-foot .user-menu.open .um-panel { display: block; }
.nav-foot .um-panel-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px 11px; }
.nav-foot .um-panel-id { min-width: 0; }
.nav-foot .um-panel-name { color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.nav-foot .um-panel-role { color: var(--text-dim); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-foot .um-panel-divider { height: 1px; background: var(--border); margin: 5px 0; }
.nav-foot .um-group-label { padding: 8px 15px 5px; color: var(--text-dim); font-size: 11px; letter-spacing: .5px; }
.nav-foot .um-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 15px; background: none; border: 0; cursor: pointer;
  color: var(--text); font-size: 13px; text-align: left; font-family: inherit;
}
.nav-foot .um-item:hover { background: var(--panel-2); }
.nav-foot .um-item .um-item-ic { display: inline-grid; place-items: center; color: var(--text-dim); flex: none; }
.nav-foot .um-item:hover .um-item-ic { color: var(--accent); }
.nav-foot .um-item-right { margin-left: auto; font-size: 11px; color: var(--text-dim); }
.nav-foot .um-item.danger { color: var(--up); }
.nav-foot .um-item.danger .um-item-ic { color: var(--up); }
.nav-foot .um-item.danger:hover { background: rgba(244,85,107,.1); }
.nav-foot .um-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; margin: 0 15px 8px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.nav-foot .um-sw-btn { font-size: 11px; padding: 3px 10px; border-radius: 10px; cursor: pointer; background: transparent; border: none; color: var(--text-dim); line-height: 1.4; font-family: inherit; }
.nav-foot .um-sw-btn:hover { color: var(--text); }
.nav-foot .um-sw-btn.is-on { background: var(--accent); color: #2a2206; }

/* 浅色主题覆盖 */
body[data-theme="light"] .nav-foot .um-trigger { background: rgba(30,40,60,.04); border-color: rgba(160,125,50,.26); }
body[data-theme="light"] .nav-foot .um-panel { background: #ffffff; border-color: rgba(160,125,50,.20); box-shadow: 0 14px 40px rgba(40,30,10,.14); }
body[data-theme="light"] .nav-foot .um-panel-name { color: #1e2733; }
body[data-theme="light"] .nav-foot .um-panel-role,
body[data-theme="light"] .nav-foot .um-group-label,
body[data-theme="light"] .nav-foot .um-item-right,
body[data-theme="light"] .nav-foot .um-item .um-item-ic { color: #7a8291; }
body[data-theme="light"] .nav-foot .um-item { color: #3d4654; }
body[data-theme="light"] .nav-foot .um-item:hover { background: rgba(190,140,40,.08); color: #1e2733; }
body[data-theme="light"] .nav-foot .um-switch { background: rgba(30,40,60,.05); border-color: rgba(160,125,50,.22); }
body[data-theme="light"] .nav-foot .um-sw-btn.is-on { background: linear-gradient(135deg, #e9b756, #c99a2e); color: #2a2206; }
body[data-theme="light"] .nav-foot .um-item.danger { color: #c0233a; }
body[data-theme="light"] .nav-foot .um-item.danger .um-item-ic { color: #c0233a; }
body[data-theme="light"] .nav-foot .um-item.danger:hover { background: rgba(192,35,58,.08); color: #e0304a; }

/* ============================================================
   全网自选 · AI 扫描 HUD 全息雷达（2026-11-22 参照设计稿重构，固定深色）
   作用域 #scan-modal.is-hud；原生 CSS，不依赖 Tailwind / 外部字体。
   ============================================================ */
#scan-modal.is-hud .modal-card {
  background: radial-gradient(circle at 50% 44%, #0E1B3D 0%, #060B19 58%, #03060E 100%);
  border-color: rgba(0, 240, 255, .18);
  color: #E2E8F0;
}
#scan-modal.is-hud .modal-title { color: #F1F5F9; }
#scan-modal.is-hud .modal-close { color: #94A3B8; }
#scan-modal.is-hud .modal-close:hover { background: rgba(0, 240, 255, .1); color: #00F0FF; }
#scan-modal.is-hud .modal-body { background: transparent; }
#scan-modal.is-hud .modal-foot { border-top-color: rgba(0, 240, 255, .14); }
#scan-modal.is-hud .modal-foot .hint { color: #94A3B8; }

/* HUD 阶段舞台 */
.hud-stage {
  position: relative; overflow: hidden; border-radius: 14px;
  min-height: 480px; padding: 18px 16px;
  background: radial-gradient(circle at 50% 44%, #0E1B3D 0%, #060B19 58%, #03060E 100%);
  border: 1px solid rgba(0, 240, 255, .14);
}
.hud-stage.hidden { display: none !important; }
.hud-bg-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hud-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-size: 44px 44px;
  background-image: linear-gradient(to right, rgba(0, 240, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, .035) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 88%);
          mask-image: radial-gradient(ellipse at center, black 45%, transparent 88%);
}

/* 三栏布局 */
.hud-layout { position: relative; z-index: 1; display: flex; align-items: stretch; gap: 22px; }
.hud-aside { width: 300px; flex: 0 0 300px; display: flex; flex-direction: column; gap: 14px; }
.hud-right .hud-feed { height: 100%; min-height: 320px; }

/* 玻璃拟态卡片 */
.hud-glass {
  position: relative; border-radius: 14px; padding: 16px;
  background: linear-gradient(145deg, rgba(13, 23, 48, .72) 0%, rgba(7, 13, 28, .85) 100%);
  border: 1px solid rgba(0, 240, 255, .16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hud-bracket { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.hud-b-tl { top: 0; left: 0; border-top: 2px solid rgba(0, 240, 255, .45); border-left: 2px solid rgba(0, 240, 255, .45); border-top-left-radius: 12px; }
.hud-b-tr { top: 0; right: 0; border-top: 2px solid rgba(0, 240, 255, .45); border-right: 2px solid rgba(0, 240, 255, .45); border-top-right-radius: 12px; }
.hud-b-bl { bottom: 0; left: 0; border-bottom: 2px solid rgba(0, 240, 255, .45); border-left: 2px solid rgba(0, 240, 255, .45); border-bottom-left-radius: 12px; }
.hud-b-br { bottom: 0; right: 0; border-bottom: 2px solid rgba(0, 240, 255, .45); border-right: 2px solid rgba(0, 240, 255, .45); border-bottom-right-radius: 12px; }

/* 左侧卡片 */
.hud-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hud-card-title { font-size: 12px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: #22D3EE; display: flex; align-items: center; gap: 6px; }
.hud-card-title-dim { color: #94A3B8; }
.hud-tag { font-size: 11px; font-family: ui-monospace, monospace; padding: 2px 8px; border-radius: 10px; border: 1px solid; }
.hud-tag-live { color: #34D399; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .25); }
.hud-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hud-glass .hud-stat { padding: 10px; border-radius: 10px; background: rgba(2, 6, 18, .6); border: 1px solid rgba(30, 41, 59, .8); }
.hud-stat-label { font-size: 11px; color: #94A3B8; }
.hud-stat-num { margin-top: 4px; font-size: 18px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; color: #F1F5F9; font-variant-numeric: tabular-nums; }
.hud-stat-hit { color: #34D399; text-shadow: 0 0 12px rgba(16, 185, 129, .5); }
.hud-phase { margin-top: 4px; font-size: 13px; color: #CFFAFE; min-height: 20px; }
.hud-elapsed { margin-top: 8px; font-size: 12px; font-family: ui-monospace, Consolas, monospace; color: #64748B; }

/* 中央雷达 */
.hud-radar-wrap { position: relative; flex: 0 0 auto; align-self: center; max-width: 540px; width: min(540px, 100%, 62vh); aspect-ratio: 1 / 1; height: auto; min-height: 0; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.hud-radar-halo { position: absolute; inset: 24px; border-radius: 50%; background: rgba(0, 240, 255, .06); filter: blur(40px); pointer-events: none; }
.hud-ring-outer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; pointer-events: none; animation: hudSpinSlow 36s linear infinite; }
.hud-ring-inner { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); opacity: .6; pointer-events: none; animation: hudSpinReverse 48s linear infinite; }
.hud-brackets { position: absolute; inset: 12px; pointer-events: none; }
.hud-radar-container { position: relative; width: 86%; aspect-ratio: 1 / 1; height: auto; min-height: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hud-radar-canvas { width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: 50%; display: block; }

/* 中心核心状态 */
.radar-center-core {
  position: absolute; z-index: 10; max-width: 85%; padding: 16px 24px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none;
  background: radial-gradient(circle at center, rgba(6, 12, 28, .84) 0%, rgba(6, 12, 28, .62) 68%, rgba(6, 12, 28, .1) 100%);
  border: 1px solid rgba(0, 240, 255, .2);
  box-shadow: 0 0 40px rgba(0, 240, 255, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hud-core-pulse { position: relative; width: 16px; height: 16px; margin-bottom: 8px; }
#corePulseRing { position: absolute; inset: 0; border-radius: 50%; background: rgba(0, 240, 255, .4); animation: hudPing 1.4s cubic-bezier(0, 0, .2, 1) infinite; }
#coreCenterDot { position: relative; display: block; width: 10px; height: 10px; margin: 3px; border-radius: 50%; background: #67E8F9; box-shadow: 0 0 12px #00F0FF; }
.hud-main-status { font-size: 22px; font-weight: 700; letter-spacing: .06em; color: #fff; text-shadow: 0 0 18px rgba(0, 240, 255, .55), 0 0 36px rgba(37, 99, 235, .35); transition: color .3s; }
.hud-phase-text { margin-top: 6px; font-size: 13px; color: rgba(207, 250, 254, .9); min-height: 20px; transition: opacity .3s; }
.hud-counter { margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(4, 8, 18, .75); border: 1px solid rgba(0, 240, 255, .25); display: flex; align-items: center; gap: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-variant-numeric: tabular-nums; }
.hud-counter-label { color: #94A3B8; }
.hud-counter-num { font-weight: 700; }
.hud-counter-num.hud-cyan { color: #67E8F9; }
.hud-counter-num.hud-emerald { color: #34D399; text-shadow: 0 0 14px rgba(16, 185, 129, .55); }
.hud-counter-sep, .hud-counter-dot { color: #475569; }

/* 右侧信号流 */
.hud-feed { display: flex; flex-direction: column; }
.hud-feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-shrink: 0; }
.hud-feed-title { font-size: 12px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: #34D399; display: flex; align-items: center; gap: 6px; }
.hud-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: hudPulse 1.6s ease-in-out infinite; }
.hud-feed-badge { font-size: 11px; font-family: ui-monospace, Consolas, monospace; color: #94A3B8; }
.hud-feed-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 2px; }
.hud-feed-list::-webkit-scrollbar { width: 5px; }
.hud-feed-list::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, .2); border-radius: 4px; }

.hud-feed-item { position: relative; flex: 0 0 auto; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 8px 13px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(16, 185, 129, .22); background: rgba(16, 185, 129, .045); line-height: 1.3; animation: hudFeedIn .32s cubic-bezier(.16, 1, .3, 1); transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease; }
.hud-feed-item::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 2px; border-radius: 2px; background: linear-gradient(180deg, rgba(52, 211, 153, .9), rgba(16, 185, 129, .2)); }
.hud-feed-item:hover { transform: translateX(2px); border-color: rgba(52, 211, 153, .4); background: rgba(16, 185, 129, .08); }
.hud-feed-item.is-gold { border-color: rgba(245, 158, 11, .38); background: rgba(245, 158, 11, .07); box-shadow: 0 0 14px rgba(245, 158, 11, .10); }
.hud-feed-item.is-gold::before { background: linear-gradient(180deg, rgba(251, 191, 36, .95), rgba(245, 158, 11, .25)); }
.hud-feed-item.is-gold:hover { border-color: rgba(245, 158, 11, .55); }
.hud-feed-item .hfi-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hfi-row { display: flex; align-items: baseline; min-width: 0; white-space: nowrap; }
.hud-feed-item .hfi-code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: #fff; font-size: 12.5px; flex: 0 0 auto; }
.hud-feed-item .hfi-name { color: #CBD5E1; margin-left: 6px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.hud-feed-item .hfi-tag { font-size: 10px; color: rgba(103, 232, 249, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 168px; }
.hud-feed-item .hfi-right { text-align: right; font-family: ui-monospace, Consolas, monospace; flex: 0 0 auto; display: flex; flex-direction: column; gap: 1px; }
.hud-feed-item .hfi-score-label { font-size: 9px; color: #94A3B8; letter-spacing: .08em; }
.hud-feed-item .hfi-score { font-size: 15px; font-weight: 700; color: #34D399; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hud-feed-item .hfi-score.is-gold { color: #FBBF24; text-shadow: 0 0 10px rgba(245, 158, 11, .45); }
.hud-feed-item .hfi-chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.hud-feed-item .hfi-chg.up { color: #F26D7A; }
.hud-feed-item .hfi-chg.down { color: #34D399; }
.hud-feed-item .hfi-sub { margin-top: 1px; font-size: 10px; font-weight: 600; opacity: .85; }
@keyframes hudFeedIn { from { opacity: 0; transform: translateX(10px) scale(.97); } to { opacity: 1; transform: translateX(0) scale(1); } }

/* 底部自动刷新栏（HUD 深色适配） */
#scan-modal.is-hud .scan-auto-bar { background: linear-gradient(145deg, rgba(13, 23, 48, .72), rgba(7, 13, 28, .85)); border-color: rgba(0, 240, 255, .18); }
#scan-modal.is-hud .sab-label { color: #CBD5E1; }
#scan-modal.is-hud .sab-select, #scan-modal.is-hud .sab-custom { background: rgba(4, 8, 18, .9); border-color: rgba(0, 240, 255, .3); color: #CFFAFE; }
#scan-modal.is-hud .sab-count { color: #67E8F9; }
#scan-modal.is-hud .sab-btn { border-color: rgba(0, 240, 255, .45); background: rgba(0, 240, 255, .1); color: #CFFAFE; }
#scan-modal.is-hud .sab-btn:hover { background: rgba(0, 240, 255, .2); color: #fff; }

/* HUD 动画 */
@keyframes hudSpinSlow { to { transform: rotate(360deg); } }
@keyframes hudSpinReverse { to { transform: rotate(-360deg); } }
@keyframes hudPing { 0% { transform: scale(1); opacity: .75; } 75%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes hudPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* 窄屏：侧栏折叠，雷达居中 */
@media (max-width: 1100px) {
  .hud-layout { flex-direction: column; align-items: center; }
  .hud-aside { width: 100%; flex: 1 1 auto; }
  .hud-left { display: none; }
  .hud-right { max-width: 420px; }
  .hud-radar-wrap { max-width: 420px; }
}

/* 全屏态：HUD 舞台撑满弹窗 */
#scan-modal.fs .hud-stage { min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
#scan-modal.fs .hud-layout { flex: 1 1 auto; }
#scan-modal.fs .hud-radar-wrap { width: min(540px, 60vh); }
#tm-sub-auto .section-head { justify-content: flex-end; }

/* ===== HUD 第二轮：头部状态点/品牌/副标题、扫描光带、底部状态点、完成态绿 ===== */
#scan-modal.is-hud .modal-head { gap: 14px; }
.hud-head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hud-status { position: relative; width: 12px; height: 12px; flex: 0 0 12px; }
.hud-status-dot { position: relative; display: block; width: 10px; height: 10px; margin: 1px; border-radius: 50%; background: #22D3EE; box-shadow: 0 0 10px rgba(34, 211, 238, .8); }
.hud-status-ping { position: absolute; inset: 0; border-radius: 50%; background: rgba(34, 211, 238, .45); animation: hudPing 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
.hud-head-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hud-title-row { display: flex; align-items: center; gap: 10px; }
.hud-subtitle { font-size: 10px; font-family: ui-monospace, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; color: #64748B; }
.hud-ellipsis { font-family: ui-monospace, Consolas, monospace; color: #67E8F9; }

.hud-scanline { position: absolute; left: 0; right: 0; top: -20%; height: 160px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 240, 255, .05) 45%, rgba(0, 240, 255, .12) 50%, rgba(0, 240, 255, .05) 55%, transparent 100%);
  animation: hudScanline 8s linear infinite; }
@keyframes hudScanline { 0% { top: -20%; } 100% { top: 120%; } }

.hud-foot-status { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hud-foot-dot { width: 8px; height: 8px; border-radius: 50%; background: #22D3EE; box-shadow: 0 0 8px rgba(34, 211, 238, .8); animation: hudPulse 1.6s ease-in-out infinite; flex: 0 0 8px; }

/* 完成态：全套转绿 */
#hud-status-dot.is-done, #hud-foot-dot.is-done { background: #34D399; box-shadow: 0 0 10px rgba(16, 185, 129, .8); }
#hud-status-ping.is-done { background: rgba(16, 185, 129, .45); }
#corePulseRing.is-done { background: rgba(16, 185, 129, .4); }
#coreCenterDot.is-done { background: #34D399; box-shadow: 0 0 12px #10B981; }
.hud-main-status.is-done { color: #ECFDF5; text-shadow: 0 0 18px rgba(16, 185, 129, .55), 0 0 36px rgba(16, 185, 129, .3); }
#feedBadge { color: #67E8F9; }
#feedBadge.is-done { color: #34D399; }

/* HUD 底部操作按钮：青蓝渐变流光 */
#scan-modal.is-hud #scan-modal-done {
  background: linear-gradient(135deg, rgba(0, 240, 255, .18), rgba(37, 99, 235, .3));
  border-color: rgba(0, 240, 255, .4);
  color: #E2E8F0;
  box-shadow: 0 0 16px rgba(0, 240, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}
#scan-modal.is-hud #scan-modal-done:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, .3), rgba(37, 99, 235, .42));
  color: #fff;
}

/* 多因子共振矩阵（命中池技术面强度，真实指标归一化） */
.hud-strength { margin-top: 12px; }
.hud-strength:first-of-type { margin-top: 0; }
.hud-strength-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.hud-strength-label { font-size: 12px; color: #CBD5E1; }
.hud-strength-val { font-size: 12px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; color: #67E8F9; font-variant-numeric: tabular-nums; }
.hud-strength-bar { height: 6px; border-radius: 999px; background: rgba(30, 41, 59, .8); overflow: hidden; }
.hud-strength-bar i { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }
#bar-momentum, #bar-breakout { background: linear-gradient(90deg, #2563EB, #00F0FF); }
#bar-volatility { background: linear-gradient(90deg, #059669, #34D399); }

/* 全市场覆盖池四宫格 */
.hud-pool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hud-pool { padding: 10px; border-radius: 10px; background: rgba(2, 6, 18, .6); border: 1px solid rgba(30, 41, 59, .8); }
.hud-pool-label { font-size: 11px; color: #94A3B8; }
.hud-pool-num { margin-top: 4px; font-size: 18px; font-weight: 700; font-family: ui-monospace, Consolas, monospace; color: #F1F5F9; font-variant-numeric: tabular-nums; }
.hud-pool-unit { font-size: 11px; color: #64748B; }
.hud-pool-hl { border-color: rgba(0, 240, 255, .3); background: rgba(0, 240, 255, .06); }
.hud-pool-hl .hud-pool-num { color: #67E8F9; }

/* 左栏卡片较多时可纵向滚动 */
.hud-left { overflow-y: auto; }
.hud-left::-webkit-scrollbar { width: 5px; }
.hud-left::-webkit-scrollbar-thumb { background: rgba(0, 240, 255, .2); border-radius: 4px; }

/* ===== 2026-11-22 方案甲：扫描规则分类折叠 + 已选计数（默认全部展开） ===== */
.chipgrp.sc-fold { display:block; border:1px solid var(--border); border-radius:9px; margin-bottom:9px; padding:0; overflow:hidden; background:var(--panel); }
.sc-fold-h { display:flex; align-items:center; gap:8px; padding:9px 12px; cursor:pointer; user-select:none; background:var(--panel-2, var(--panel)); border-bottom:1px solid var(--border); }
.sc-fold-h:hover { background:rgba(233,183,86,.06); }
.sc-fold-h .sc-fold-arrow { color:var(--text-dim); font-size:11px; width:12px; flex:none; }
.sc-fold-h .cgl { min-width:0; font-weight:600; font-size:12.5px; color:var(--text); }
.sc-fold-h .sc-selcnt { display:none; font-size:10.5px; color:#1a1206; background:var(--accent); border-radius:10px; padding:1px 8px; font-weight:600; }
.sc-fold-h .sc-selcnt.has { display:inline-block; }
.sc-fold-h .sc-fold-total { margin-left:auto; font-size:10.5px; color:var(--text-dim); }
.sc-fold-body { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:11px 12px; }

/* ===== 2026-11-22 方案甲补充：右侧已选清单 + 逻辑同屏 ===== */
#sc-rule-wrap { display:grid; grid-template-columns:minmax(0,1fr) 264px; gap:12px; align-items:start; }
#sc-rule-wrap > .field.wide { min-width:0; }
#sc-sel-panel { position:sticky; top:12px; background:var(--panel); border:1px solid rgba(233,183,86,.14); border-radius:10px; padding:12px; box-shadow:inset 0 1px 0 rgba(255,255,255,.03); }
.ssp-h { font-size:12.5px; font-weight:600; color:var(--text); margin-bottom:9px; display:flex; align-items:center; gap:7px; }
.ssp-h #ssp-n { font-size:10.5px; color:#1a1206; background:var(--accent); border-radius:10px; padding:1px 8px; font-weight:700; }
.ssp-logic { display:flex; flex-wrap:wrap; gap:5px; align-items:center; padding-bottom:9px; border-bottom:1px solid var(--border); margin-bottom:9px; }
.ssp-logic .seg { font-size:10.5px; padding:4px 8px; }
.ssp-logic input[type=number] { width:100%; font-size:11px; padding:5px 7px; background:var(--bg2); border:1px solid var(--border); border-radius:6px; color:var(--text); }
.ssp-list { max-height:280px; overflow:auto; }
.ssp-item { display:flex; align-items:center; gap:6px; font-size:11.5px; padding:6px 8px; background:var(--bg2); border:1px solid var(--border); border-radius:6px; margin-bottom:5px; }
.ssp-item .ssp-txt { flex:1; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ssp-item .ssp-x { color:var(--up); cursor:pointer; font-size:14px; line-height:1; opacity:.7; }
.ssp-item .ssp-x:hover { opacity:1; }
.ssp-empty { font-size:11.5px; color:var(--text-dim); padding:14px 4px; text-align:center; }
.ssp-foot { font-size:10px; color:var(--text-dim); margin-top:9px; padding-top:8px; border-top:1px solid var(--border); line-height:1.5; }
@media (max-width:1100px) { #sc-rule-wrap { grid-template-columns:1fr; } #sc-sel-panel { position:static; } }

/* ==========================================================================
   桌面壳（pywebview 无边框）：自绘标题栏 + 顶部/左侧边缘热区 + 侧栏抽屉
   仅在 body.is-desktop-shell（壳环境）下生效；浏览器访问不注入、不展示。
   ========================================================================== */

/* ---- 自绘标题栏（悬浮 overlay，默认隐藏，热区唤起） ---- */
body.is-desktop-shell #qh-titlebar {
  position: fixed; top: 0; left: 0; right: 0; height: 38px; z-index: 99990;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  transform: translateY(-102%); transition: transform .18s ease;
  -webkit-app-region: drag; user-select: none;
}
body.is-desktop-shell #qh-titlebar.show { transform: translateY(0); }

/* 常驻模式（关闭“标题栏自动隐藏”）：标题栏退出 fixed 悬浮，进入文档流顶部占位，
   导航与主区在其下方自适应排列，标题栏不再遮挡；品牌已在标题栏展示，隐藏导航重复品牌块。 */
body.is-desktop-shell.title-pinned #qh-titlebar {
  position: static; transform: none; box-shadow: none; z-index: auto;
}
body.is-desktop-shell.title-pinned #app-view { min-height: calc(100vh - 38px); }
body.is-desktop-shell.title-pinned .side-nav .nav-brand { display: none; }

.qh-tb-drag { display: flex; align-items: center; gap: 9px; height: 100%; padding-left: 12px; min-width: 0; }
.qh-tb-logo { width: 17px; height: 17px; flex: none; border-radius: 5px; background: var(--logo-grad); }
.qh-tb-title { font-size: 12.5px; font-weight: 600; color: var(--text); letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.qh-tb-actions { display: flex; align-items: center; gap: 2px; height: 100%; -webkit-app-region: no-drag; }
.qh-tb-btn {
  width: 44px; height: 100%; border: none; background: transparent; cursor: pointer;
  color: var(--text-dim); font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.qh-tb-btn:hover { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
.qh-tb-close:hover { background: var(--buy); color: #fff; }
.qh-tb-btn svg { width: 15px; height: 15px; }

/* ---- 边缘感应热区（标题栏/侧栏隐藏时仍保留窄条唤起） ---- */
body.is-desktop-shell #qh-top-zone {
  position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 99989;
}
body.is-desktop-shell #qh-left-zone {
  position: fixed; top: 0; left: 0; bottom: 0; width: 6px; z-index: 99989;
}

/* ---- 左侧导航竖栏：抽屉式自动隐藏 ---- */
body.is-desktop-shell .side-nav {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 99980;
  transform: translateX(-102%); transition: transform .2s ease;
  box-shadow: var(--shadow-lg);
}
body.is-desktop-shell.nav-open .side-nav { transform: translateX(0); }

/* 常驻模式（关闭“导航栏自动隐藏”）：导航退出 fixed 悬浮，回到 flex 静态占位，
   主区 .stage 自适应让出 171px 宽度，导航不再遮挡主版面。 */
body.is-desktop-shell.nav-pinned .side-nav {
  position: static; transform: none; box-shadow: none; z-index: auto;
}
body.is-desktop-shell.nav-pinned.nav-open .side-nav { transform: none; }

/* 侧栏展开时不遮挡其自身纵向滚动条；主区在侧栏隐藏后自然占满宽度 */
body.is-desktop-shell .side-nav .nav-menu { overflow-y: auto; }

/* 全屏态：标题栏/侧栏默认隐藏，仅靠上/左边缘热区唤起（同非全屏逻辑） */
body.is-desktop-shell.is-fs #qh-titlebar { /* 隐藏/唤起规则与默认一致 */ }

/* ---- 终端设置面板（右上角齿轮唤起，对标东财盯盘窗口设置） ---- */
body.is-desktop-shell .qh-set-panel {
  position: fixed; top: 44px; right: 10px; width: 272px; z-index: 99991;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); overflow: hidden; user-select: none;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
body.is-desktop-shell .qh-set-panel.open {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.qh-set-head {
  padding: 12px 14px 10px; font-size: 13px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border); letter-spacing: .3px;
}
.qh-set-body { padding: 4px 14px; }
.qh-set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; font-size: 12.5px; color: var(--text);
}
.qh-set-check { cursor: pointer; justify-content: flex-start; }
.qh-set-check input[type="checkbox"] {
  width: 15px; height: 15px; margin-right: 9px; flex: none;
  accent-color: var(--accent); cursor: pointer;
}
.qh-set-check span { flex: 1; }
.qh-set-label { color: var(--text-dim); flex: none; }
.qh-set-ctl { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
.qh-set-val { font-size: 12px; color: var(--text-dim); min-width: 38px; text-align: right; }
.qh-set-ver { border-top: 1px solid var(--border); margin-top: 4px; }
.qh-set-ver .qh-set-val { color: var(--text); font-weight: 600; min-width: 0; }
.qh-set-ctl input[type="range"] { width: 124px; accent-color: var(--accent); cursor: pointer; }
.qh-set-ctl select {
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 8px; font-size: 12px; cursor: pointer; outline: none;
}
.qh-set-foot {
  padding: 10px 14px 12px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
}
.qh-set-foot button {
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 8px; padding: 6px 13px; font-size: 12px; cursor: pointer; transition: all .12s;
}
.qh-set-foot button:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text);
  border-color: var(--accent);
}

/* 行业维度审计（2026-11-26） */
.sb-ind-status{padding:8px 12px;margin-bottom:10px;background:rgba(233,183,86,.06);border:1px solid rgba(233,183,86,.18);border-radius:6px;font-size:12px;line-height:1.9}
.sb-ind-status b{color:var(--accent,#e9b756)}
.sb-ind-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:6px 18px}
.sb-ind-row{display:flex;align-items:center;gap:8px;font-size:11.5px}
.sb-ind-name{width:80px;flex:none;color:var(--text,#ece6da);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-ind-bar{flex:1;height:8px;background:rgba(255,255,255,.06);border-radius:4px;overflow:hidden}
.sb-ind-bar i{display:block;height:100%;background:var(--accent,#e9b756);opacity:.6}
.sb-ind-val{width:96px;flex:none;text-align:right;color:var(--dim,#8c857a)}
/* ===== 2026-11-28 布局修复：扫描面板规则/因子/组合区跨满整行，消除右侧留白 ===== */
#sc-rule-wrap,
#sc-factor-wrap,
#sc-combo-wrap { grid-column: 1 / -1; }
/* ===== 2026-11-28 扫描面板标题行：标题左、启动按钮右 ===== */
.scan-head-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
.scan-head-row label { flex:1; min-width:0; margin:0; }
.scan-run-slot { flex:none; display:flex; align-items:center; gap:8px; }

/* ===== 2026-11-28 因子筛选：标准化 / 取前N名 行对齐平整 ===== */
.factor-opt-row { gap: 20px; }
.factor-opt-row label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.factor-opt-row select,
.factor-opt-row input { height: 32px; line-height: 30px; padding: 0 10px; width: auto; box-sizing: border-box; border-radius: 8px; font-size: 13px; }
.factor-opt-row input#sc-factor-topn { width: 72px; }
/* =====================================================================
   2026-11-28 自动交易 · HUD 版式（对照 自动交易_对照HUD预览 设计稿）
   作用域：全部收敛在 .ae-hud 内，不改动站点其它样式；整页浅色，
   仅中栏「科技舱」深底霓虹。
   ===================================================================== */
.ae-hud{
  overflow-x:hidden;
  --h-bg:#F4F6FA; --h-card:#FFFFFF; --h-bd:#E5EAF1; --h-bd2:#EFF3F8;
  --h-tx:#1B2330; --h-sub:#63707F; --h-mu:#8C97A6;
  --h-pri:#2F6BFF; --h-pri-s:#EEF3FF; --h-pri-l:#CBD9FF;
  --h-am:#B7791F; --h-am-s:#FCF6E9; --h-am-l:#EFDFBD;
  --h-red:#D8443C; --h-grn:#178E60;
  color:var(--h-tx); font-variant-numeric:tabular-nums;
}

/* ---------- ① 操作带 ---------- */
.ah-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0 8px;flex-wrap:nowrap}
.ah-bar-l{display:flex;align-items:center;gap:8px;min-width:0}
.ah-title{font-size:19px;font-weight:700;white-space:nowrap;color:var(--h-tx)}
.ah-pill{display:flex;align-items:center;gap:6px;font-size:12px;border-radius:999px;padding:3px 10px;white-space:nowrap;border:1px solid var(--h-bd);color:var(--h-mu);background:#fff}
.ah-pill .ah-dot{width:6px;height:6px;border-radius:50%;background:#C3CAD5}
.ah-pill.demo{color:#9A6A10;background:#FCF4E4;border-color:#EFDDB8}
.ah-pill.demo .ah-dot{background:#D79A2B;animation:ah-pl 2s infinite}
.ah-pill.on{color:#0E7B52;background:#EAF9F2;border-color:#BFEBD9}
.ah-pill.on .ah-dot{background:#22C07A;animation:ah-pl-g 2s infinite}
@keyframes ah-pl{0%{box-shadow:0 0 0 0 rgba(215,154,43,.35)}70%{box-shadow:0 0 0 7px rgba(215,154,43,0)}100%{box-shadow:0 0 0 0 rgba(215,154,43,0)}}
@keyframes ah-pl-g{0%{box-shadow:0 0 0 0 rgba(34,192,122,.35)}70%{box-shadow:0 0 0 7px rgba(34,192,122,0)}100%{box-shadow:0 0 0 0 rgba(34,192,122,0)}}
.ah-bar-r{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin-left:auto}
.ah-btn{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--h-pri);background:#fff;border:1px solid var(--h-pri-l);border-radius:7px;padding:7px 12px;cursor:pointer;transition:box-shadow .2s,background .2s}
.ah-btn:hover{background:var(--h-pri-s);box-shadow:0 2px 10px rgba(47,107,255,.15)}
.ah-btn:active{transform:translateY(1px)}
.ah-sw{position:relative;display:flex;align-items:center;font-size:11.5px;font-weight:600;color:#4A5563;background:#fff;border:1px solid var(--h-bd);border-radius:7px;padding:6px 10px 6px 36px;cursor:pointer}
.ah-sw::before{content:"";position:absolute;left:8px;top:50%;transform:translateY(-50%);width:22px;height:13px;border-radius:999px;background:#E2E7EF;transition:background .2s}
.ah-sw::after{content:"";position:absolute;left:10px;top:50%;transform:translateY(-50%);width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .2s}
.ah-sw[data-on="1"]{color:var(--h-pri);border-color:var(--h-pri-l);background:var(--h-pri-s)}
.ah-sw[data-on="1"]::before{background:var(--h-pri)}
.ah-sw[data-on="1"]::after{left:19px}
.ah-sw:disabled{opacity:.5;cursor:not-allowed}
.ah-inp{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--h-mu);background:#fff;border:1px solid var(--h-bd);border-radius:7px;padding:2px 8px;height:30px;flex:0 0 auto}
.ah-inp input{width:clamp(56px,5vw,72px);border:0;outline:none;background:transparent;font-size:12px;font-weight:600;color:var(--h-tx);font-variant-numeric:tabular-nums;text-align:right;-moz-appearance:textfield}
.ah-inp input::-webkit-outer-spin-button,.ah-inp input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ah-inp em{font-style:normal;font-size:10.5px;color:var(--h-mu);flex:0 0 auto}
.ah-armmsg{font-size:10.5px;color:var(--h-mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:-2px 0 8px}

/* ---------- ② 六格管线 ---------- */
.ah-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;min-width:0}
.ah-kpi{background:var(--h-card);border:1px solid var(--h-bd);border-radius:11px;box-shadow:0 2px 8px rgba(16,24,40,.06);padding:9px 12px 8px;display:flex;flex-direction:column;justify-content:space-between;min-height:86px;position:relative;overflow:hidden;transition:box-shadow .3s,border-color .3s,transform .3s}
.ah-kpi .ah-khead{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11.5px;color:var(--h-sub)}
.ah-kpi .ah-khead .ah-c{font-size:9.5px;color:var(--h-mu);letter-spacing:.05em;white-space:nowrap}
.ah-kpi .ah-v{font-size:clamp(16px,1.75vw,24px);font-weight:700;line-height:1.1;margin:3px 0 1px;color:var(--h-tx);white-space:nowrap}
.ah-kpi .ah-v.sm{font-size:clamp(13px,1.4vw,19px)}
.ah-kpi .ah-v i{font-style:normal;color:#C3CAD5;font-weight:400;padding:0 2px}
.ah-kpi .ah-f{font-size:10.5px;color:var(--h-mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ah-kpi .ah-pbar{height:2px;background:#EEF2F7;border-radius:2px;margin:5px 0 3px;overflow:hidden}
.ah-kpi .ah-pbar i{display:block;height:100%;width:0%;background:linear-gradient(90deg,#8FB0FF,#2F6BFF);transition:width .5s}
.ah-kpi.hl .ah-v{color:var(--h-pri)}
.ah-kpi.warm .ah-v{color:#B7791F}
.ah-kpi.jump{cursor:pointer}
.ah-kpi.jump:hover{border-color:var(--h-pri-l);box-shadow:0 3px 12px rgba(47,107,255,.12)}
.ah-kpi.wave{border-color:#9FB9FF;box-shadow:0 0 0 2px rgba(47,107,255,.16),0 6px 16px rgba(47,107,255,.14);transform:translateY(-2px)}
.ah-kpi .ah-tag{font-size:9.5px;padding:1px 5px;border-radius:4px;background:#F3F5F9;color:var(--h-mu);border:1px solid var(--h-bd2);letter-spacing:0}

/* ---------- ③ 轮次状态行 ---------- */
.ah-status{position:relative;display:flex;align-items:center;gap:10px;margin-top:9px;font-size:11.5px;flex-wrap:wrap}
.ah-chip{font-size:11px;font-weight:600;color:#9A6A10;background:#FCF4E4;border:1px solid #EFDDB8;border-radius:999px;padding:2px 10px;cursor:pointer;white-space:nowrap}
.ah-chip.hot{color:#0E7B52;background:#EAF9F2;border-color:#BFEBD9}
.ah-chip.off{color:var(--h-mu);background:#F7F9FC;border-color:var(--h-bd)}
.ah-round{display:flex;align-items:center;gap:6px;color:#8A6413;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ah-rdot{width:5px;height:5px;border-radius:50%;background:#D79A2B;flex:none}
.ah-hint{margin-left:auto;color:var(--h-mu);white-space:nowrap;font-size:11px}

/* 扫描条：收敛成 2px 细线，不抢视觉 */
.ah-scanbar{height:2px;border-radius:2px;background:#EEF2F7;margin:6px 0 0;overflow:hidden;opacity:.55;transition:opacity .3s}
.ah-scanbar.on,.ah-scanbar.done{opacity:1}
.ah-scanbar>i{display:block;height:100%;width:0%;background:linear-gradient(90deg,#8FB0FF,#2F6BFF);transition:width .35s}
.ah-scanbar.done>i{background:linear-gradient(90deg,#2F6BFF,#22C07A)}

/* ---------- ④ 双横幅 ---------- */
.ah-banners{margin-top:8px;padding:8px;display:flex;flex-direction:column;gap:6px;background:var(--h-card);border:1px solid var(--h-bd);border-radius:11px;box-shadow:0 2px 8px rgba(16,24,40,.06)}
.ah-bn{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:7px;font-size:11.5px;overflow:hidden;min-height:28px}
.ah-bn.amb{background:var(--h-am-s);border:1px solid var(--h-am-l);color:#5C6675}
.ah-bn.pri{background:var(--h-pri-s);border:1px solid var(--h-pri-l);color:#5C6675}
.ah-bn .ah-bn-lb{font-weight:700;color:#9A6A10;display:flex;align-items:center;gap:6px;white-space:nowrap}
.ah-bn.pri .ah-bn-lb{color:var(--h-pri)}
.ah-bn .ah-bn-lb::before{content:"";width:6px;height:6px;border-radius:50%;background:#D79A2B}
.ah-bn.pri .ah-bn-lb::before{background:var(--h-pri)}
.ah-bn .ah-bn-k{font-size:10.5px;font-weight:700;color:#8A6413;background:#fff;border:1px solid var(--h-am-l);border-radius:4px;padding:1px 6px;white-space:nowrap}
.ah-bn .ah-bn-tx{color:#5C6675;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.ah-bn .ah-bn-hi{color:#9A6A10;font-weight:600;white-space:nowrap}
.ah-bn .ah-bn-mono{font-size:10.5px;color:#4A6079;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:ui-monospace,Menlo,Consolas,monospace}
.ah-bn b{color:var(--h-tx)}
.ah-bn.g-danger{background:#FDF1F0;border-color:#F5D7D5}
.ah-bn.g-warn{background:#FEF4EE;border-color:#F6DCCB}
.ah-bn.g-safe{background:#EDFBF4;border-color:#C7EBD9}

/* ---------- ⑤ 三栏工作区 ---------- */
.ah-work{display:grid;grid-template-columns:minmax(0,5fr) minmax(160px,2.4fr) minmax(0,5fr);gap:9px;margin-top:9px;align-items:stretch;min-height:340px;overflow-x:hidden}
.ah-panel{background:var(--h-card);border:1px solid var(--h-bd);border-radius:11px;box-shadow:0 2px 8px rgba(16,24,40,.06);padding:9px 12px 8px;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.ah-ph{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:7px;margin-bottom:4px;border-bottom:1px solid var(--h-bd2)}
.ah-pt{font-size:12.5px;font-weight:700;color:var(--h-tx);white-space:nowrap}
.ah-phn{font-size:10.5px;color:var(--h-mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ah-actmeta,.ah-cand-note{font-size:10px;color:var(--h-mu)}
.ah-list{flex:1;min-height:0;overflow:hidden}
.ah-actp .ah-list{overflow-y:auto;scrollbar-width:thin}
.ah-empty{font-size:11px;color:var(--h-mu);padding:10px 2px}

/* 全场流动：四列 · 行高 34px */
.ah-row{display:grid;grid-template-columns:minmax(0,1fr) 68px 62px 66px;align-items:center;gap:6px;height:34px;padding:0 5px;border-radius:5px;border-bottom:1px solid #F4F6FA;font-size:11.5px;cursor:pointer;transition:background .15s}
.ah-row:hover,.ah-row.on{background:var(--h-pri-s)}
.ah-row.excluded{opacity:.55}
.ah-nm{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.ah-nm b{font-size:12px;font-weight:600;color:var(--h-tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ah-nm em{font-style:normal;font-size:9.5px;color:var(--h-mu);letter-spacing:.02em}
.ah-px{text-align:right;font-weight:600;color:var(--h-tx)}
.ah-ch{text-align:right;font-weight:600}
.ah-ch.up{color:var(--h-red)}
.ah-ch.down{color:var(--h-grn)}
.ah-am{text-align:right;color:var(--h-sub);font-size:10.5px}

/* 中栏「科技舱」—— 全页唯一深色区 */
.ah-cen{position:relative;overflow:hidden;min-height:0;align-self:stretch;min-width:0;border-radius:11px;border:1px solid rgba(42,246,255,.24);
  background:
    radial-gradient(rgba(42,246,255,.16) 1px,transparent 1px) 0 0/22px 22px,
    radial-gradient(120% 95% at 50% 46%,#123072 0%,#0B1B3E 42%,#060B19 74%,#03060E 100%);
  box-shadow:0 6px 22px rgba(6,16,40,.28),inset 0 0 34px rgba(42,246,255,.12),inset 0 0 0 1px rgba(42,246,255,.06)}
.ah-cen::after{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(42,246,255,.5),transparent)}
.ah-cen canvas{display:block;position:absolute;inset:0;width:100%;height:100%}

/* 右栏：本轮候选 + 买卖动作 */
.ah-right{display:flex;flex-direction:column;gap:9px;min-width:0;min-height:0}
.ah-candp{flex:1;min-height:0}
.ah-actp{height:200px;flex:none}
.ah-crow{display:grid;grid-template-columns:14px minmax(0,1fr) 62px 58px 46px;align-items:center;gap:6px;height:34px;padding:0 5px;border-radius:5px;border-bottom:1px solid #F4F6FA;font-size:11.5px;cursor:pointer}
.ah-crow:hover,.ah-crow.on{background:var(--h-pri-s)}
.ah-crow .ah-sdot{width:6px;height:6px;border-radius:50%;background:var(--h-grn)}
.ah-crow .ah-sc{text-align:right;font-weight:700;color:var(--h-pri);font-size:11px;white-space:nowrap}
.ah-mini{font-size:10.5px;color:var(--h-pri);background:#fff;border:1px solid var(--h-pri-l);border-radius:4px;padding:1px 6px;cursor:pointer;white-space:nowrap}
.ah-tagb{font-size:9px;padding:0 4px;border-radius:3px;border:1px solid var(--h-am-l);color:#9A6A10;background:#fff;white-space:nowrap}
.ah-tagb.ex{color:#B4322C;border-color:#F5D7D5;background:#FDF1F0}
.ah-more{font-size:10px;color:var(--h-mu);padding:5px 2px 2px}
.ah-combo{margin-top:6px;padding:6px 8px;border:1px solid var(--h-am-l);background:var(--h-am-s);border-radius:7px}
.ah-combo-h{display:flex;justify-content:space-between;gap:6px;font-size:10.5px;color:#9A6A10;font-weight:600}
.ah-combo-ts{color:var(--h-mu);font-weight:500}
.ah-chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.ah-chips>span{font-size:10px;color:#7A5A1B;background:#fff;border:1px solid var(--h-am-l);border-radius:4px;padding:1px 5px}
.ah-arow{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;min-height:46px;padding:5px 4px;border-bottom:1px solid #F4F6FA;font-size:11px}
.ah-arow .ah-bd{font-size:9.5px;border-radius:4px;text-align:center;padding:1px 0;white-space:nowrap}
.ah-arow .ah-bd.buy{color:var(--h-red);background:#FDF1F0;border:1px solid #F5D7D5}
.ah-arow .ah-bd.sell{color:var(--h-grn);background:#EDFBF4;border:1px solid #C7EBD9}
.ah-arow .ah-bd.sim{color:var(--h-pri);background:var(--h-pri-s);border:1px solid var(--h-pri-l)}
.ah-arow .ah-bd.skip{color:var(--h-mu);background:#F7F9FC;border:1px solid var(--h-bd)}
.ah-arow .ah-bd.block{color:#A8611B;background:#FEF4EE;border:1px solid #F6DCCB}
.ah-arow .ah-act-main{min-width:0}
.ah-arow .ah-act-sub{grid-column:2;margin-top:2px;font-size:10px;color:var(--h-mu);white-space:normal;line-height:1.3}

/* ---------- ⑥ 执行日志 ---------- */
.ah-logbar{display:flex;align-items:center;gap:10px;margin-top:9px;padding:9px 13px;background:var(--h-card);border:1px solid var(--h-bd);border-radius:11px;box-shadow:0 2px 8px rgba(16,24,40,.06);font-size:11.5px;overflow:hidden}
.ah-logt{font-weight:700;white-space:nowrap;color:var(--h-tx)}
.ah-logh{color:var(--h-mu);white-space:nowrap;font-size:10.5px}
.ah-logtm{color:var(--h-mu);font-family:ui-monospace,Menlo,Consolas,monospace;white-space:nowrap}
.ah-logtx{color:var(--h-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
.ah-logtx.is-err{color:#B4322C}
.ah-logtx.is-ok{color:#0E7B52}

/* ---------- 窄屏：只裁次要信息，列数固定 6 / 3，永不折行 ---------- */
@media (max-width:1280px){
  .ah-kpi .ah-f{font-size:10px}
  .ah-chips>span:nth-child(n+5){display:none}
}
@media (max-width:900px){
  .ah-kpi .ah-f,.ah-row .ah-am,.ah-crow .ah-mini,.ah-phn,.ah-hint{display:none}
  .ah-inp em{display:none}
  .ah-bar{gap:8px}
  .ah-bar-r{gap:6px}
  .ah-btn,.ah-sw{white-space:nowrap;flex:0 0 auto}
  .ah-pill{white-space:nowrap;flex:0 1 auto;max-width:150px;overflow:hidden;text-overflow:ellipsis}
  .ah-row{grid-template-columns:minmax(0,1fr) 62px 58px}
  .ah-crow{grid-template-columns:12px minmax(0,1fr) 56px 52px}
  .ah-bn-tx{display:none}
  .ah-kpi{padding:8px 7px 7px}
  .ah-kpi .ah-khead{font-size:10px;gap:3px}
  .ah-kpi .ah-khead .ah-c{display:none}
  .ah-kpi .ah-khead span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ah-kpi .ah-v{font-size:clamp(14px,3vw,20px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

/* 2026-11-29 智能选股：AI诊断 / 重建矩阵 上移至标题行右侧 */
.adv-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }


/* ===== 2026-11-29 自动交易 HUD：深色主题自适应（ah-* / --h-* 变量与硬编码浅色覆写；浅色主题不受影响） ===== */
body:not([data-theme="light"]) .ae-hud{
  --h-bg:#0a0a0b; --h-card:#141417; --h-bd:#2a2620; --h-bd2:#232019;
  --h-tx:#ece6da; --h-sub:#b8ad97; --h-mu:#8c857a;
  --h-pri:#5b9bff; --h-pri-s:rgba(91,155,255,.14); --h-pri-l:rgba(91,155,255,.32);
  --h-am:#e0a94a; --h-am-s:rgba(224,169,74,.14); --h-am-l:rgba(224,169,74,.30);
  --h-red:#f4556b; --h-grn:#2fc98d;
}
body:not([data-theme="light"]) .ae-hud .ah-pill,
body:not([data-theme="light"]) .ae-hud .ah-btn,
body:not([data-theme="light"]) .ae-hud .ah-sw,
body:not([data-theme="light"]) .ae-hud .ah-inp,
body:not([data-theme="light"]) .ae-hud .ah-bn-k,
body:not([data-theme="light"]) .ae-hud .ah-mini,
body:not([data-theme="light"]) .ae-hud .ah-tagb,
body:not([data-theme="light"]) .ae-hud .ah-chips>span{ background:var(--h-card); }
body:not([data-theme="light"]) .ae-hud .ah-sw{ color:var(--h-mu); }
body:not([data-theme="light"]) .ae-hud .ah-sw::before{ background:var(--h-bd2); }
body:not([data-theme="light"]) .ae-hud .ah-sw::after{ background:var(--h-card); }
body:not([data-theme="light"]) .ae-hud .ah-pill .ah-dot,
body:not([data-theme="light"]) .ae-hud .ah-kpi .ah-v i{ background:var(--h-mu); }
body:not([data-theme="light"]) .ae-hud .ah-kpi .ah-pbar,
body:not([data-theme="light"]) .ae-hud .ah-kpi .ah-tag,
body:not([data-theme="light"]) .ae-hud .ah-chip.off,
body:not([data-theme="light"]) .ae-hud .ah-scanbar{ background:var(--h-bd2); }
body:not([data-theme="light"]) .ae-hud .ah-row,
body:not([data-theme="light"]) .ae-hud .ah-crow,
body:not([data-theme="light"]) .ae-hud .ah-arow{ border-bottom-color:var(--h-bd2); }
body:not([data-theme="light"]) .ae-hud .ah-bn.amb,
body:not([data-theme="light"]) .ae-hud .ah-bn.pri,
body:not([data-theme="light"]) .ae-hud .ah-bn .ah-bn-tx,
body:not([data-theme="light"]) .ae-hud .ah-bn .ah-bn-mono{ color:var(--h-sub); }
body:not([data-theme="light"]) .ae-hud .ah-bn .ah-bn-lb,
body:not([data-theme="light"]) .ae-hud .ah-bn .ah-bn-k,
body:not([data-theme="light"]) .ae-hud .ah-bn .ah-bn-hi,
body:not([data-theme="light"]) .ae-hud .ah-tagb,
body:not([data-theme="light"]) .ae-hud .ah-combo-h,
body:not([data-theme="light"]) .ae-hud .ah-chips>span,
body:not([data-theme="light"]) .ae-hud .ah-kpi.warm .ah-v{ color:var(--h-am); }
body:not([data-theme="light"]) .ae-hud .ah-pill.demo,
body:not([data-theme="light"]) .ae-hud .ah-chip{ color:var(--h-am); background:var(--h-am-s); border-color:var(--h-am-l); }
body:not([data-theme="light"]) .ae-hud .ah-pill.on,
body:not([data-theme="light"]) .ae-hud .ah-chip.hot{ color:var(--h-grn); background:rgba(47,201,141,.14); border-color:rgba(47,201,141,.32); }
body:not([data-theme="light"]) .ae-hud .ah-bn.g-danger{ background:rgba(244,85,107,.12); border-color:rgba(244,85,107,.30); }
body:not([data-theme="light"]) .ae-hud .ah-bn.g-warn{ background:var(--h-am-s); border-color:var(--h-am-l); }
body:not([data-theme="light"]) .ae-hud .ah-bn.g-safe{ background:rgba(47,201,141,.12); border-color:rgba(47,201,141,.30); }
body:not([data-theme="light"]) .ae-hud .ah-arow .ah-bd.buy{ color:var(--h-red); background:rgba(244,85,107,.12); border-color:rgba(244,85,107,.30); }
body:not([data-theme="light"]) .ae-hud .ah-arow .ah-bd.sell{ color:var(--h-grn); background:rgba(47,201,141,.12); border-color:rgba(47,201,141,.30); }
body:not([data-theme="light"]) .ae-hud .ah-arow .ah-bd.skip{ background:var(--h-bd2); }
body:not([data-theme="light"]) .ae-hud .ah-arow .ah-bd.block{ color:var(--h-am); background:var(--h-am-s); border-color:var(--h-am-l); }
body:not([data-theme="light"]) .ae-hud .ah-tagb.ex{ color:var(--h-red); background:rgba(244,85,107,.12); border-color:rgba(244,85,107,.30); }
body:not([data-theme="light"]) .ae-hud .ah-logtx.is-err{ color:var(--h-red); }
body:not([data-theme="light"]) .ae-hud .ah-logtx.is-ok{ color:var(--h-grn); }
body:not([data-theme="light"]) .ae-hud .ah-kpi.wave{ border-color:var(--h-pri-l); }

/* ================= 全网自选 · 页头/工具条对齐（2026-12-01） =================
   与实时总览/数据中心/策略研究同一套语言：浅灰底、纯白卡片、1px 边、10px 圆角、极轻阴影。
   全部作用域限定在 #scan，避免影响其他页面的 .seg/.chip。 */
#scan .sc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 0 12px}
#scan .sc-head-l{min-width:0}
#scan .sc-title{display:flex;align-items:center;margin:0;font-size:18px;font-weight:700;line-height:1.25;letter-spacing:.2px;color:var(--text)}
#scan .sc-title::before{content:"";width:4px;height:18px;border-radius:2px;background:var(--accent);margin-right:10px;flex:0 0 4px}
#scan .sc-title-sep{color:var(--text-dim);font-weight:500;margin:0 8px}
#scan .sc-title-sub{color:var(--text-dim);font-weight:600}
#scan .sc-ai{display:inline-flex;align-items:center;height:20px;padding:0 8px;margin-left:10px;border-radius:999px;background:rgba(31,111,235,.10);color:var(--accent);font-size:11px;font-weight:700;letter-spacing:.04em}
#scan .sc-head-r{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
#scan .sc-watch{color:var(--accent);border-color:rgba(31,111,235,.45)}
#scan .sc-watch:hover{background:rgba(31,111,235,.06);border-color:var(--accent)}
#scan .sc-toolbar{background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:0 1px 2px rgba(23,43,77,.04);padding:12px 16px;margin:0 0 14px}
#scan .sc-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#scan .sc-row2{margin-top:12px}
#scan .sc-label{font-size:13px;color:var(--text-dim);white-space:nowrap}
#scan .sc-div{width:1px;height:22px;background:var(--border);flex:0 0 1px;margin:0 4px}
#scan .seg-group{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}
#scan .seg{min-width:0;height:34px;padding:0 16px;display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;background:var(--panel);color:var(--text-dim);font-size:12px;line-height:1;cursor:pointer;transition:border-color .15s,color .15s}
#scan .seg:hover{border-color:#c9d3e2;color:var(--text)}
#scan .seg.active{border:2px solid var(--accent);padding:0 15px;background:var(--panel);color:var(--text);font-weight:600;box-shadow:none}
#scan .pill{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px;border-radius:999px;font-size:12.5px;white-space:nowrap}
#scan .pill .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
#scan .pill.pill-wait{color:#16a34a;background:rgba(22,163,74,.10)}
#scan .pill.pill-scan{color:var(--accent);background:rgba(31,111,235,.10)}
#scan .pill.pill-done{color:#16a34a;background:rgba(22,163,74,.10)}
#scan .pill.pill-err{color:#dc2626;background:rgba(220,38,38,.10)}
#scan .pill.pill-scan .dot{animation:qhPillBreath 1.1s ease-in-out infinite}
@keyframes qhPillBreath{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
#scan .sc-run{height:38px;padding:0 20px;font-size:13px;font-weight:600;border-radius:8px}
#scan .sc-run::before{content:"▶ ";font-size:12px}
/* 规则/板块 chip 统一为全圆角药丸；买卖方向用小圆角竖条表达，不再贴边框 */
#scan .chip{height:26px;padding:0 11px;border-radius:999px;background:var(--panel);border:1px solid var(--border);font-size:12px;line-height:1}
#scan .chip.chip-buy,#scan .chip.chip-sell{padding-left:18px}
#scan .chip.chip-buy::before,#scan .chip.chip-sell::before{content:"";position:absolute;left:8px;top:50%;transform:translateY(-50%);width:3px;height:10px;border-radius:999px}
#scan .chip.chip-buy::before{background:var(--up)}
#scan .chip.chip-sell::before{background:var(--down)}
#scan .chip{position:relative}
#scan .chip input[type="checkbox"]{width:14px;height:14px;flex:0 0 14px}
#scan .chip.sel,#scan .chip:has(input:checked){border-color:var(--accent);color:var(--accent)}
#scan .chip .chip-gear{border:0;background:transparent;padding:0 1px;font-size:11px;color:var(--text-dim);cursor:pointer}
/* 20261201c 板块过滤/规则勾选：横排药丸 + 文字与勾选框居中（此前 .chipbox 为纵向 flex，药丸被拉满宽、文字贴左） */
#scan .chipbox{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
#scan .chipbox label.chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:26px;min-height:26px;padding:0 12px;margin:0;border-radius:999px;width:auto;flex:0 0 auto;line-height:1;white-space:nowrap;text-align:center}
#scan .chipbox label.chip.chip-buy,#scan .chipbox label.chip.chip-sell{padding-left:18px}
#scan .chipbox label.chip input[type="checkbox"]{margin:0;flex:0 0 14px;position:relative;top:0}
/* 20261201d 因子搜索框：与药丸/输入条同风格 */
#scan #sc-fpick-q{height:30px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:var(--panel);color:var(--text);font-size:12px;line-height:1;min-width:210px;-webkit-appearance:none;appearance:none}
#scan #sc-fpick-q::placeholder{color:var(--text-dim)}
#scan #sc-fpick-q:focus{outline:none;border-color:var(--accent)}
#scan #sc-fpick-q::-webkit-search-cancel-button{-webkit-appearance:none}
/* 20261201f 通用筛选参数：两列卡片版式（对齐设计稿图2） */
#scan .scan-divider{display:block;color:var(--text);font-size:15px;font-weight:700;letter-spacing:.2px;margin:18px 0 12px}
#scan .scan-divider::before,#scan .scan-divider::after{content:none;display:none}
#scan .sf-grid{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:56px;row-gap:20px;padding:18px 22px 16px;background:var(--panel);border:1px solid var(--border);border-radius:12px}
#scan .sf-field{display:flex;flex-direction:column;gap:8px;min-width:0}
#scan .sf-field>label{font-size:13px;color:var(--text-dim);margin:0;line-height:1.4}
#scan .sf-field input[type="number"],#scan .sf-field input[type="text"]{width:100%;height:42px;padding:0 14px;border:1px solid var(--border);border-radius:8px;background:var(--bg-2);color:var(--text);font-size:14px;box-sizing:border-box}
#scan .sf-field input:focus{border-color:var(--accent);outline:none}
#scan .sf-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px}
#scan .sf-range input{width:100%;min-width:0}
#scan .sf-range span{color:var(--text-dim);font-size:13px}
#scan .sf-hint{font-size:12px;color:var(--text-dim);line-height:1.5}
#scan .sf-seg-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#scan .sf-seg-row .seg{height:38px;padding:0 18px;border-radius:999px}
#scan .sf-mk-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#scan .sf-mk-row .chipbox{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
#scan .sf-link{color:var(--accent);font-size:12.5px;text-decoration:none;cursor:pointer}
#scan .sf-link:hover{text-decoration:underline}
#scan .sf-span2{grid-column:1/-1}
#scan .sf-codes-row{display:flex;align-items:center;gap:12px}
#scan .sf-codes-row input{flex:1 1 auto;min-width:0}
#scan .sf-foot{grid-column:1/-1;font-size:12px;color:var(--text-dim);line-height:1.6;border-top:1px dashed var(--border);padding-top:10px}
@media (max-width:1180px){#scan .sf-grid{grid-template-columns:minmax(0,1fr);row-gap:16px}#scan .sf-span2,#scan .sf-foot{grid-column:auto}}
#scan .sf-codes-row .sf-hint{flex:0 0 auto;white-space:nowrap}
#scan .sf-codes-row input{max-width:none}#scan .sf-mk-row label.chip{height:30px;min-height:30px;padding:0 14px}

/* 20261201g 通用筛选参数：整卡版式（标题在卡内、上两行双列、条件组合与板块过滤同排、标的池整行） */
#scan .sf-grid{display:block;grid-column:1/-1;padding:18px 26px 18px;background:var(--panel);border:1px solid var(--border);border-radius:12px;column-gap:0;row-gap:0}
#scan .sf-head{font-size:16px;font-weight:700;color:var(--text);margin:0 0 18px;line-height:1.35}
#scan .sf-grid-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px;row-gap:26px}
#scan .sf-grid-2 .sf-field{display:flex;flex-direction:column;gap:10px;min-width:0}
#scan .sf-grid-2 .sf-field>label{font-size:14px;color:var(--text-dim);line-height:1.4}
#scan .sf-grid-2 .sf-field input[type="number"],#scan .sf-grid-2 .sf-field input[type="text"]{width:100%;height:46px;padding:0 15px;border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--text);font-size:15px;box-sizing:border-box}
#scan .sf-grid-2 .sf-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
#scan .sf-grid-2 .sf-range span{color:var(--text-dim);font-size:14px}
#scan .sf-row-inline{display:flex;align-items:flex-start;gap:72px;flex-wrap:wrap;margin-top:30px}
#scan .sf-block{display:flex;flex-direction:column;gap:12px;min-width:0}
#scan .sf-lbl{font-size:14px;color:var(--text-dim);line-height:1.4}
#scan .sf-seg-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#scan .sf-seg-row .seg{height:42px;padding:0 24px;border-radius:999px;font-size:14px}
#scan .sf-mk-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#scan .sf-mk-row label.chip{height:34px;min-height:34px;padding:0 16px;font-size:13px}
#scan .sf-wide{display:flex;flex-direction:column;gap:10px;margin-top:30px}
#scan .sf-wide>label{font-size:14px;color:var(--text-dim);line-height:1.4}
#scan .sf-wide .sf-codes-row{display:flex;align-items:center;gap:16px}
#scan .sf-wide .sf-codes-row input{height:46px;padding:0 15px;border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--text);font-size:15px;flex:1 1 auto;min-width:0}
#scan .sf-wide .sf-codes-row .sf-hint{flex:0 0 auto;white-space:nowrap;font-size:12.5px}
#scan .sf-foot{margin-top:18px;padding-top:12px;border-top:1px solid var(--border);font-size:12.5px;color:var(--text-dim);line-height:1.6}
@media (max-width:1180px){#scan .sf-grid-2{grid-template-columns:minmax(0,1fr)}#scan .sf-row-inline{gap:28px}#scan .sf-wide .sf-codes-row{flex-wrap:wrap}#scan .sf-wide .sf-codes-row .sf-hint{white-space:normal}}
#scan .sf-row-inline{gap:52px}
#scan .sf-seg-row .seg{font-size:14.5px;padding:0 26px;min-width:176px;justify-content:center}
#scan .sf-mk-row label.chip{height:36px;min-height:36px;font-size:13.5px}
/* 20261201h 版式节奏对齐设计稿：更宽松的行距、更大的胶囊与标题 */
#scan .sf-grid{padding:22px 24px 20px}
#scan .sf-head{font-size:17px;margin:0 0 26px}
#scan .sf-grid-2{column-gap:20px;row-gap:30px}
#scan .sf-grid-2 .sf-field>label{font-size:14.5px}
#scan .sf-row-inline{margin-top:52px;gap:60px}
#scan .sf-seg-row{gap:20px}
#scan .sf-seg-row .seg{height:40px;padding:0 28px;min-width:200px;font-size:15px}
#scan .sf-wide{margin-top:50px}
#scan .sf-wide>label{font-size:14.5px}
#scan .sf-foot{margin-top:28px}
#scan .sf-grid-2{row-gap:50px}
#scan .sf-row-inline{margin-top:96px}
#scan .sf-seg-row .seg{height:36px;padding:0 26px;min-width:200px}
#scan .sf-wide{margin-top:52px}
#scan .sf-foot{margin-top:40px;padding-top:14px}
#scan .sf-grid{padding:22px 24px 32px}
#scan .sf-wide{margin-top:28px}
#scan .sf-foot{margin-top:24px;padding-top:12px}
#scan .sf-head{margin-bottom:70px}
#scan .sf-grid-2{row-gap:34px}
#scan .sf-row-inline{margin-top:40px}
#scan .sf-wide{margin-top:24px}
#scan .sf-foot{margin-top:22px;padding-top:12px}
#scan .sf-seg-row .seg{height:38px}
#scan .sf-mk-row label.chip{color:var(--text);background:var(--panel);height:36px;padding:0 18px;font-size:14px;gap:10px;border-radius:999px}
#scan .sf-mk-row label.chip input[type="checkbox"]{width:16px;height:16px;flex:0 0 16px;margin:0;border-radius:4px;accent-color:var(--accent)}
#scan .sf-head{margin-bottom:46px}
#scan .sf-wide{margin-top:2px}
#scan .sf-wide{margin-top:18px}
#scan .sf-wide{margin-top:34px}
/* 20261201i 通用筛选参数：字号层级 + 药丸尺寸分层，统一视觉节奏 */
#scan .sf-grid{padding:20px 24px 26px;border-radius:12px}
#scan .sf-head{font-size:16px;font-weight:700;line-height:1.4;letter-spacing:.2px;color:var(--text);margin:0 0 24px}
#scan .sf-grid-2{column-gap:22px;row-gap:28px}
#scan .sf-grid-2 .sf-field{gap:9px}
#scan .sf-grid-2 .sf-field>label,#scan .sf-wide>label{font-size:13px;color:var(--text-dim);line-height:1.4}
#scan .sf-grid-2 .sf-field input[type="number"],#scan .sf-grid-2 .sf-field input[type="text"]{height:44px;padding:0 14px;border-radius:10px;border:1px solid var(--border);font-size:15px;color:var(--text);background:var(--panel)}
#scan .sf-grid-2 .sf-field input:focus,#scan .sf-codes-row input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(31,111,235,.10);outline:none}
#scan .sf-grid-2 .sf-range{gap:11px}
#scan .sf-grid-2 .sf-range span{font-size:13px;color:var(--text-dim)}
#scan .sf-hint{font-size:12px;line-height:1.5;color:var(--text-dim)}
#scan .sf-row-inline{margin-top:40px;gap:56px;align-items:flex-start}
#scan .sf-lbl{font-size:13px;color:var(--text-dim);line-height:1.4}
#scan .sf-block{gap:10px}
#scan .sf-seg-row{gap:14px;align-items:center}
#scan .sf-seg-row .seg{height:36px;padding:0 22px;min-width:168px;justify-content:center;border-radius:999px;font-size:14px;font-weight:500;color:var(--text)}
#scan .sf-seg-row .seg.active{font-weight:600;padding:0 21px}
#scan .sf-mk-row{gap:10px;align-items:center}
#scan .sf-mk-row .chipbox{gap:8px}
#scan .sf-mk-row label.chip{height:32px;min-height:32px;padding:0 14px;font-size:13px;gap:8px;color:var(--text);background:var(--panel);border-radius:999px}
#scan .sf-mk-row label.chip input[type="checkbox"]{width:15px;height:15px;flex:0 0 15px;border-radius:4px}
#scan .sf-link{font-size:13px}
#scan .sf-wide{margin-top:34px}
#scan .sf-codes-row input{height:44px;border-radius:10px;font-size:15px;padding:0 14px;border:1px solid var(--border);background:var(--panel);color:var(--text)}
#scan .sf-foot{margin-top:22px;padding-top:12px;font-size:12.5px;color:var(--text-dim);border-top:1px solid var(--border)}
#scan .sf-head{margin:0 0 34px}
#scan .sf-mk-row{min-height:36px}
#scan .sf-mk-row label.chip{cursor:pointer;transition:border-color .15s,color .15s,background .15s}
#scan .sf-mk-row label.chip:hover{border-color:#c9d3e2}
#scan .sf-mk-row label.chip:has(input:checked){border-color:var(--accent);color:var(--accent)}
#scan .sf-mk-row label.chip{height:30px;min-height:30px;padding:0 13px;font-size:12.5px;gap:7px}
#scan .sf-mk-row label.chip input[type="checkbox"]{width:14px;height:14px;flex:0 0 14px}
#scan .sf-mk-row{min-height:36px}
#scan .sf-mk-row label.chip{height:27px;min-height:27px;padding:0 12px;font-size:12px;gap:6px}
#scan .sf-mk-row label.chip input[type="checkbox"]{width:13px;height:13px;flex:0 0 13px}
#scan .sf-mk-row .sf-link{font-size:12px}
#scan .sf-mk-row label.chip{height:25px;min-height:25px;padding:0 11px;font-size:11.5px;gap:5px}
#scan .sf-mk-row label.chip input[type="checkbox"]{width:12px;height:12px;flex:0 0 12px}
#scan .sf-mk-row .sf-link{font-size:11.5px}
/* 20261201m 全网自选·工具条：严格单行 + 右端吸附（覆盖旧两行 .sc-row 布局） */
#scan .sc-bar{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow:hidden;padding:9px 12px}
#scan .sc-bar .sc-grp{display:flex;align-items:center;gap:6px}
#scan .sc-bar .sc-g1{flex:0 1 auto;min-width:0;overflow:hidden}
#scan .sc-bar .sc-g2{flex:0 0 auto}
#scan .sc-bar .sc-grow{flex:1 1 auto;min-width:0}
#scan .sc-bar .sc-g3{flex:0 0 auto;margin-left:auto}
#scan .sc-bar .sc-lb{font-size:12px;color:var(--text-dim);white-space:nowrap}
#scan .sc-bar .sc-div{width:1px;height:22px;background:var(--border);flex:0 0 1px;margin:0 4px}
#scan .sc-bar .seg{min-width:0;height:33px;padding:5px 9px;gap:4px;border-width:1px;border-style:solid;border-color:var(--border);border-radius:999px;background:var(--panel-2);color:var(--text-dim);font-size:11px;line-height:1;display:inline-flex;align-items:center;white-space:nowrap;box-shadow:none}
#scan .sc-bar .seg:hover{border-color:var(--text-dim);color:var(--text)}
#scan .sc-bar .seg.active{border:1px solid var(--accent);padding:5px 9px;color:var(--text);background:var(--panel-2);font-weight:600;box-shadow:0 0 0 1px var(--accent)}
#scan .sc-bar .seg .seg-no{font-size:11px;color:var(--text-dim);flex:0 0 auto}
#scan .sc-bar .seg.active .seg-no{color:var(--accent)}
#scan .sc-bar .seg .seg-tx{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#scan .sc-bar .pill{height:22px;padding:0 12px;font-size:12px;font-weight:600;gap:6px;flex:0 0 auto;border-radius:999px;background:#EAF7EF;color:#127A43}
#scan .sc-bar .pill .dot{width:6px;height:6px;border-radius:50%;background:#16A34A;flex:0 0 6px}
#scan .sc-bar .pill.pill-wait{background:#EAF7EF;color:#127A43}
#scan .sc-bar .pill.pill-wait .dot{background:#16A34A}
#scan .sc-bar .pill.pill-done{background:#EAF7EF;color:#16A34A}
#scan .sc-bar .pill.pill-done .dot{background:#16A34A}
#scan .sc-bar .pill.pill-err,#scan .sc-bar .pill.pill-bad{background:#FEF2F2;color:#DC2626}
#scan .sc-bar .pill.pill-err .dot,#scan .sc-bar .pill.pill-bad .dot{background:#DC2626}
#scan .sc-bar .pill.pill-scan{background:#EAF1FE;color:#1F6FEB}
#scan .sc-bar .pill.pill-scan .dot{background:#1F6FEB;animation:qhPillBreath 1.1s ease-in-out infinite}
#scan .sc-bar #sc-run{flex:0 0 auto;height:34px;padding:0 16px;border:0;border-radius:8px;font-size:13px;font-weight:600;color:#FFF;white-space:nowrap;background:linear-gradient(180deg,#3B8CFD,#2F81F7);box-shadow:0 1px 2px rgba(47,129,247,.28)}
#scan .sc-bar #sc-run:hover{filter:brightness(1.04)}
#scan .sc-bar #sc-run:disabled,#scan .sc-bar #sc-run[disabled]{background:#A9C7F7;box-shadow:none;cursor:not-allowed;filter:none}
#scan .sc-bar.compact .sc-g1 .seg .seg-tx{display:none}
#scan .sc-bar.compact .sc-g1 .seg::after{content:attr(data-short);font-size:11px}
#scan .sc-bar.compact .sc-g1 .seg{min-width:80px;padding:5px 6px;gap:3px}
#scan .sc-bar.compact .sc-g1 .sc-lb{font-size:11px}
#scan .sc-bar.tiny .sc-g1 .sc-lb{display:none}
#scan .sc-bar.tiny .sc-g1 .seg{min-width:84px}
#scan .sc-bar .seg-group{display:flex;flex-wrap:nowrap;min-width:0;gap:6px}
#scan .sc-bar .sc-g1 .seg-group{flex:0 1 auto}
#scan .sc-bar .sc-g2 .seg-group{flex:0 0 auto}

/* ==========================================================================
   20261201n · 全网自选「启动 AI 自动扫描」弹窗（HUD 三栏）尺寸自适应 / 可拖拽 / 右栏定高滚动 / 雷达锁定中心
   仅改尺寸、栅格与滚动；不改配色变量、业务字段、扫描流程与按钮行为
   ========================================================================== */
#scan-modal .modal-card {
  position: relative;
  width: min(1240px, 92vw);
  height: min(864px, 86vh);
  min-width: 900px;
  min-height: 600px;
  max-width: none;
  max-height: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #050A17;
  border: 1px solid #17304F;
  border-radius: 14px;
}

/* 全屏：与既有 #scan-modal-expand / #scan-modal-restore 行为一致 */
#scan-modal.fs .modal-card {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
  border: none;
}

#scan-modal .modal-head { padding: 10px 16px; }
#scan-modal .modal-foot { padding: 9px 16px; }

/* 主体：不再整体滚动，交给 HUD 内部 */
#scan-modal .modal-body {
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#scan-modal .modal-body > #sc-progress.hud-stage {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 12px 14px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  display: flex;
  flex-direction: column;
}

/* 三栏栅格：左 236 / 中自适应 / 右 320 */
#scan-modal .hud-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: stretch;
}

#scan-modal .hud-aside {
  width: auto;
  flex: none;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* 左栏卡片多于可视高度时本地滚动，不被裁切 */
#scan-modal .hud-left {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 2px;
}
#scan-modal .hud-left > .hud-glass,
#scan-modal .hud-left > .hud-card { flex: 0 0 auto; }
#scan-modal .hud-left .hud-glass { padding: 12px 14px; }
#scan-modal .hud-left { gap: 8px; }

/* 右栏：容器高度固定，列表溢出只在内部纵向滚动 */
#scan-modal .hud-right {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#scan-modal .hud-right > .hud-feed,
#scan-modal .hud-right > .hud-glass.hud-feed {
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
}

#scan-modal .hud-feed-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

/* 命中信号条目：代码 58 / 名称自适应 / 涨幅 72，单行不折 */
#scan-modal .hud-feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px 5px 11px;
  border-radius: 6px;
  line-height: 1.25;
  font-size: 11px;
}
#scan-modal .hud-feed-item .hfi-main { display: block; min-width: 0; }
#scan-modal .hfi-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}
#scan-modal .hud-feed-item .hfi-code {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
#scan-modal .hud-feed-item .hfi-name {
  margin: 0;
  min-width: 0;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#scan-modal .hud-feed-item .hfi-tag { margin-top: 1px; max-width: none; font-size: 9.5px; }
#scan-modal .hud-feed-item .hfi-right { width: auto; min-width: 0; flex: none; text-align: right; }
#scan-modal .hud-feed-item .hfi-chg,
#scan-modal .hud-feed-item .hfi-score { font-variant-numeric: tabular-nums; }

/* 中栏：雷达锁几何中心（wrap 为正方形，canvas 居中） */
#scan-modal .hud-radar-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  justify-self: stretch;
  align-self: stretch;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
#scan-modal .hud-radar-container {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
#scan-modal .radar-center-core {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  margin: 0;
  max-width: 94%;
  min-width: 0;
  padding: 12px 16px;
  transform: translate(-50%, -50%);
}
#scan-modal .hud-main-status { font-size: 20px; }
#scan-modal .hud-phase-text {
  font-size: 12px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#scan-modal .hud-counter {
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 12px;
  padding: 4px 10px;
}

/* 全屏态：覆盖旧规则 #scan-modal.fs .hud-radar-wrap{width:min(540px,60vh)}，避免雷达贴左 */
#scan-modal.fs .hud-radar-wrap {
  width: 100%;
  max-width: 100%;
  height: 100%;
  aspect-ratio: auto;
  justify-self: stretch;
  align-self: stretch;
}

/* 右下角缩放柄 */
#scan-modal .hud-resize {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  z-index: 20;
  cursor: nwse-resize;
  touch-action: none;
  border-radius: 4px;
  opacity: .55;
  transition: opacity .2s ease, background .2s ease;
  background-image: repeating-linear-gradient(135deg, rgba(0, 240, 255, .7) 0 1px, transparent 1px 4px);
  background-size: 10px 10px;
  background-position: right bottom;
  background-repeat: no-repeat;
}
#scan-modal .hud-resize:hover { opacity: 1; background-color: rgba(0, 240, 255, .08); }

@media (max-width: 1160px) {
  #scan-modal .hud-layout { grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 12px; }
}
@media (max-height: 820px) {
  #scan-modal .modal-card { height: min(820px, 92vh); min-height: 0; }
}
@media (max-width: 980px) {
  #scan-modal .modal-card { min-width: 0; width: 96vw; }
  #scan-modal .hud-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  #scan-modal .hud-left { display: none; }
}

/* ===== 20261201 实时行情展示层（信号流时间戳 / 状态点 / 中断提示） ===== */
#scan-modal .hud-feed-item .hfi-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  margin-top: 1px; line-height: 1; font-size: 9.5px; color: #7c8ba1;
}
#scan-modal .hud-feed-item .hfi-dot {
  width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: #f0b429; box-shadow: 0 0 6px rgba(240, 180, 41, .5);
}
#scan-modal .hud-feed-item .hfi-dot.live {
  background: #2fd07a; box-shadow: 0 0 6px rgba(47, 208, 122, .55);
}
#scan-modal .hud-feed-item .hfi-time {
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums; letter-spacing: .2px; color: #8b9bb2;
}
#scan-modal .hud-feed-item .hfi-chg.is-stale { color: #7c8ba1; font-weight: 600; }
#scan-modal .hud-feed-item .hfi-sub .hfi-dot { display: inline-block; margin: 0 2px 0 4px; vertical-align: -1px; }
#scan-modal .hud-feed-item .hfi-sub .hfi-time { display: inline; font-size: 8.5px; margin-left: 1px; }
#scan-modal .sc-live-alert {
  margin: 0 0 6px; padding: 5px 8px; border-radius: 6px; flex: none;
  background: rgba(220, 55, 55, .16); border: 1px solid rgba(220, 55, 55, .45);
  color: #ff9b95; font-size: 10.5px; line-height: 1.35;
}

/* ===== 20261201 实时行情语义恢复：口径说明 / HUD 筛选口径 / 获取中态 ===== */
#scan .sc-live-note {
  display: inline-block; margin-left: 2px; font-size: 11px; color: #94a3b8; white-space: nowrap;
}
#scan-modal .hud-screenmode {
  margin: 0 0 6px; padding: 3px 8px; border-radius: 5px; font-size: 10.5px; line-height: 1.4;
  color: #9fb0c6; background: rgba(148, 163, 184, .10); border: 1px solid rgba(148, 163, 184, .28);
  font-variant-numeric: tabular-nums;
}
#scan-modal .hud-screenmode.is-live {
  color: #6ee7b7; background: rgba(47, 208, 122, .12); border-color: rgba(47, 208, 122, .38);
}
#scan-modal .hud-feed-item .hfi-chg.is-pending {
  color: #8b9bb2; font-weight: 600; font-size: 10px; letter-spacing: .3px;
}
@media (max-width: 1399px) {
  /* 工具条严格单行优先：窄屏隐藏「勾选仅改变选股口径」小字，语义仍在 title 里 */
  #scan .sc-live-note { display: none; }
}

/* ===== 20261202 · 扫描规则「全折叠」+ 通用筛选参数紧凑重排（只动布局） ===== */
#scan .scan-head-row { flex-wrap: nowrap; gap: 10px; margin-bottom: 8px; }
#scan .scan-head-row label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#scan .sc-fold-all {
  flex: 0 0 auto; margin-left: auto; height: 26px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid #DDE3ED; border-radius: 8px; background: #fff;
  font-size: 12px; font-weight: 600; color: #5A6675; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
#scan .sc-fold-all b {
  display: inline-block; min-width: 14px; padding: 0 4px; border-radius: 9px;
  background: #F1F4F9; font-size: 10px; font-weight: 600; color: #5A6675; text-align: center;
}
#scan .sc-fold-all .ico { font-size: 10px; transform: rotate(0deg); transition: transform .18s; }
#scan .sc-fold-all:hover { border-color: #1F6FEB; color: #1F6FEB; }
#scan .sc-fold-all.all { background: #EAF1FE; border-color: #CFE0FB; color: #1F6FEB; }
#scan .sc-fold-all.all b { background: #fff; color: #1F6FEB; }
#scan .sc-fold-all.all .ico { transform: rotate(-90deg); }
#scan .sc-fold-all:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 1100px) { #scan .sc-fold-all b { display: none; } #scan .sc-fold-all { padding: 0 8px; } }

/* 通用筛选参数：两列 + 紧凑行距 */
#scan .sf-grid { padding: 14px 20px 16px; }
#scan .sf-head { font-size: 14px; margin: 0 0 12px; line-height: 1.35; }
#scan .sf-grid-2 { column-gap: 16px; row-gap: 10px; }
#scan .sf-grid-2 .sf-field { gap: 5px; }
#scan .sf-grid-2 .sf-field > label { font-size: 12px; line-height: 1.3; }
#scan .sf-grid-2 .sf-field input[type="number"],
#scan .sf-grid-2 .sf-field input[type="text"] {
  height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; background: #F4F6FA;
}
#scan .sf-grid-2 .sf-range { gap: 8px; }
#scan .sf-grid-2 .sf-range span { font-size: 12px; }
#scan .sf-grid-2 .sf-hint, #scan .sf-hint { font-size: 11px; line-height: 1.3; }
#scan .sf-row-inline { margin-top: 12px; gap: 16px; align-items: flex-start; }
#scan .sf-block { gap: 6px; }
#scan .sf-row-inline .sf-block + .sf-block { border-left: 1px solid #EFF2F7; padding-left: 16px; }
#scan .sf-lbl { font-size: 12px; line-height: 1.3; }
#scan .sf-seg-row { gap: 8px; }
#scan .sf-seg-row .seg { height: 23px; padding: 0 12px; min-width: 0; font-size: 12px; border-radius: 999px; }
#scan .sf-mk-row { min-height: 0; gap: 8px; }
#scan .sf-mk-row label.chip { height: 23px; min-height: 23px; padding: 0 10px; font-size: 11.5px; gap: 5px; }
#scan .sf-mk-row label.chip input[type="checkbox"] { width: 12px; height: 12px; flex: 0 0 12px; }
#scan .sf-mk-row .sf-link { font-size: 11.5px; }
#scan .sf-wide { margin-top: 10px; flex-direction: row; align-items: center; gap: 6px; }
#scan .sf-wide > label { flex: 0 0 52px; font-size: 12px; line-height: 1.3; }
#scan .sf-wide .sf-codes-row { flex: 1 1 auto; gap: 10px; min-width: 0; }
#scan .sf-wide .sf-codes-row input { height: 32px; border-radius: 8px; font-size: 13px; padding: 0 10px; background: #F4F6FA; }
#scan .sf-wide .sf-codes-row .sf-hint { font-size: 11px; }
#scan .sf-foot { margin-top: 10px; padding-top: 8px; font-size: 11px; line-height: 1.4; }
@media (max-width: 899px) {
  #scan .sf-grid-2 { grid-template-columns: minmax(0, 1fr); }
  #scan .sf-row-inline { flex-direction: column; gap: 10px; }
  #scan .sf-row-inline .sf-block + .sf-block { border-left: 0; padding-left: 0; }
  #scan .sf-wide { flex-direction: column; align-items: flex-start; }
  #scan .sf-wide > label { flex: 0 0 auto; }
}
#scan .sf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#scan .sf-grid-2 .sf-field { grid-column: auto; }
/* 20261202 二轮：四字段改「标签左置 + 输入右展」，把两行压到 2×30px */
#scan .sf-grid-2 .sf-field { flex-direction: row; align-items: center; gap: 8px; }
#scan .sf-grid-2 .sf-field > label { flex: 0 0 104px; font-size: 12px; line-height: 1.2; }
#scan .sf-grid-2 .sf-field input[type="number"],
#scan .sf-grid-2 .sf-field input[type="text"] { flex: 1 1 auto; height: 30px; min-width: 0; }
#scan .sf-grid-2 .sf-range { flex: 1 1 auto; min-width: 0; }
#scan .sf-grid-2 .sf-hint { display: none; }
#scan .sf-foot::after { content: " 「最多选出 N 只」留空 = 不限，只做本页分页上限，不进入扫描请求。"; }
#scan .sf-wide > label { flex: 0 0 auto; min-width: 56px; white-space: nowrap; }
/* 窄屏不再隐藏计数徽标：徽标文字是「9 组」的语义组成，隐藏后只剩「全折叠 组」读不通 */
@media (max-width: 1100px) {
  #scan .sc-fold-all { padding: 0 10px; }
  #scan .sc-fold-all b { display: inline-block; padding: 0 4px; }
}

/* ===== 20261202d：扫描按钮三态（idle / running / done） ===== */
#sc-run.sc-run{min-width:148px;text-align:center;white-space:nowrap;transition:background .18s ease,color .18s ease,border-color .18s ease,opacity .18s ease;display:inline-flex;align-items:center;justify-content:center;gap:6px}
#sc-run.sc-run.is-running{opacity:.92;box-shadow:0 0 0 3px rgba(31,111,235,.10)}
#sc-run.sc-run.is-running .sc-run-dot{width:8px;height:8px;border-radius:50%;background:#fff;display:inline-block;animation:scRunBreath 2s ease-in-out infinite}
@keyframes scRunBreath{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.72)}}
#sc-run.sc-run.is-done{background:#fff;color:#1F6FEB;border:1px solid #CFE0FB;box-shadow:none;opacity:1}
#sc-run.sc-run.is-done:hover{background:#EAF1FE;border-color:#1F6FEB}
#sc-run.sc-run.is-running:hover{opacity:1}
#sc-run:disabled{opacity:.55}

/* ===== 20261203：通用筛选参数·名单质量闸门一行 ===== */
.sf-flags{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin:4px 0 0;font-size:12px;color:#5A6675}
.sf-flags .sf-chk{display:inline-flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap}
.sf-flags .sf-chk input{width:13px;height:13px;accent-color:#1F6FEB;cursor:pointer}
.sf-flags .sf-num{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.sf-flags .sf-num label{font-size:12px;color:#5A6675}
.sf-flags .sf-num input{width:64px;height:26px;padding:0 8px;border:1px solid #DDE3ED;border-radius:8px;background:#F4F6FA;font-size:12px;color:#3C4A5C;outline:none}
.sf-flags .sf-num input:focus{border-color:#1F6FEB;background:#fff}
.sf-flags .sf-num i{font-style:normal;color:#8A94A6}

/* ===== 20261203b：六字段压成三列两行，闸门压成一行药丸 ===== */
#scan .sf-grid { padding: 10px 20px 12px; }
#scan .sf-head { margin: 0 0 8px; }
#scan .sf-grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
#scan .sf-grid-2 .sf-field > label { flex: 0 0 100px; }
#scan .sf-flags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; font-size: 12px; }
#scan .sf-flags .sf-chk { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; border: 1px solid #DDE3ED; border-radius: 999px; background: #F4F6FA; color: #3C4A5C; cursor: pointer; white-space: nowrap; line-height: 1; }
#scan .sf-flags .sf-chk input { width: 12px; height: 12px; margin: 0; accent-color: #1F6FEB; cursor: pointer; }
@media (max-width: 1180px) { #scan .sf-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) { #scan .sf-grid-2 { grid-template-columns: minmax(0, 1fr); } }


/* 2026-12-03 ah-statusbar */
/* 白卡工具条：只包这一行，右侧四控件原样 */
.ah-bar{background:var(--h-card);border:1px solid var(--h-bd);border-radius:11px;padding:10px 14px;min-height:58px;box-shadow:none;flex-wrap:nowrap;justify-content:space-between;gap:10px}
/* 四列运行态 */
.ah-statusbar{display:flex;align-items:center;gap:0;min-width:0;flex:1 1 auto}
.ah-stat{display:flex;flex-direction:column;justify-content:center;gap:1px;padding:0 14px;border-left:1px solid var(--h-bd);min-width:0;white-space:nowrap}
.ah-stat:first-child{padding-left:0;border-left:0}
.ah-stat .lb{font-size:10.5px;color:var(--h-mu);line-height:1.25;font-weight:400}
.ah-stat .vl{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:700;color:var(--h-tx);line-height:1.25;min-width:0;white-space:nowrap}
.ah-stat .vl b{font-weight:700}
.ah-stat .vl small{font-size:10.5px;font-weight:400;color:var(--h-mu);white-space:nowrap}
.ah-stat .ah-sdot{width:7px;height:7px;border-radius:50%;background:var(--h-mu);flex:0 0 auto;box-shadow:0 0 0 3px rgba(140,151,166,.12)}
.ah-stat[data-state="on"] .ah-sdot{background:var(--h-grn);box-shadow:0 0 0 3px rgba(23,142,96,.12)}
.ah-stat[data-state="wait"] .ah-sdot{background:var(--h-am);box-shadow:0 0 0 3px rgba(183,121,31,.12)}
.ah-stat[data-state="manual"] .ah-sdot{background:var(--h-pri);box-shadow:0 0 0 3px rgba(47,107,255,.12)}
.ah-stat[data-state="off"] .ah-sdot{background:var(--h-mu);box-shadow:0 0 0 3px rgba(140,151,166,.12)}
.ah-stat[data-state="off"] .vl b{color:var(--h-mu)}
.ah-kpis{margin-top:9px}
/* 深色：停止全自动按钮点亮（红框标注项） */
body:not([data-theme="light"]) .ae-hud .ah-sw[data-on="1"]{color:#fff;background:var(--h-pri);border-color:var(--h-pri);box-shadow:0 2px 10px rgba(47,107,255,.35),0 0 0 1px rgba(91,155,255,.22)}
body:not([data-theme="light"]) .ae-hud .ah-sw[data-on="1"]::before{background:rgba(255,255,255,.92)}
body:not([data-theme="light"]) .ae-hud .ah-sw[data-on="1"]::after{background:#fff}
/* 响应式 P08 */
@media (max-width:1100px){.ah-stat{padding:0 10px}}
@media (max-width:960px){
  .ah-bar{flex-wrap:wrap;row-gap:8px;align-items:center}
  .ah-statusbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 0;width:100%;flex:1 1 100%}
  .ah-stat{border-left:0;padding:0 0 0 10px}
  .ah-stat:nth-child(odd){padding-left:0}
}
@media (max-width:760px){.ah-bar-r{width:100%;justify-content:flex-end;margin-left:0;flex-wrap:nowrap}}
/* 2026-12-03 状态条深色分隔与栅格对齐 */
body:not([data-theme="light"]) .ae-hud .ah-stat{border-left-color:var(--h-bd2)}
@media (max-width:960px){.ah-statusbar{align-content:center}.ah-stat{min-height:32px}}
body:not([data-theme="light"]) .ae-hud .ah-stat{border-left-color:rgba(236,230,218,.14)}
@media (max-width:960px){.ah-statusbar{grid-auto-rows:min-content;align-content:start;row-gap:8px}.ah-stat{min-height:0}}
/* P08 实际容器宽度（含左侧竖栏）下的安全断点：1099 及以下两行布局，控件整行右对齐 */
@media (max-width:1099px){
  .ah-bar{flex-wrap:wrap;row-gap:10px}
  .ah-statusbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:min-content;align-content:start;row-gap:8px;width:100%;flex:1 1 100%}
  .ah-stat{border-left:0;padding:0 0 0 10px;min-height:0}
  .ah-stat:nth-child(odd){padding-left:0}
  .ah-bar-r{width:100%;justify-content:flex-end;margin-left:auto;flex-wrap:nowrap;gap:6px}
}
/* ≤1099：四项改为横向紧凑排布，控件整行右对齐（避免 2×2 的右列大片留白） */
@media (max-width:1099px){
  .ah-statusbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 26px;width:100%;flex:1 1 100%}
  .ah-stat{display:flex;flex-direction:row;align-items:baseline;gap:8px;border-left:0;padding:0;min-height:0}
  .ah-stat .lb{flex:0 0 auto}
}
@media (max-width:1099px){
  .ah-statusbar{flex:0 0 100%;width:100%}
  .ah-bar-r{width:100%;justify-content:flex-end;margin-left:0;flex-wrap:nowrap;gap:6px}
  .ah-btn,.ah-sw,.ah-inp{flex:0 0 auto;white-space:nowrap}
}


/* 2026-12-03 ah-chain */
/* 状态行白卡（P03） */
.ah-status{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:nowrap;margin:9px 0 10px;padding:8px 12px;min-height:48px;background:var(--h-card);border:1px solid var(--h-bd);border-radius:11px;overflow:visible;box-sizing:border-box}
.ah-hint{display:none}
.ah-status-r{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:auto}
/* 执行链路（P05） */
.ah-chain{display:flex;align-items:center;justify-content:flex-start;gap:5px;min-width:0;flex:1 1 auto;white-space:nowrap}
.ah-chain-lb{font-size:10px;color:var(--h-mu);letter-spacing:.2px;margin-right:2px;flex:0 0 auto}
.ah-chain-node{display:flex;align-items:center;gap:4px;min-width:0;flex:0 0 auto}
.ah-chain-idx{width:14px;height:14px;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:700;color:var(--h-grn);background:rgba(23,142,96,.10);border:1px solid rgba(23,142,96,.22);flex:0 0 auto;font-style:normal}
.ah-chain-tx{display:flex;flex-direction:column;gap:2px;line-height:1.2;min-width:0}
.ah-chain-nm{font-size:9.5px;color:var(--h-mu);white-space:nowrap}
.ah-chain-vl{font-size:10.5px;font-weight:700;color:var(--h-tx);white-space:nowrap}
.ah-chain-vl small{margin-left:2px;font-size:9px;font-weight:400;color:var(--h-mu)}
.ah-chain-vl .ok{color:var(--h-grn)}
.ah-chain-vl .bad{color:var(--h-red)}
.ah-chain-sep{font-size:10px;color:#C3CCD9;padding:0 1px}
.ah-chain-node[data-state="active"] .ah-chain-idx{color:var(--h-pri);background:rgba(47,107,255,.10);border-color:rgba(47,107,255,.28)}
.ah-chain-node[data-state="done"] .ah-chain-idx{color:var(--h-grn);background:rgba(23,142,96,.10);border-color:rgba(23,142,96,.22)}
.ah-chain-node[data-state="error"] .ah-chain-idx{color:var(--h-red);background:rgba(216,68,60,.10);border-color:rgba(216,68,60,.24)}
.ah-chain-node[data-state="off"]{opacity:.55}
body:not([data-theme="light"]) .ae-hud .ah-chain-sep{color:rgba(163,176,196,.55)}
/* 全市场卡副标题行情着色（P01） */
.ah-f b{font-weight:700}
.ah-f b[data-rg="恐慌"]{color:var(--h-red)}
.ah-f b[data-rg="空头"]{color:var(--h-am)}
.ah-f b[data-rg="震荡"]{color:var(--h-sub)}
.ah-f b[data-rg="多头"],.ah-f b[data-rg="强多头"]{color:var(--h-grn)}
.ah-f b[data-rg="识别中"]{color:var(--h-mu)}
/* 响应式（P08） */
@media (max-width:1260px){
  .ah-status{flex-wrap:wrap;align-items:flex-start;gap:8px}
  .ah-chain{width:100%;flex:1 1 100%}
  .ah-status-r{width:100%;justify-content:flex-end;margin-left:0}
}
@media (max-width:980px){
  .ah-chain{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 10px}
  .ah-chain-lb{grid-column:1 / -1}
  .ah-chain-sep{display:none}
}
@media (max-width:760px){
  .ah-chain{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ah-status-r{gap:8px}
}

/* ===== 20261203 扫描参数取用时序修复：规则变更提示条 ===== */
.sc-rule-dirty{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:8px 12px;border:1px solid #F0D9A8;background:#FFF9EE;border-radius:8px;font-size:12px;line-height:1.5;color:#8A6413}
.sc-rule-dirty.hidden{display:none}
.sc-rule-dirty-dot{width:6px;height:6px;border-radius:50%;background:#D99A2B;flex:0 0 auto}
.sc-rule-dirty b{color:#6E4D08;font-weight:600}
#sc-run.is-dirty{border-color:#D99A2B;background:#FFF6E4;color:#8A6413}