/* ============================================================================
   app.css —— 全站**唯一**的样式表（涨停看板 + 选股画线）

   合并前的两份，都是从 juziStock-devkit-20261014 逐字节搬来的：
     app.css   56KB   看板：.topbar/.nav/.syncbar/.card/.ld-*，以及 pool/ladder/
                      monitor/emotion/panorama 各页
     juzi.css  24KB   选股画线：header/.qlist/.wrap+aside+main/#chart/.vpst-* 等
                      .sday/.pf-* 等
   两份各自都是本页面的**唯一**样式表，所以都按「我是唯一的」写了自己的
   :root / * / html,body / body / .wrap / aside。直接拼接会互相踩：
     · 看板的 .wrap 是整页容器（max-width:1560px; margin:0 auto），
       juzi 的 .wrap 是「左列表 + 右图」的 flex 外壳（display:flex）——
       看板三个页面都用 <div class="wrap" id="main">，撞上就整页塌成横排；
     · 看板天梯右栏是 <aside class="ld-right">（在 .ld-split 网格里），
       juzi 的 aside 是 288px 固定宽侧栏；
     · 两边的 body 字号 14px / 13px、--up/--down/--bg/--line 也不同色。

   所以下面这份是**合并且划了边界**的：juzi.css 接在后面（层叠顺序与原来
   「app.css → juzi.css」一致），但上面那 7 处页面级选择器被限定在
   html.page-draw 之下 —— 只有 draw.html 的 <html class="page-draw"> 命中，
   看板各页完全看不到它们。其余 180 余条（.vpst-* / .sday / #chart /
   header .grp / .it / .pf-* 等）在看板 DOM 上没有任何元素可匹配（已逐条核过
   类名与标签），原样保留。

    本注释里绝对不能再出现「星号紧跟斜杠」这两个字符 —— 那会在这里提前把
    注释闭合掉，后面整段说明就被当成选择器一路吞到第 1 部分的 :root，那条
    :root 便以「无效选择器的规则」被整条丢弃：--panel/--bg 全没了，全站卡片
    背景变透明（合并时正是 .vpst-* 后面那个斜杠踩过一次）。

   第 1 部分与原 app.css **字节相同**（原文件是 CRLF，这里保持 CRLF）；
   原件另存于 archive/frontend-unused/css-original/，需要和 devkit 对拍时用。
   ============================================================================ */
/* ---------- 第 1 部分：看板（原 app.css，一字未改）---------- */
/* app.css —— 涨停看板 · 全局样式（浅色主题，A股涨红跌绿） */
:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --line: #e8ebef;
  --line-soft: #f2f4f7;
  --text: #1f2329;
  --text-2: #5c6672;
  --text-3: #98a1ac;
  --up: #d92b2b;          /* 涨 = 红 */
  --up-bg: #fdeeee;
  --down: #12a35a;        /* 跌 = 绿 */
  --down-bg: #eaf7f0;
  --brand: #2f5bd0;
  --brand-bg: #eef2fe;
  --gold: #b8860b;
  --gold-bg: #fdf6e3;
  /* 「板块最高身位」的专属色：紫。以前用金色，和「炸板」那条色条撞在一起，
     两条信息都靠金/黄分不出来，现在一个绿（炸板）一个紫（最高身位）。 */
  --purple: #7b4fd0;
  --purple-bg: #f4eefd;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }

/* 竖直滚动条常驻「沟槽」。
   各页高度差别很大（板块全景 ~11000px、涨停天梯 ~1200px、市场情绪 ~930px、
   选股画线正好一屏），来回切页时滚动条会时有时无；而顶栏内层与 .wrap 都是
   `max-width:1560px; margin:0 auto` 居中的，内容区一窄 15px，整页（含顶栏）
   就左右各平移 7.5px —— 这就是「切换页面时明显抖一下」的主因。
   `scrollbar-gutter: stable` 让沟槽恒定占位，内容宽度不再随页面高度变化。
   不支持该属性的老浏览器用 `overflow-y: scroll` 兜底（滚动条常显，同样恒定）。 */
html { scrollbar-gutter: stable; }
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

/* 全站统一内容宽度：所有页面（板块全景 / 监测页 / 涨停池 / 市场情绪）主内容区
   与顶栏同一个宽度，切页时不再发生「变宽变窄」，避免割裂感。
   窄屏放不下时仍由各表格自己的横向滚动（首列吸附）兜底，不会撑破页面。 */
.wrap { max-width: 1560px; margin: 0 auto; padding: 20px 18px 70px; }

/* ---------------- 顶栏 ---------------- */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar .inner {
  max-width: 1560px; margin: 0 auto; padding: 0 18px;
  display: flex; align-items: center; gap: 22px; height: 56px;
}
.logo { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.logo span { color: var(--up); }
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 6px 14px; border-radius: 999px; color: var(--text-2);
  font-size: 13.5px; transition: .15s;
}
.nav a:hover { background: var(--line-soft); color: var(--text); }
.nav a.on { background: var(--brand); color: #fff; }
.topbar .right { margin-left: auto; color: var(--text-3); font-size: 12.5px; }
/* 顶栏右侧的时间，和它左边那个「后台」入口。
   入口**只有管理会话才渲染**（见 common.js::rightBar）—— 拿访问密码的人看不到，
   所以它不会变成第五个顶栏入口，只是给管理员留一条从看板回后台的路。 */
.topbar .right .tb-now { font-variant-numeric: tabular-nums; }
.adm-entry {
  display: inline-block; vertical-align: middle; margin-right: 10px;
  font-size: 12.5px; color: var(--text-2); text-decoration: none;
  border: 1px solid #d5d9e0; border-radius: 999px; padding: 2px 10px;
  transition: .15s;
}
.adm-entry:hover { border-color: var(--brand); color: var(--brand); }

/* ---------------- 通用 ---------------- */
h1 { font-size: 21px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 26px 0 12px; }
.sub { color: var(--text-3); font-size: 12.5px; margin-bottom: 16px; }

/* ---------------- 工具栏行内的「更新于」 ----------------
   与同步状态条同处一行，样式压到最小、只做补充信息。
   `white-space: nowrap` 是必须的：工具栏是 flex-wrap 的，不加这一条，
   窄屏下「更新于」和状态条会被拆到两行 —— 恰恰是要避免的。 */
.uptime-bar { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.uptime { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }

.cards { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card {
  flex: 1; min-width: 132px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 15px;
}
.card .k { font-size: 12px; color: var(--text-3); }
.card .v { font-size: 22px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.card .v.red { color: var(--up); }
.card .v.green { color: var(--down); }
.card .v small { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 3px; }
.card .v .delta {
  font-style: normal; font-size: 12px; font-weight: 600; margin-left: 6px;
  padding: 0 6px; border-radius: 5px; vertical-align: 2px;
}
.card .v .delta.up { background: var(--up-bg); color: var(--up); }
.card .v .delta.down { background: var(--down-bg); color: var(--down); }

.toolbar {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 14px; margin-bottom: 14px;
}
.btn {
  border: 1px solid #d5d9e0; background: #fff; border-radius: 8px;
  padding: 6px 15px; font-size: 13px; cursor: pointer; color: var(--text-2);
  transition: .15s; white-space: nowrap; font-family: inherit;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 纯状态标签（如全景页的「全部」）：长得像按钮但不可点 */
.btn.static { cursor: default; }
.btn.primary { background: var(--up); border-color: var(--up); color: #fff; }
.btn.primary:hover { opacity: .88; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
select, input[type=text], input[type=search] {
  border: 1px solid #d5d9e0; border-radius: 8px; padding: 6px 11px;
  font-size: 13px; background: #fff; color: var(--text); outline: none;
}
select:focus, input:focus { border-color: var(--brand); }
.spacer { margin-left: auto; }

/* ---------------- 指标条（替代大方块卡片，一行放完） ---------------- */
.metrics {
  display: flex; flex-wrap: wrap; align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 16px; margin-bottom: 12px;
}
.metrics .m {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 3px 15px 3px 0; margin-right: 15px;
  border-right: 1px solid var(--line);
}
.metrics .m:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.metrics .m i { font-style: normal; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.metrics .m b {
  font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.metrics .m b.red { color: var(--up); }
.metrics .m b.green { color: var(--down); }
.metrics .m b small { font-size: 11.5px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.metrics .m b .delta {
  font-style: normal; font-size: 11.5px; font-weight: 600; margin-left: 5px;
  padding: 0 5px; border-radius: 5px; vertical-align: 2px;
}
.metrics .m b .delta.up { background: var(--up-bg); color: var(--up); }
.metrics .m b .delta.down { background: var(--down-bg); color: var(--down); }

.chk {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer; white-space: nowrap;
}
.chk input { margin: 0; cursor: pointer; }

/* ---------------- 工具栏「更多」下拉 ---------------- */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { border-color: var(--brand); color: var(--brand); }
.menu-body {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 26px rgba(31, 35, 41, .13); padding: 5px;
  min-width: 188px; display: flex; flex-direction: column; gap: 1px;
}
.menu-body .mi {
  text-align: left; border: 0; background: none; padding: 7px 11px;
  font-size: 13px; color: var(--text-2); border-radius: 7px; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.menu-body .mi:hover { background: var(--brand-bg); color: var(--brand); }

/* ---------------- 排序表头 ---------------- */
th .sortable {
  border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  display: flex; flex-direction: column; gap: 1px; line-height: 1.28;
}
th.num .sortable { align-items: flex-end; }
th.c .sortable { align-items: center; }
th:not(.num):not(.c) .sortable { align-items: flex-start; }
th .sortable:hover, th .sortable.on { color: var(--brand); }
th .sortable .lbl { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
th .sortable .caret { font-style: normal; font-size: 9px; opacity: .6; }
th .sortable.on .caret { opacity: 1; }
th .sortable .dh {
  font-style: normal; font-size: 10.5px; font-weight: 400;
  color: var(--text-3); white-space: nowrap;
}

/* ---------------- 折叠区 ---------------- */
.fold {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); margin-top: 12px; overflow: hidden;
}
.fold > summary {
  list-style: none; cursor: pointer; padding: 11px 16px;
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); user-select: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { color: var(--brand); }
.fold > summary .fsub { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.fold > summary .fcaret { margin-left: auto; font-size: 10px; color: var(--text-3); }
.fold > summary .fcaret::after { content: '▾'; }
.fold[open] > summary .fcaret::after { content: '▴'; }
.fold .fbody { padding: 0 16px 14px; }
.fold .fbody table { font-size: 12.5px; }
.fold .fbody th, .fold .fbody td { padding: 7px 10px; }

/* ---------------- 首板跟踪宽表 ---------------- */
table.track { table-layout: auto; }
table.track th, table.track td { padding: 7px 9px; }
table.track .idx { width: 34px; color: var(--text-3); }
table.track .sub-h { color: var(--text-2); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
table.track td.cell { min-width: 58px; }
table.track .cum { font-weight: 700; white-space: nowrap; }
table.track .sname { font-weight: 700; }
table.track .ptags { margin-top: 2px; line-height: 1.1; }
table.track .ptags .tag { font-size: 10.5px; padding: 0 6px; }
table.track td.nm { white-space: nowrap; }

/* ---------------- 监测页（结构照搬 limit_up_monitor_app） ---------------- */
/* 服务端 SVG 用到的变量：涨红跌绿、涨空心跌实心，与本项目主题一致 */
:root {
  --chart-surface: #ffffff;
  --chart-border: #eceff3;
  --chart-grid: #f1f3f6;
  --chart-label: #98a1ac;
  --chart-up: var(--up);
  --chart-down: var(--down);
  --chart-up-fill: var(--up-bg);
  --chart-ma5: #e0a03a;
  --chart-ma10: #6a86d8;
  --chart-ma20: #b07cc6;
}

.monhead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin: 16px 0 8px;
}
.monhead .kicker {
  display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 2px;
}
.monhead h2 { margin: 0; font-size: 16.5px; }
.monhead .cap { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }

/* 宽表可横向滚动，页面本身不被撑破 */
.monwrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table.monitor { table-layout: auto; min-width: 1180px; }
table.monitor th, table.monitor td { white-space: nowrap; }
table.monitor th.nm, table.monitor td.nm { min-width: 138px; }
table.monitor th.num, table.monitor td.num { min-width: 74px; }
table.monitor td.cum { font-weight: 700; }
table.monitor .kh { min-width: 280px; }
table.monitor td.kcell { padding: 9px 8px; text-align: center; vertical-align: middle; }

/* 表格要横向滚动，把「股票名称」列吸附在左边，滑到右边也看得见是谁 */
table.monitor th.nm, table.monitor td.nm {
  position: sticky; left: 0; z-index: 2;
  background: var(--panel);
  box-shadow: 1px 0 0 var(--line);
}
table.monitor thead th.nm { z-index: 3; }

/* 行内日 K：SVG 只有 viewBox（820×360），宽高全交给 CSS —— 格子多宽就画多宽，
   上限 304px；这样窄屏也能整列显示，不必横向拖动。 */
.kline-chart {
  display: block; width: 100%; max-width: 304px;
  height: auto; aspect-ratio: 820 / 360;
  margin: 0 auto;
}
.kline-wait { color: var(--text-3); font-size: 11.5px; }

/* 可点缩略图：去掉按钮默认样式，鼠标上浮一点点作「可点」暗示 */
.ktrigger {
  display: block; width: 100%; border: 0; border-radius: 8px; padding: 0;
  background: transparent; cursor: zoom-in;
  transition: transform .16s ease, filter .16s ease;
}
.ktrigger:hover { transform: translateY(-1px); filter: saturate(1.08); }
.ktrigger:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* 行内 K 线的**占位块**：滚进视口才被 pool.js 的 paintKLazy 换成真的 SVG。
   宽高必须与 .kline-chart 完全一致（width / max-width / aspect-ratio 三件套），
   否则后画出来的图会把后面的行顶下去，滚动位置乱跳。 */
.k-slot {
  display: block; width: 100%; max-width: 304px;
  height: auto; aspect-ratio: 820 / 360;
  margin: 0 auto; border-radius: 6px;
  background: repeating-linear-gradient(135deg, #f6f7f9 0 6px, #edf0f3 6px 12px);
}
.k-slot-done { background: transparent; }

/* K 线放大弹窗（对应参考项目的 KlineDialog） */
.kline-dialog {
  position: fixed; inset: 50% auto auto 50%;
  width: min(920px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100vh - 32px); overflow: auto;
  transform: translate(-50%, -50%);
  margin: 0; padding: 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.kline-dialog::backdrop { background: rgba(10, 16, 20, .62); }
.kd-inner { padding: 18px 18px 14px; }
.kd-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 13px;
}
.kd-head .kicker {
  display: block; color: var(--text-3); font-size: 10.5px;
  letter-spacing: .09em; text-transform: uppercase;
}
.kd-head h2 { margin: 4px 0 0; font-size: 19px; font-weight: 650; }
.kd-head h2 code {
  margin-left: 6px; color: var(--text-3); font-size: 11.5px; font-weight: 400;
}
.kd-head p { margin: 5px 0 0; color: var(--text-3); font-size: 12px; }
.icon-btn {
  display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center;
  border: 1px solid var(--line); border-radius: 9px; background: transparent;
  color: var(--text-3); font-size: 14px; cursor: pointer;
}
.icon-btn:hover { background: var(--line-soft); color: var(--text); }
.kd-chart { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.kd-chart svg { display: block; width: 100%; max-width: 100%; height: auto; }
.kd-foot {
  display: flex; justify-content: space-between; gap: 14px;
  padding-top: 11px; color: var(--text-3); font-size: 11.5px;
}

/* 轻提示条 */
.hint {
  background: var(--gold-bg); border: 1px solid #f0e0b8; color: #7a5c10;
  border-radius: 10px; padding: 9px 14px; font-size: 12.5px; margin-bottom: 10px;
}
.hint b { color: #5c4409; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tabs button {
  border: 0; background: none; padding: 10px 16px; font-size: 14px; cursor: pointer;
  color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tabs button .tab-sub {
  display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 600;
  margin-left: 6px; padding: 0 6px; border-radius: 999px;
  background: var(--line-soft); color: var(--text-3); vertical-align: 1px;
}
.tabs button.on .tab-sub { background: var(--brand-bg); color: var(--brand); }

/* ---------------- 日期栏 ---------------- */
.datestrip {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 12px; margin-bottom: 12px;
}
.datestrip .dslabel { font-size: 12.5px; color: var(--text-2); white-space: nowrap; line-height: 1.3; }
.datestrip .dslabel i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.ds-scroll {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px;
  scrollbar-width: thin; scroll-behavior: smooth;
}
.ds-scroll::-webkit-scrollbar { height: 6px; }
.ds-scroll::-webkit-scrollbar-thumb { background: #d8dde4; border-radius: 3px; }
.ds-scroll::-webkit-scrollbar-track { background: transparent; }
.dchip {
  flex: 0 0 auto; border: 1px solid #dfe3e9; background: #fff; border-radius: 9px;
  padding: 4px 10px 5px; cursor: pointer; text-align: center; line-height: 1.32;
  min-width: 74px; font-family: inherit; font-size: 11px; color: var(--text-2);
  transition: .15s;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 48px;
}
.dchip:hover { border-color: var(--brand); background: #f7f9ff; }
.dchip b { display: block; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.dchip i { display: block; font-style: normal; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.dchip em { display: block; font-style: normal; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.dchip.on { background: var(--brand); border-color: var(--brand); }
.dchip.on b, .dchip.on i, .dchip.on em { color: #fff; }
/* 最新交易日的「次日」还没发生（下个交易日未收盘）——显式标出来，别让人以为数据丢了 */
.dchip em.pending { color: var(--text-3); font-weight: 400; }
.dchip.on em.pending { color: #fff; opacity: .82; }

/* 日期栏分页：右端「更早 30 天」。日期栏是新→旧排列，所以「更早」在右边；
   虚线与 chip 区分开，别让人误以为那也是某一天的数据。 */
.dmore {
  flex: 0 0 auto; border: 1px dashed #cfd6e0; background: #fbfcfe;
  border-radius: 9px; padding: 4px 10px 5px; cursor: pointer; text-align: center;
  min-width: 74px; min-height: 48px; font-family: inherit; font-size: 11.5px;
  color: var(--text-2); transition: .15s;
  display: flex; align-items: center; justify-content: center;
}
.dmore:hover { border-color: var(--brand); color: var(--brand); background: #f7f9ff; }
.dmore-end {
  flex: 0 0 auto; align-self: center; padding: 0 8px;
  font-size: 11px; color: var(--text-3); white-space: nowrap;
}

tr.rowlink { cursor: pointer; }
tr.cur-date { background: var(--brand-bg); }
.nowrap { white-space: nowrap; }

/* ---------------- 表格 ---------------- */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line-soft); }
th {
  background: #fafbfc; color: var(--text-2); font-weight: 600; font-size: 12.5px;
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
tbody tr:hover { background: #fafcff; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.c, th.c { text-align: center; }
.nm { font-weight: 600; }
.code { color: var(--text-3); font-size: 11.5px; font-weight: 400; }

.up-text { color: var(--up); font-weight: 600; }
.down-text { color: var(--down); font-weight: 600; }
.flat { color: var(--text-3); }

.badge { display: inline-block; font-size: 11px; border-radius: 5px; padding: 1px 7px; font-weight: 600; }
.badge.fb { background: var(--up-bg); color: var(--up); }
.badge.lb { background: var(--brand-bg); color: var(--brand); }
.badge.hi { background: var(--gold-bg); color: var(--gold); }
.badge.st { background: #f1f2f4; color: #8b949e; }
.badge.new { background: #eafaf2; color: var(--down); }

.tag {
  display: inline-block; font-size: 11px; background: var(--line-soft); color: var(--text-2);
  border-radius: 5px; padding: 1px 7px; margin: 1px 4px 1px 0;
}
.tag.first { background: var(--up-bg); color: var(--up); }

.reason { color: var(--text-2); font-size: 12px; max-width: 300px; }
.clip { display: inline-block; max-width: 290px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

.empty { padding: 40px; text-align: center; color: var(--text-3); }
.tip { color: var(--text-3); font-size: 12px; }
.note {
  background: #f0f6ff; border: 1px solid #cfe0ff; border-radius: 10px;
  padding: 11px 14px; font-size: 12.5px; color: #2b4f8f; margin-top: 18px; line-height: 1.7;
}
.loading { padding: 30px; text-align: center; color: var(--text-3); }

/* 就地加载态：已经有内容时只压暗，不擦掉重画。
   骨架比真表矮得多，整块替换会让高度骤变、滚动位置被夹回顶部 —— 那就是「闪一下」。 */
#main.is-loading > * { opacity: .4; transition: opacity .12s ease; pointer-events: none; }

/* 7 日涨幅矩阵 */
td.cell { text-align: right; font-variant-numeric: tabular-nums; min-width: 62px; }
td.cell.hot { background: var(--up-bg); color: var(--up); font-weight: 600; }
td.cell.cold { background: var(--down-bg); color: var(--down); font-weight: 600; }
td.cell.nil { color: #ccd2d8; }

.bar { display: inline-block; height: 5px; border-radius: 3px; background: var(--up); vertical-align: middle; }
.bar.g { background: var(--down); }

/* ---------------- 同步健康徽章 ---------------- */
.health {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px;
  font-size: 11.5px; border-radius: 999px; padding: 1px 9px; font-weight: 600;
}
.health.ok { background: var(--down-bg); color: var(--down); }
.health.bad { background: var(--up-bg); color: var(--up); }
.health .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------- 同步状态条（只读） ----------------
   前端不再有任何「触发同步 / 重新拉取」的按钮，工具栏右侧只留这一条：
   状态灯 + 数据日期 + 最后同步 + 下次自动同步。
   数值用中性深色（不被 ok/bad 的绿红染上），只有状态灯和状态词带色。 */
.syncbar {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 12px;
  font-size: 12px; border-radius: 999px; padding: 4px 14px 4px 12px;
  border: 1px solid transparent; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.syncbar.ok { background: var(--down-bg); border-color: #cfe9dc; }
.syncbar.bad { background: var(--up-bg); border-color: #f0cfcf; }
/* 盘中（今日未收盘）：中性灰，不用红绿 —— 「还没到同步时间」不是异常，
   用红色会让人以为出错了并去手动点同步。 */
.syncbar.idle { background: #f2f3f5; border-color: #dee0e3; }
.syncbar .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px;
}
.syncbar.ok .dot, .syncbar.ok .sb-state { color: var(--down); }
.syncbar.bad .dot, .syncbar.bad .sb-state { color: var(--up); }
.syncbar.idle .dot, .syncbar.idle .sb-state { color: #8f959e; }
.syncbar .sb-state { font-style: normal; font-weight: 700; }
.syncbar .sb-i {
  font-style: normal; color: var(--text-2); padding-left: 12px;
  border-left: 1px solid rgba(31, 35, 41, .1);
}
.syncbar .sb-i em { font-style: normal; color: var(--text-3); margin-right: 5px; }
/* 无 key 的提示项（如「今日未收盘」）：不要左边的分隔线，视觉上挂在前一项后面 */
.syncbar .sb-i.sb-hint { border-left: 0; padding-left: 4px; color: #8f959e; }

/* ---------------- 后台监测页（/admin，不对外） ----------------
   运维动作铺成自适应网格：每格 = 标题 + 一句「它动了什么数据」 + 执行按钮。
   说明文字是必要的 —— 这些动作互相有依赖（下游都读股池），写明白才不会乱点。 */
.adm-acts {
  display: grid; gap: 10px; margin-bottom: 4px;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
}
.adm-act {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 7px;
}
/* 后台的状态卡比首页多一倍，用固定下限让它整齐折成两行，
   数值字号收一点、不换行（「17:00 ~ 17:30」这种短的不能被折成两行）。 */
.adm-stats .card { flex: 1 1 148px; min-width: 148px; }
.adm-stats .card .v { font-size: 16px; white-space: nowrap; }
.adm-act .t { font-size: 13.5px; font-weight: 600; }
.adm-act .h { font-size: 12px; color: var(--text-3); line-height: 1.6; flex: 1; }
.adm-act .btn { align-self: flex-start; margin-top: 2px; }
.adm-tag {
  font-size: 11.5px; font-weight: 600; color: var(--up); background: var(--up-bg);
  border-radius: 999px; padding: 2px 9px; vertical-align: 3px; letter-spacing: 0;
}
.adm-note {
  font-size: 12.5px; color: var(--text-2); padding: 11px 14px; margin-bottom: 12px;
}
.adm-note b { color: var(--text); }
.adm-err { color: var(--up); }
.adm-hint { font-size: 12px; color: var(--text-3); }
/* 后台「正在执行 XXX」提示条 + 转圈：八个动作共用后端一个 _JOB，
   跑着的这段时间别的动作只会 409，所以必须把它显眼地挂在运维动作上方 */
.adm-job {
  display: flex; align-items: center; gap: 2px; color: var(--brand);
  background: var(--brand-bg); border-color: #cfd9f8;
}
.adm-spin {
  width: 11px; height: 11px; margin-right: 7px; border-radius: 50%;
  border: 2px solid rgba(47, 91, 208, .25); border-top-color: var(--brand);
  animation: admspin .7s linear infinite; flex: 0 0 auto;
}
@keyframes admspin { to { transform: rotate(360deg); } }
.btn.is-busy:disabled,
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.adm-back {
  margin-right: 12px; font-size: 12.5px; color: var(--text-2);
  border: 1px solid #d5d9e0; border-radius: 999px; padding: 3px 11px;
}
.adm-back:hover { border-color: var(--brand); color: var(--brand); }
table.adm-log { font-size: 12.5px; }
table.adm-log th { padding: 8px 11px; }
table.adm-log td { padding: 7px 11px; }
table.adm-log td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.adm-log tr:last-child td { border-bottom: 0; }

/* ---------------- 情绪面 ---------------- */
.emo-grid { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.emo-col { flex: 1; min-width: 300px; }
.emo-panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; height: 100%;
}
.emo-panel h3 { font-size: 13.5px; margin: 0 0 12px; color: var(--text-2); font-weight: 600; }

/* 连板梯队 */
.ladder-row { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.ladder-row .lv {
  flex: 0 0 46px; font-size: 12px; font-weight: 700; text-align: right;
  color: var(--text-2); font-variant-numeric: tabular-nums;
}
.ladder-row .lbar-wrap { flex: 1; background: var(--line-soft); border-radius: 5px; height: 19px; overflow: hidden; }
.ladder-row .lbar {
  height: 100%; border-radius: 5px; background: linear-gradient(90deg, #f0a5a5, var(--up));
  min-width: 3px; transition: width .3s;
}
.ladder-row.top .lbar { background: linear-gradient(90deg, #f2c14e, var(--gold)); }
.ladder-row .ln {
  flex: 0 0 46px; font-size: 12.5px; font-weight: 700; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 情绪趋势 */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 84px; margin-bottom: 6px; }
.spark .sp {
  flex: 1; min-width: 4px; border-radius: 3px 3px 0 0; background: #f0a5a5;
  position: relative; cursor: default;
}
.spark .sp.big { background: var(--up); }
.spark .sp.bad { background: var(--down); }
.spark-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); }

/* 分层晋级率 */
.tier-tag {
  display: inline-block; font-size: 11px; border-radius: 5px; padding: 1px 8px;
  font-weight: 600; background: var(--brand-bg); color: var(--brand);
}
.tier-tag.hot { background: var(--up-bg); color: var(--up); }
.tier-tag.cold { background: #f1f2f4; color: #8b949e; }
.meter { display: inline-block; width: 74px; height: 6px; border-radius: 4px; background: var(--line-soft); overflow: hidden; vertical-align: middle; margin-left: 7px; }
.meter i { display: block; height: 100%; background: var(--up); }
.meter i.cold { background: var(--down); }

/* 形态徽章 */
.pat {
  display: inline-block; font-size: 11px; border-radius: 5px; padding: 1px 7px; font-weight: 600;
  background: #f1f2f4; color: #6b7480; white-space: nowrap;
}
.pat.oneword { background: var(--gold-bg); color: var(--gold); }
.pat.fast { background: #fff1e6; color: #c26a1c; }
.pat.bad { background: #f1f2f4; color: #8b949e; }
.pat.good { background: var(--up-bg); color: var(--up); }
.pat.ditian { background: #ede9fe; color: #6d28d9; }

.rowmini { color: var(--text-3); font-size: 11.5px; }


/* ---------------- 全景页 ---------------- */
.plate {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 17px; margin-bottom: 14px;
}
.plate-top { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.plate-name { font-size: 16.5px; font-weight: 700; }
.plate-cnt { font-size: 12px; background: var(--brand-bg); color: var(--brand); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.plate-cnt .no { background: var(--gold-bg); color: var(--gold); margin-left: 6px; padding: 1px 8px; border-radius: 999px; }
.plate-rank { font-size: 12px; color: var(--text-3); margin-left: auto; }
.merged-tag { font-size: 11px; background: #eafaf0; color: var(--down); border-radius: 5px; padding: 1px 8px; }
/* 口径徽标（`.src-tag`）已下线：页面上那枚「本机口径 / 选股宝」彩色胶囊
   被用户否掉（要原来的样子），口径说明改挂在 h1 的 title 里。 */
.subtag { font-size: 10.5px; background: #eafaf0; color: var(--down); border: 1px solid #b6e3c6; border-radius: 5px; padding: 0 6px; margin-left: 5px; font-weight: 600; }
.reason-box {
  margin: 10px 0 12px; background: #f7f9ff; border-left: 3px solid #4a6cf7;
  border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: 13px; color: #44526b;
}
.reason-box.empty { color: var(--text-3); background: #fafafa; border-left-color: #ddd; }
.leader-zone { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.leader {
  flex: 1; min-width: 268px; border: 1px solid #f3c4ba;
  background: linear-gradient(135deg, #fff6f4, #fffdfb);
  border-radius: 12px; padding: 11px 13px;
}
.leader .ltag { font-size: 11px; background: var(--up); color: #fff; border-radius: 5px; padding: 1px 8px; font-weight: 700; }
.leader .ltag.first { background: var(--gold); }
.leader .lname { font-size: 15px; font-weight: 700; margin: 5px 0 3px; }
.leader .lname small { font-weight: 400; color: var(--text-3); font-size: 11px; margin-left: 6px; }
.leader .linfo { font-size: 12px; color: var(--text-2); display: flex; gap: 12px; flex-wrap: wrap; }
.leader .linfo b { color: var(--up); }

/* ---------------- 首屏骨架（skeleton） ----------------
   两个页面（index.html / pool.html）都在 HTML 里直接带着骨架结构，
   所以 pool.js / panorama.js 执行前、数据未到之前都不会是一片空白。
   骨架结构由页面 HTML 提供，样式统一在这里；切标签的 loading 态复用同一份。 */
.sk .blk {
  display: block; background: var(--line); border-radius: 6px;
  animation: skp 1.4s ease-in-out infinite;
}
@keyframes skp { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.sk-h1 { width: 300px; height: 26px; margin: 6px 0 10px; }
.sk-strip { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.sk-strip .blk { width: 68px; height: 46px; }
.sk-metrics { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.sk-metrics .blk { width: 190px; height: 58px; border-radius: var(--radius); }
.sk-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sk-bar .blk { height: 30px; }
.sk-bar .b1 { width: 160px; }
.sk-bar .b2 { width: 90px; }
.sk-bar .b3 { flex: 1; }
.sk-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.sk-tabs .blk { width: 130px; height: 34px; border-radius: var(--radius); }
.sk-tr {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--line-soft);
}
.sk-tr .blk { height: 18px; }
.sk-nm { width: 150px; }
.sk-c { width: 62px; }
.sk-k { width: 286px; height: 140px !important; border-radius: 8px; }
.sk-note { margin-top: 14px; color: var(--text-3); font-size: 12.5px; }
/* 板块全景页的骨架：两行指标卡 + 板块块 */
.sk-row2 { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sk-row2 .blk { width: 240px; height: 62px; border-radius: var(--radius); }
.sk-plate { height: 130px; border-radius: var(--radius); margin-bottom: 12px; }

/* ---------------- 涨停天梯 ----------------
   分层：每层一条红色标头（含「N进N+1  x/y = z%」）+ 一排卡片。
   塔尖层用渐变 + 投影挑出来；炸过板的卡片左侧用绿条区分。 */
.ld-hd {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 11px 16px; margin-bottom: 12px;
}
/* 嵌在工具栏那一行里的形态（涨停统计贴最左侧）：
   抹掉面板外框 —— 那一行本身就是面板，再套一层框就是「框里套框」。 */
.ld-hd.inbar {
  background: none; border: 0; border-radius: 0;
  padding: 0; margin: 0; gap: 12px;
}
.ld-hd.inbar .ld-hd-item b { font-size: 15px; }
.ld-hd.inbar .ld-sep { height: 15px; }
.ld-hd-item {
  font-size: 12.5px; color: var(--text-2);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.ld-hd-item b {
  font-size: 19px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ld-hd-item i { font-style: normal; font-size: 11px; color: var(--text-3); }
.ld-sep { width: 1px; height: 20px; background: var(--line); }

/* 板块分布 chips */
/* （原「板块分布」chips 的样式已删：那件事交给了题材排行表，
     见 pool.js 的 viewThemes()，留着只会是死代码） */

/* 一层 */
.ld-tier { margin-bottom: 16px; }
.ld-head {
  display: flex; align-items: center; gap: 11px;
  width: fit-content; margin: 0 auto 9px;      /* 居中短条，不横跨整页（对齐参考天梯） */
  background: var(--up); color: #fff;
  border-radius: 9px; padding: 6px 20px;
}
.ld-tier.top .ld-head {
  background: linear-gradient(90deg, #c31f1f, #e0502f);
  box-shadow: 0 2px 10px rgba(217, 43, 43, .22);
}
.ld-label { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.ld-rate { font-size: 13px; opacity: .96; font-variant-numeric: tabular-nums; }
/* 标头是红底，涨红字会糊掉 —— 这里的数字统一压成白色 */
.ld-head .up-text, .ld-head .down-text, .ld-head .flat { color: #fff; }
.ld-tag {
  font-size: 11px; color: #fff;
  background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px 9px;
}

/* 卡片流 */
.ld-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.ld-card {
  flex: 0 0 auto; width: 176px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px 8px;
  transition: .15s; cursor: pointer;      /* 卡片可点（高亮同板块）*/
}
.ld-card:hover {
  border-color: var(--brand);
  box-shadow: 0 2px 10px rgba(47, 91, 208, .10);
  transform: translateY(-1px);
}
/* 该板块当前的最高身位：**紫**色描边 + 一枚 ★ 徽章。
   ⚠️ 这一条必须排在 `.broke` **前面**：它写的是 `border-color`（四边全刷），
   谁在后面谁说了算 —— 排后面会把炸板那条绿条一起刷紫（实测踩到：
   探针量到 broke 卡片的 border-left-color 是紫色，绿条等于没有）。 */
.ld-card.ptop { border-color: var(--purple); }
.ld-ptag {
  margin-top: 3px; font-size: 10px; line-height: 1.45; text-align: center;
  color: var(--purple); background: var(--purple-bg);
  border-radius: 4px; padding: 0 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 盘中炸过板的，左侧压一条**绿**条 —— 一眼分出「实封」和「烂板」。
   （原来是金色，和「板块最高身位」的金色撞在一起，两条信息分不清；2026-09-22 改绿。） */
.ld-card.broke { border-left: 3px solid var(--down); }

/* 点卡片 → 同板块全部点亮（.same）；被点的那只再深一档（.pick）。
   两者只加描边和底色，不动尺寸 —— 高亮时卡片不会抽动、布局不会跳。 */
.ld-card.same {
  border-color: var(--brand); background: var(--brand-bg);
  box-shadow: 0 1px 6px rgba(47, 91, 208, .12);
}
.ld-card.same .ld-sub { color: var(--brand); font-weight: 600; }
/* 上面几条都是整圈刷 border-color，会把左边框一起刷掉（绿条就没了）——
   高亮 / 选中态下把左边留给绿条。 */
.ld-card.broke.same, .ld-card.broke.pick { border-left-color: var(--down); }
.ld-card.pick { box-shadow: 0 0 0 2px rgba(47, 91, 208, .38); }

/* ============ 涨停天梯页：左 2/3 最强题材 · 右 1/3 连板梯队 ============
   两栏同属「当天市场结构」这个视角（板块 → 题材 → 梯队）。左栏长、右栏短，
   所以右栏做粘性并自带纵向滚动 —— 翻题材时梯队始终在视野里。 */
.ld-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px; align-items: start;
}
.ld-left { min-width: 0; }
.ld-right {
  position: sticky; top: 64px;
  max-height: calc(100vh - 78px); overflow-y: auto;
  scrollbar-width: thin; padding-right: 2px;
}
.ld-right::-webkit-scrollbar { width: 6px; }
.ld-right::-webkit-scrollbar-thumb { background: #d8dde5; border-radius: 3px; }
.ld-col-hd {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 700; margin: 0 0 8px;
}
.ld-col-hd i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--text-3); }
/* 图例：卡片上那条绿条和 ★ 不写清楚，看的人只会以为「颜色乱了」 */
.ld-legend {
  display: flex; flex-wrap: wrap; gap: 3px 12px;
  font-size: 10.5px; color: var(--text-3);
  background: var(--panel); border: 1px dashed var(--line);
  border-radius: 8px; padding: 5px 8px; margin-bottom: 8px;
}
.ld-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ld-legend i { display: inline-block; flex: 0 0 auto; }
.lg-bar { width: 3px; height: 11px; border-radius: 1px; background: var(--down); }
.lg-star { font-style: normal; font-size: 11px; color: var(--purple); }
.lg-dot {
  width: 9px; height: 9px; border-radius: 3px;
  background: var(--brand-bg); border: 1px solid var(--brand);
}
/* 选中计数条：钉在右栏顶部（.ld-right 才是滚动容器，sticky 相对它生效） */
.ld-selbar {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  border-radius: 8px; padding: 5px 10px; margin-bottom: 8px;
  font-size: 11.5px;
}
.ld-selbar b { font-weight: 700; }
.ld-selbar button {
  margin-left: auto; font: inherit; font-size: 11px; cursor: pointer;
  background: rgba(255, 255, 255, .18); color: #fff;
  border: 0; border-radius: 999px; padding: 2px 9px;
}
.ld-selbar button:hover { background: rgba(255, 255, 255, .32); }
/* [hidden] 的 display:none 会被上面的 display:flex 盖掉，得自己写一条 */
.ld-selbar[hidden] { display: none; }

/* —— 紧凑化：覆盖上面的通用定义（同权重靠后生效）—— */
.ld-hd { padding: 8px 14px; gap: 13px; margin-bottom: 10px; }
.ld-hd-item b { font-size: 17px; }
.ld-tier { margin-bottom: 12px; }
.ld-right .ld-head { padding: 5px 13px; gap: 9px; margin-bottom: 7px; }
.ld-right .ld-label { font-size: 13.5px; }
.ld-right .ld-rate { font-size: 11.5px; }
.ld-right .ld-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  gap: 6px;
}
.ld-right .ld-card { width: auto; padding: 5px 8px 6px; }
.ld-right .ld-name { font-size: 12.5px; }
/* 板块名必须在股票名下面露出来（用户明确要求）—— 窄栏就压字号 + 省略号，
   不靠 title 藏信息，扫一眼就能把「个股 ↔ 板块」对上。 */
.ld-right .ld-sub { font-size: 10.5px; line-height: 1.35; }
/* 卡片底下多了一行「换手 x% ｜ 流通 y亿」，列宽得跟着放宽 ——
   138px 是按最宽的值量出来的（「换手 45.67%」+「流通 1234亿」+ 内边距），
   少了它就变成一行挤两截、文字被截断。 */
.ld-right .ld-cards { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }

/* 首板层：它是最底层（起点，不是「高度」），标头用中性灰，不跟红色梯队抢眼。
   做成 <details open> —— 默认展开（要能看到），点标头整层收起。 */
.ld-tier.fb > summary {
  list-style: none; cursor: pointer; user-select: none;
}
.ld-tier.fb > summary::-webkit-details-marker { display: none; }
.ld-tier.fb > summary::before {
  content: '▾'; font-size: 10px; opacity: .9; margin-right: -2px;
}
.ld-tier.fb:not([open]) > summary::before { content: '▸'; }
.ld-tier.fb .ld-head { background: #6b7684; }
.ld-tier.fb[open] .ld-cards { margin-top: 2px; }

.thm-hd {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-size: 14px; font-weight: 700; margin: 0 0 8px;
}
.thm-hd i { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.thm-warn {
  font-style: normal; font-size: 11px; font-weight: 400;
  color: var(--gold); background: var(--gold-bg);
  border: 1px solid #f0e2bd; border-radius: 999px; padding: 1px 8px;
}
/* ---- 最强题材：题材排行表（露 8 行 + 表内滚动） + 一张通用明细表（联动） ----
   两张表都是 colgroup 定宽 + table-layout:fixed，
   表头和值共用同一个 class → 对齐规则只需写一遍，不会再出现
   「表头靠左、数字靠右」那种错位。 */
.thm-tabwrap {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; margin-bottom: 10px;
}
.thm-scroll { max-height: 236px; overflow-y: auto; scrollbar-width: thin; }
.thm-scroll::-webkit-scrollbar { width: 8px; }
.thm-scroll::-webkit-scrollbar-thumb { background: #d8dde5; border-radius: 4px; }
.thm-scroll thead th { position: sticky; top: 0; z-index: 2; }

table.thm-tab, table.thm-det {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  font-size: 12.5px; font-variant-numeric: tabular-nums;
}
table.thm-det { font-size: 12px; }
table.thm-tab th, table.thm-det th {
  font-weight: 600; color: var(--text-2); background: var(--line-soft);
  padding: 0 6px; line-height: 26px; text-align: center; white-space: nowrap;
}
table.thm-tab td, table.thm-det td {
  padding: 0 6px; line-height: 24px; text-align: center;
  border-top: 1px solid var(--line-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 行高写死，配合 fitThemeScroll() 才能「恰好露 8 行」 */
table.thm-tab thead tr, table.thm-det thead tr { height: 27px; }
table.thm-tab tbody tr, table.thm-det tbody tr { height: 25px; }
/* 只有长文本列留左对齐，其余一律居中 */
table.thm-tab td.tp, table.thm-tab td.lgic, table.thm-det td.cn { text-align: left; }

table.thm-tab tbody tr { cursor: pointer; }
table.thm-tab tbody tr:hover, table.thm-det tbody tr:hover { background: var(--brand-bg); }
/* 选中的题材：左侧压一条品牌色，下表明细就是它的 */
table.thm-tab tbody tr.sel { background: var(--brand-bg); }
table.thm-tab tbody tr.sel td { font-weight: 600; }
table.thm-tab tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
/* 大阳线（未涨停）那几行淡一点，一眼分出「封住的」和「强势没封的」 */
table.thm-det tbody tr.nb td { color: var(--text-2); }
td.rk, th.rk { color: var(--up); font-weight: 700; font-variant-numeric: tabular-nums; }
table.thm-tab td.tp, table.thm-det td.nm { font-weight: 600; }
table.thm-det td.cd, table.thm-det td.num { color: var(--text-2); }
table.thm-det td.ht, table.thm-tab td.ht { color: var(--up); font-weight: 600; }
table.thm-tab td.lgic { color: var(--text-2); }
table.thm-det td.cn { color: var(--text-2); }
/* 排行表底部的口径提示行 */
.thm-more {
  font-size: 11px; color: var(--text-3); padding: 5px 10px;
  border-top: 1px solid var(--line-soft); background: #fbfcfe;
}
/* 明细表头：当前题材 + 成交 + 板块逻辑 + 只数 */
.thm-dhd {
  display: flex; align-items: baseline; gap: 8px;
  padding: 6px 10px; background: var(--brand-bg);
  border-bottom: 1px solid var(--line);
}
.thm-dhd b { font-size: 13px; }
.thm-dhd .rk { font-weight: 700; }
.thm-dhd .cnt { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.thm-dhd .lgic {
  font-size: 11.5px; color: var(--brand); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.thm-more-btn {
  display: block; width: 100%; border: 0; border-top: 1px solid var(--line-soft);
  background: #fbfcfe; color: var(--brand); font: inherit; font-size: 12px;
  padding: 7px 10px; cursor: pointer; text-align: center;
}
.thm-more-btn:hover { background: var(--brand-bg); }
.mg {
  font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--text-3);
  background: var(--line-soft); border-radius: 4px; padding: 0 4px; margin-left: 4px;
}
.thm-amt { color: var(--up); font-variant-numeric: tabular-nums; }

/* 窄屏放不下两栏 → 收成一栏，并取消右栏粘性（否则会互相挤） */
@media (max-width: 1180px) {
  .ld-split { grid-template-columns: minmax(0, 1fr); }
  .ld-right { position: static; max-height: none; overflow: visible; }
  .ld-right .ld-cards { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }
}
.ld-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ld-top i {
  font-style: normal; font-size: 11px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.ld-top b { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ld-name {
  font-size: 14px; font-weight: 600; margin-top: 1px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ld-sub {
  font-size: 11px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 卡片末行：换手率 / 流通金额，两端对齐（左换手、右流通）。
   字号压到 10px —— 138px 的卡片里一行放得下，不会把卡片撑成两行。 */
.ld-extra {
  display: flex; justify-content: space-between; gap: 6px;
  margin-top: 3px; font-size: 10px; color: var(--text-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------------- 搜索：行的显隐 ----------------
   搜索框只切这个 class，**不重排 DOM**（原因见 pool.js::applyFilter）：
   监测页一张表里上百张内联 K 线 SVG，重排一次就卡一下，
   而且重排会换掉正在输入的 <input>，中文输入法的候选词直接断。
   `tr` 的 display 是 table-row，[hidden] 不一定压得住，所以用 !important。 */
.rowhide { display: none !important; }
.empty.nohit { padding: 18px; }


/* ================================================================
   验证页（/login）—— 看板与后台的门（两把钥匙共用这一页）
   参考 shadcn/ui 的 login-02（左品牌 + 右表单两栏）+ login-03（卡内居中标题、
   字段 label 上置、主按钮通栏）；错误文案照 dub 的做法 —— 服务端给人话，前端只管摆。
   配色沿用全站浅色主题（左侧不放深色封面，免得和其余页面割裂）。
   窄屏（<900px）收成一栏：品牌区整块让位，标题与 logo 回到卡片里。
   ================================================================ */
.login-body { background: #eef1f5; }

.login-split {
  display: grid; grid-template-columns: minmax(300px, 34%) 1fr;
  min-height: 100vh;
}

/* ---------------- 左：品牌区 ---------------- */
.login-brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 34px 34px 28px;
  background: linear-gradient(158deg, #f6f9ff 0%, #e8effb 42%, #dee8f8 100%);
  border-right: 1px solid var(--line);
}
/* 右上角一层很淡的品牌色光晕：让「左品牌 /右表单」这条分界线读得出来，
   又不至于把浅色主题压成一块深色封面。 */
.login-brand::after {
  content: ''; position: absolute; right: -140px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(47, 91, 208, .13), transparent 72%);
}
/* 细网格 + 中间一册摊开的书：给浅色底一点质感，不做深色封面。
   书是「学习」二字的具象，也不再和涨跌红绿纠缠。 */
.lb-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(#dfe6f2 1px, transparent 1px),
    linear-gradient(90deg, #dfe6f2 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(125% 88% at 16% 14%, #000 30%, transparent 80%);
  mask-image: radial-gradient(125% 88% at 16% 14%, #000 30%, transparent 80%);
  opacity: .9;
}
.lb-book {
  position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%);
  width: min(76%, 320px); height: auto; pointer-events: none;
  filter: drop-shadow(0 18px 26px rgba(47, 91, 208, .10));
}
.lb-book .pg { fill: rgba(47, 91, 208, .055); stroke: rgba(47, 91, 208, .30); stroke-width: 1.5; }
.lb-book .edge { fill: rgba(47, 91, 208, .13); stroke: none; }
.lb-book .sp { stroke: rgba(47, 91, 208, .36); stroke-width: 1.6; }
.lb-book .tx {
  fill: none; stroke: rgba(47, 91, 208, .24); stroke-width: 2.6; stroke-linecap: round;
}

/* 内容压在网格 / 书本 / 光晕之上（它们都是绝对定位的装饰层） */
.lb-top, .lb-foot { position: relative; z-index: 1; }
.lb-top { display: flex; align-items: center; gap: 9px; }
.lb-mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--up); color: #fff;
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.lb-name { font-size: 15px; font-weight: 700; letter-spacing: .5px; }

/* 左栏只留「品牌标（顶）+ 页脚（底）」：auto 外边距把页脚压到底，
   中间整片留给装饰书本，不再放任何页面说明文字。 */
.lb-foot {
  margin-top: auto; font-size: 11.5px; color: var(--text-3); line-height: 1.7;
}
.lb-foot b { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); }

/* ---------------- 右：验证卡 ---------------- */
.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card {
  width: 100%; max-width: 392px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px 22px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 34px -18px rgba(16, 24, 40, .22);
}
.login-head { text-align: center; margin-bottom: 22px; }
.lc-mark {
  width: 40px; height: 40px; margin: 0 auto 12px; border-radius: 12px;
  background: var(--up); color: #fff; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(217, 43, 43, .55);
}
.login-head h1 { font-size: 19px; margin: 0 0 5px; }
.login-head p { margin: 0; font-size: 12.5px; color: var(--text-3); }

/* ---------------- 字段 ---------------- */
.fld { margin-bottom: 14px; }
/* 账号框只在「进后台」时才露出来（login.js 摘掉 hidden）；`.fld` 自身没写 display，
   所以这里只要补一条兜底，免得将来给 .fld 加了 display 把 hidden 顶掉。 */
.fld[hidden] { display: none; }
.fld > label {
  display: block; font-size: 12.5px; font-weight: 500; color: var(--text-2); margin-bottom: 6px;
}
.ipt { position: relative; display: flex; align-items: center; }
.ipt .ic {
  position: absolute; left: 11px; width: 16px; height: 16px; color: var(--text-3);
  pointer-events: none; transition: color .15s;
}
.ipt input {
  width: 100%; height: 42px; padding: 0 14px 0 34px;
  font-size: 14px; font-family: inherit; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.ipt.pw input { padding-right: 40px; }        /* 给「显示密码」按钮让位 */
.ipt input::placeholder { color: var(--text-3); }
.ipt input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 91, 208, .13); }
.ipt:focus-within .ic { color: var(--brand); }
.ipt.bad input { border-color: var(--up); box-shadow: 0 0 0 3px rgba(217, 43, 43, .11); }

.eye {
  position: absolute; right: 6px; width: 30px; height: 30px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--text-3);
  cursor: pointer; transition: .15s;
}
.eye svg { width: 16px; height: 16px; }
.eye:hover { background: var(--line-soft); color: var(--text-2); }

.login-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 2px 0 14px; min-height: 20px;
}
.login-remember {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none;
}
.login-remember input {
  width: 14px; height: 14px; margin: 0; accent-color: var(--brand); cursor: pointer;
}
.login-hint { font-size: 12px; color: var(--text-3); }
.login-hint.on { color: var(--gold); }

/* 失败提示：内联在按钮上方，不用飘窗 —— 这一步上飘窗会挡住输入框 */
.alert {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--up-bg); color: #a81f1f; border: 1px solid #f2c9c9;
  border-radius: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.5;
  margin-bottom: 13px;
}
.alert[hidden] { display: none; }

.submit {
  width: 100%; height: 42px; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, opacity .15s;
}
.submit:hover:not(:disabled) { background: #2850bd; }
.submit:disabled { opacity: .6; cursor: not-allowed; }
.submit .spin {
  display: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.submit.loading .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-foot-note {
  margin-top: 16px; text-align: center; font-size: 11.5px; color: var(--text-3); line-height: 1.7;
}
.login-foot-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; background: var(--line-soft); border-radius: 5px; padding: 1px 5px;
}

/* 失败抖一下：比只闪一行红字更容易被注意到（也让人确认「按钮确实点到了」） */
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.login-card.shake { animation: shake .5s cubic-bezier(.36, .07, .19, .97) both; }

@media (max-width: 899px) {
  .login-split { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-main { padding: 32px 18px; align-items: flex-start; }
  .login-card { margin: 7vh auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  .login-card.shake { animation: none; }
  .submit .spin { animation-duration: 1.6s; }
}

/* ---------------- 后台页顶栏右侧：当前身份 + 退出 ---------------- */
.adm-user { display: inline-flex; align-items: center; gap: 8px; margin-right: 12px; }
.adm-user .who { color: var(--text-2); font-size: 12.5px; }
.adm-user .who b { color: var(--text); font-weight: 600; }
.adm-out {
  font-size: 12.5px; font-family: inherit; color: var(--text-2); background: transparent;
  border: 1px solid #d5d9e0; border-radius: 999px; padding: 3px 11px;
  cursor: pointer; transition: .15s;
}
.adm-out:hover { border-color: var(--up); color: var(--up); }

/* ---------- 后台页页签：后台监测 / 策略管理（静态常驻 .adm-head，不随内容重渲染） ---------- */
.adm-head h1 { margin-bottom: 2px; }
.adm-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
/* .adm-head 也是 .wrap，会带上 padding-bottom:70px —— 页签下沿因此多出 70px 空白。
   页签已经贴底了，不需要那 70px。 */
.adm-head { padding-bottom: 0; }

.adm-tab {
  border: 0; background: none; cursor: pointer; padding: 9px 14px 8px;
  font-size: 14px; font-family: inherit; color: var(--text-3);
  border-bottom: 2px solid transparent;
}
.adm-tab:hover { color: var(--brand); }
.adm-tab.on { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }


/* ---------- 第 2 部分：选股画线（原 juzi.css；仅把 7 处页面级选择器限定到 html.page-draw）---------- */
/* ===== 涨停断板形态 · 选股画线（浅色主题） ===== */
html.page-draw {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --fg: #1f2328;
  --sub: #6b7280;
  --line: #e5e7eb;
  --accent: #1677ff;
  --up: #e5382c;      /* 红涨 */
  --down: #12a05c;    /* 绿跌 */
  --limit: #8b3fd1;   /* 涨停 紫 */
}
html.page-draw, html.page-draw body { height: 100%; }
html.page-draw body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  /* 用弹性列布局撑满视口，避免 header 换行时图表溢出（不用写死 46px）
     overflow:auto 是「装不下时宁可整页滚动」：窗口极矮时若继续压缩，
     图表会被挤成几十像素（甚至 0）反而更糟。 */
  display: flex; flex-direction: column; overflow: auto;
}

header {
  flex: 0 0 auto;
  padding: 10px 16px; background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
header h1 { font-size: 13.5px; margin: 0; font-weight: 600; }
/* 顶部那行说明文案（数据截至 / 样本 / 扫描于 / 策略 / 前复权源 / SQLite 容量）
   已撤掉——它独占整行 1284px、header 因此高 28px。信息改挂到 h1 的悬浮提示上。 */
header .spacer { flex: 1; }
header button {
  font-size: 12px; padding: 4px 8px; border: 1px solid var(--line);
  background: #fff; color: var(--fg); border-radius: 4px; cursor: pointer;
}
header button:hover { border-color: var(--accent); color: var(--accent); }

/* 分段按钮组（复权口径 / K线周期） */
header .grp { display: inline-flex; }
header .grp button {
  border-radius: 0; margin-left: -1px; padding: 4px 8px;
}
header .grp button:first-child { border-radius: 4px 0 0 4px; margin-left: 0; }
header .grp button:last-child { border-radius: 0 4px 4px 0; }
header .grp button.on {
  background: var(--accent); border-color: var(--accent); color: #fff;
  position: relative; z-index: 1; font-weight: 600;
}
header .grp button.on:hover { color: #fff; }

/* min-height: 装不下就走整页滚动，而不是把图挤扁（配合 body overflow:auto） */
html.page-draw .wrap { flex: 1 1 auto; min-height: 300px; display: flex; }

/* ---------- 左侧列表 ---------- */
/* 288 → 320：一行里现在同时有 勾选框 / 代码+名称 / 风险徽标 / 价格+涨幅 /
   hover 才显形的两个按钮。288 时名称那一格只剩 106px，「板块 · N板 · 成交额」
   必被省略号切掉尾巴（「2板 · 3.1…」）。加 32px 后这条能完整显示，K 线区
   少 32px 肉眼看不出来。 */
html.page-draw aside {
  width: 320px; flex: 0 0 320px; background: var(--panel);
  border-right: 1px solid var(--line); overflow-y: auto;
}
.gt {
  padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--sub);
  background: #fafbfc; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1;
}
.it {
  padding: 7px 12px; border-bottom: 1px solid #f4f5f7; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.it:hover { background: #f5f8ff; }
.it.active { background: #eaf2ff; box-shadow: inset 3px 0 0 var(--accent); }
.it:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.it .l { min-width: 0; flex: 1 1 auto; }
/* 名称一行不折行：代码固定住、名字装不下就省略号（不再出现「盛剑科 / 技」）。 */
.it .l > .code { white-space: nowrap; }
.it .l > .nm { white-space: nowrap; }
/* 下面那条「板块 · N板 · 成交额」：一行装不下就省略号，不许折到第二行
   —— 折行后「亿」会孤零零挂在末尾、右侧价格被挤成两行，看着像排版坏了。
   `overflow:hidden` 顺带把行内溢出（曾经的「异」压在 +9.99% 上）挡在行内。
   ★ 别给它 `display:flex`：`.mt` 里是「文字 + <span> + 文字」这种混排（策略行
   还有多个内联片段），改成 flex 会让每段文字变成独立 flex item，` · ` 分隔符
   的间距和顺序全乱。徽标本身是 `inline-flex`，排在行首**天然就是内联流的一格**。 */
.it .l > .mt {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.it .l > .mt > .rk-wrap { margin-left: 0; margin-right: 2px; }
.it .code { font-variant-numeric: tabular-nums; }
.it .nm { color: var(--sub); margin-left: 4px; }
.it .mt { font-size: 11px; color: #9aa0a6; margin-top: 1px; }
/* 涨停清单里的「N 板」徽章：首板/二板低调，三板以上标红 —— 一眼看出梯队 */
.it .mt .bd { font-weight: 600; color: #6b7280; font-variant-numeric: tabular-nums; }
.it .mt .bd.hot {
  color: #fff;
  background: var(--up);
  border-radius: 3px;
  padding: 0 4px;
}
.it .r { text-align: right; white-space: nowrap; }
.it .ln { color: var(--up); font-variant-numeric: tabular-nums; font-weight: 600; }
.it .ln.none { color: #c0c4cc; font-weight: 400; }
.it .pct { font-size: 11px; }
/* 涨停板这一列全是上涨，价格与涨幅若同为红色就糊在一起。
   价格改成中性色（只是「现价」，方向由涨幅那行说），涨幅保留红/绿。 */
.it.lu .ln { color: var(--fg); }

/* 观测页：每行右侧的「+」/「×」
   hover 才显形（平时 opacity:0 但保留占位）—— 窄侧栏里常驻一个按钮
   会把「代码 名称 / 价格 涨幅」两列挤窄，而它们才是扫读时真正要看的东西。
   用 opacity 而非 display:none，是为了让 hover 时按钮位置不跳。 */
.it .wbtn, .qlist .qi .wbtn {
  flex: 0 0 auto; width: 20px; height: 20px; line-height: 18px;
  padding: 0; margin-left: 4px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--sub);
  font-size: 14px; cursor: pointer; text-align: center;
  opacity: 0; transition: opacity .12s;
}
.it:hover .wbtn, .it .wbtn:focus,
.qlist .qi:hover .wbtn, .qlist .qi .wbtn:focus { opacity: 1; }
.it .wbtn:hover, .qlist .qi .wbtn:hover { border-color: var(--accent); color: var(--accent); }
.it .wbtn.added, .qlist .qi .wbtn.added { opacity: .55; color: var(--down); border-color: var(--down); }
.it .wbtn.added:hover, .qlist .qi .wbtn.added:hover { opacity: 1; }
.it .wbtn.del:hover { border-color: var(--up); color: var(--up); }

/* ---- 行内「→通达信」按钮（点这只票在通达信客户端里打开）----
   与 .wbtn 同族：hover 才显形，尺寸一致，避免行右侧拥挤。 */
.it .tbtn {
  flex: 0 0 auto; width: 20px; height: 20px; line-height: 18px;
  padding: 0; margin-left: 4px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--sub);
  font-size: 13px; cursor: pointer; text-align: center;
  opacity: 0; transition: opacity .12s;
}
.it:hover .tbtn, .it .tbtn:focus { opacity: 1; }
.it .tbtn:hover { border-color: var(--accent); color: var(--accent); }

/* ---- 选股结果的批量选择（全选 → 加入观测分组） ----
   勾选框**常驻**（不像 .wbtn 那样 hover 才显形）：全选之后必须一眼看出
   哪些被勾了、哪些没有，否则「全选」等于闭着眼睛加。 */
.it .ck {
  flex: 0 0 auto; width: 13px; height: 13px; margin-right: 7px;
  border: 1px solid #cfd6e0; border-radius: 3px; background: #fff;
  cursor: pointer; position: relative;
}
.it .ck:hover { border-color: var(--accent); }
.it .ck.on { background: var(--accent); border-color: var(--accent); }
.it .ck.on::after {
  content: ''; position: absolute; left: 3.5px; top: 0.5px;
  width: 4px; height: 8px; border: 2px solid #fff;
  border-top: 0; border-left: 0; transform: rotate(45deg);
}
.it.sel { background: #f2f7ff; }
.it.sel.active { background: #e6f0ff; }

/* 顶部批量条：sticky，多日分段很长时也一直看得见 */
.sbar {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 5px;
  padding: 6px 8px; background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-size: 11px; color: var(--sub);
}
.sbar .selall {
  flex: 0 0 auto; padding: 2px 8px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--sub);
  cursor: pointer; white-space: nowrap;
}
.sbar .selall:hover { border-color: var(--accent); color: var(--fg); }
.sbar .selall.on { background: #f0f6ff; border-color: var(--accent); color: var(--accent); }
.sbar .cnt { flex: 0 0 auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sbar select {
  flex: 1 1 auto; min-width: 0; max-width: 110px;
  font-size: 11px; padding: 2px 3px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--fg);
}
.sbar button {
  flex: 0 0 auto; padding: 2px 8px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--sub);
  font-size: 11px; cursor: pointer; white-space: nowrap;
}
.sbar button.primary { border-color: var(--accent); color: var(--accent); }
.sbar button.primary:hover { background: #f0f6ff; }
.sbar button:disabled { opacity: .45; cursor: default; }


/* 观测页分组过滤条（吸顶） */
aside .wbar {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
aside .wtag {
  font-size: 11px; padding: 2px 7px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--sub);
  cursor: pointer; white-space: nowrap;
}
aside .wtag:hover { border-color: var(--accent); color: var(--fg); }
aside .wtag.on { background: #f0f6ff; border-color: var(--accent); color: var(--fg); font-weight: 600; }
aside .wtag.add { border-style: dashed; color: var(--accent); }
html.page-draw aside .hint { padding: 14px; color: var(--sub); font-size: 12px; }

/* ---------- 主图 ---------- */
main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
/* position:relative + overflow:hidden 是「画布不许越界」的硬保证：
   画布是绝对定位子元素，且背景透明——一旦它比容器高，就会被后续绘制
   的内容搞成「K 线压在文字上」。
   这里直接裁掉，任何尺寸不同步都只能表现为「少画一点」，不会越界。 */
#chart { flex: 1 1 auto; min-height: 180px; position: relative; overflow: hidden; }

/* 顶部股票标识（代码 / 名称 / 板块）：紧跟查询框后面，字号比按钮大一号。
   位置在 .spacer 左边 —— 左半部分是「标题 / 查询框 / 标识」固定内容，右半部分按钮组
   由 spacer 顶到最右端。这样它既不夹在两个按钮中间，显隐也不会顶动右边那一排。

   ⚠️ 可见性用 visibility（配 .on 类）而不是 hidden，并且**始终占住 min-width 这一格**：
   它虽然不带动右边的按钮，却会影响「右边那一排还放得不放得下」——
   首屏股票还没加载出来时若它不占位，右侧控件块会先留在第一行，等数据到了才被挤到第二行，
   整排按钮连同图表高度一起往下跳 38px。占住固定宽度后，它在与不在，行结构都一样。
   原 .info 信息栏（口径 / 首板 / 断板 / 量比 / 画线 / 位置 / 最新 / 除权）已移除，
   释放的纵向空间全部让给 K 线图。 */
header .ident {
  display: inline-flex; align-items: baseline; gap: 10px;
  /* 预留槽位：内容为空时行结构也不变（见下方长注释）。400px 是实测值 ——
     header 这段没余量，留大了会把右侧控件块顶到第二行，白丢 40px 图高。 */
  min-width: 400px;
  visibility: hidden;
  white-space: nowrap; font-size: 12px;
}
header .ident.on { visibility: visible; }
header .ident .kv { color: var(--sub); }
header .ident .kv b { color: var(--fg); font-weight: 600; }

/* 右侧控件块（复权 / 周期 / 全览 / 重新扫描 / 画线 / 玉衡线）：整块 nowrap 且贴右端。
   意义有两个：① 窗口变窄时整块换行，不会把「玉衡线」单独挤到下一行；
   ② 「画线 / 玉衡线」永远并排，不会散开。 */
header .rightbar {
  display: inline-flex; align-items: baseline; gap: 8px;
  flex-wrap: nowrap; margin-left: auto;
}

/* 瞬时状态浮层（正在加载 / 获取失败）：绝对定位浮在图上，不占布局高度。
   原 .legend（色块图例 + 累计状态行）已整体删除，腾出的 64~98px 全部给 K 线。 */
#stat {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 5; pointer-events: none;
  padding: 3px 10px; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  font-size: 12px; color: var(--sub); white-space: nowrap;
}
/* 作者样式若声明了 display 会盖掉 UA 的 [hidden]{display:none}，显式补回 */
#stat[hidden] { display: none; }

/* ---------- 顶部搜索框（查任意股票） ---------- */
header .search { position: relative; align-self: center; display: inline-flex; align-items: center; }
header .search input {
  width: 180px; font-size: 12px; padding: 4px 22px 4px 8px;
  border: 1px solid var(--line); border-radius: 4px; outline: none;
  background: #fff; color: var(--fg); font-family: inherit;
}
header .search input::placeholder { color: #a9aeb5; }
header .search input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 2px rgba(22, 119, 255, .13);
}
header .search #qclear {
  position: absolute; right: 3px; padding: 0 4px; border: 0; background: transparent;
  color: var(--sub); font-size: 14px; line-height: 1; cursor: pointer;
}
header .search #qclear:hover { color: var(--fg); }

.qlist {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 30;
  /* 400px：比查询框宽，多出来的是「板块标签 + 涨幅」两格 */
  width: 400px; max-height: 322px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
}
.qlist .qi {
  padding: 6px 10px; cursor: pointer; display: flex; gap: 8px;
  align-items: baseline; border-bottom: 1px solid #f4f5f7;
}
.qlist .qi:last-child { border-bottom: 0; }
.qlist .qi:hover, .qlist .qi.on { background: #eaf2ff; }
.qlist .qi .c { font-variant-numeric: tabular-nums; color: var(--sub); }
.qlist .qi .n { font-weight: 600; }
/* 板块/指数标签：个股没有这一格 */
.qlist .qi .tg {
  font-size: 10px; line-height: 15px; color: #185fa5; background: #eef5fc;
  border: 1px solid #c3daf0; border-radius: 3px; padding: 0 4px; white-space: nowrap;
}
.qlist .qi .p { color: #9aa0a6; font-size: 11px; margin-left: auto; white-space: nowrap; }
/* 涨幅：定宽右对齐，让整列数字对齐成一竖线 */
.qlist .qi .pc {
  font-size: 11px; font-variant-numeric: tabular-nums;
  min-width: 54px; text-align: right; white-space: nowrap;
}
.qlist .empty { padding: 10px; color: var(--sub); font-size: 12px; }
.qlist .tip {
  padding: 5px 10px; color: #9aa0a6; font-size: 11px;
  background: #fafbfc; border-bottom: 1px solid #f1f2f4;
}

/* ---------- 玉衡线（VPST）浮层控件 ---------- */
header .vpst-ctl { position: relative; align-self: center; }
header .vpst-oncount {
  display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; margin-left: 3px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 10px; text-align: center;
}
header .vpst-pop {
  position: fixed; top: auto; left: auto; z-index: 1000;
  width: 560px; max-width: 92vw; max-height: 70vh; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .22);
  display: flex; flex-direction: column;
}
header .vpst-pop[hidden] { display: none; }
header .vpst-head {
  padding: 0 12px 0 0; height: 36px; display: flex; align-items: center;
  gap: 8px; cursor: move; user-select: none;
  border-bottom: 1px solid var(--line); background: #fafbfc;
  flex: 0 0 auto;
}
header .vpst-head .vpst-title {
  flex: 1 1 auto; padding-left: 12px; font-size: 12px; color: var(--sub);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
header .vpst-head .vpst-close {
  flex: 0 0 auto; width: 26px; height: 26px; line-height: 24px;
  padding: 0; border: none; border-radius: 6px; background: transparent;
  color: #9aa0a6; font-size: 18px; cursor: pointer; text-align: center;
}
header .vpst-head .vpst-close:hover { background: #eef0f3; color: var(--fg); }
header .vpst-panel {
  padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; overflow-y: auto; flex: 1 1 auto;
}
header .vpst-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 3px 9px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--sub); cursor: pointer; user-select: none;
  transition: all .12s;
}
header .vpst-chip:hover { border-color: var(--accent); color: var(--fg); }
header .vpst-chip.on {
  background: #f0f6ff; border-color: var(--accent); color: var(--fg);
  font-weight: 600;
}
header .vpst-chip .dot {
  width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; background: #ccc;
}
header .vpst-chip .cnt { color: #9aa0a6; font-variant-numeric: tabular-nums; }
header .vpst-chip.on .cnt { color: var(--accent); }
/* chip 上的筛选日期（MM-DD）。编号换成了策略名 + 日期，日期必须一眼可见 */
header .vpst-chip .dt {
  color: #b0b5bd; font-variant-numeric: tabular-nums; font-size: 10px;
  padding-left: 2px; border-left: 1px solid var(--line); margin-left: 1px;
}
header .vpst-chip.on .dt { color: var(--accent); }
/* 「底表」态（默认视图）：涨停板不是用户勾的筛选条件，而是列表的基准集合。
   用虚线 + 淡灰底 + 「底表」尾标，与实线蓝框的「已选中」区分开。
   光标是 default —— 点它没有可取消的东西（setStrategy 里直接 return）。 */
/* 活跃双池的档位行（选股浮层内） */
.sc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0 0; }
.sc-chips .vpst-chip { font-size: 11.5px; padding: 3px 9px; }

header .vpst-chip.base {
  background: #f7f8fa; border-style: dashed; border-color: #cfd4da;
  color: var(--sub); cursor: default;
}
header .vpst-chip.base:hover { border-color: #cfd4da; color: var(--sub); }
header .vpst-chip.base .dot { opacity: .45; }
header .vpst-chip.base::after {
  content: '底表'; margin-left: 2px; font-size: 10px; color: #9aa0a6;
  border-left: 1px solid var(--line); padding-left: 5px;
}

header .vpst-chip:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 多色策略的颜色图例（均线 / 王牌柱）：浮在 **K 线区右上角**（原来在「画线」浮层里）。
   色块颜色来自后端 meta 的 swatches（源头是 params.ini），前端不硬编码。
   · right 留出价格轴宽度，否则会压在右侧价格刻度上
   · pointer-events:none —— 绝不能挡十字光标 / 拖动 / 缩放
   · 定位挂在 main 上（#chart 的子节点会被 klinecharts init 重建） */
main #chart-legend {
  position: absolute; top: 6px; right: 74px; z-index: 6;
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px;
  max-width: calc(100% - 150px);
  padding: 3px 9px; border-radius: 5px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(229, 231, 235, .9);
  font-size: 11px; line-height: 1.6; color: var(--sub); white-space: nowrap;
  pointer-events: none;
}
main #chart-legend[hidden] { display: none; }
main #chart-legend .cl { display: inline-flex; align-items: center; gap: 4px; }
main #chart-legend .cl i {
  width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; background: #ccc;
}
main #chart-legend .cl b { font-weight: 400; color: var(--sub); }
header .vpst-empty { font-size: 11px; color: #c0c4cc; }
header .vpst-foot {
  padding: 6px 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  background: #fafbfc;
}
header .vpst-foot button {
  font-size: 11px; padding: 2px 10px;
}
header .vpst-footstat { font-size: 11px; color: var(--sub); margin-left: auto; }

/* ---------------------------------------------------- 筹码分布（CYQ）浮层
   和玉衡线/画线/表现三块浮层同源（都挂在 header .vpst-pop 上），这里只补它自己
   的排版：上面六格读数、下面一条横向分布。
   分布条的颜色不是装饰 —— 现价之上是**套牢盘**（反弹时的抛压所在），现价之下是
   获利盘。刻意避开正红（`--up` 是涨停色），否则一眼看过去像半屏涨停。 */
header .cyq-pop { width: 430px; }
/* ★ `flex-wrap: nowrap` 是必须的：基类 `.vpst-panel` 是 `wrap` + `row`，本浮层改成
   `column` 后如果还留着 `wrap`，**竖向放不下的内容会往右另起一列**（实测分布条被排成
   两列、面板出现横向滚动条、脚注被推到 x=1314 —— 浮层只有 430px 宽，右边整段看不见）。
   这里要的是「一列、纵向滚动」。 */
header .cyq-pop .vpst-panel {
  flex-direction: column; flex-wrap: nowrap;
  align-items: stretch; gap: 8px;
  overflow-x: hidden;
}
header .cyq-kv {
  display: flex; flex-wrap: wrap; gap: 3px 14px;
  font-size: 12px; color: var(--sub);
}
header .cyq-kv span { white-space: nowrap; }
header .cyq-kv b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
header .cyq-chart { display: flex; flex-direction: column; gap: 1px; }
header .cyq-row {
  display: flex; align-items: center; gap: 6px;
  height: 12px; font-size: 10px; color: var(--sub);
}
header .cyq-row i { font-style: normal; }
header .cyq-px {
  flex: 0 0 48px; text-align: right; font-variant-numeric: tabular-nums;
}
header .cyq-pc {
  flex: 0 0 42px; text-align: right; font-variant-numeric: tabular-nums;
}
header .cyq-track {
  flex: 1 1 auto; height: 9px; border-radius: 2px;
  background: #f1f3f5; overflow: hidden;
}
header .cyq-bar { display: block; height: 100%; border-radius: 2px; background: #cbd5e1; }
header .cyq-bar.lock { background: #94a3b8; }   /* 现价之上：套牢盘 */
header .cyq-bar.win  { background: #f0a08a; }   /* 现价之下：获利盘（不用正红） */
header .cyq-bar.now  { background: #0f62d6; }   /* 现价附近：密度峰最该被看到 */
header .cyq-note { font-size: 11px; color: var(--sub); line-height: 1.7; }
header .vpst-params { font-size: 10px; color: var(--sub); display: inline-block; margin-top: 2px; }
header .vpst-foot button#line-reload {
  font-size: 11px; padding: 2px 8px; margin-left: 6px;
}

/* ---------- 顶栏独立按钮的「选中」态（观测页） ---------- */
header button.on {
  background: var(--accent); border-color: var(--accent); color: #fff;
  font-weight: 600;
}
header button.on:hover { color: #fff; }

/* ---------- 选股浮层：策略区 + 日期区 ---------- */
header .vpst-pop.screen-pop { width: 620px; }
header .vpst-panel.sc-panel,
header .screen-pop .vpst-panel {
  display: block; padding: 0;                 /* 两段各占一行，不用 chip 换行流 */
}
header .sc-sec { padding: 9px 12px; border-bottom: 1px solid #f1f2f4; }
header .sc-sec:last-child { border-bottom: none; }
/* 「固定当日」策略的说明行（涨停板）：顶掉被收起的日期区，不能看起来像出错 */
header .sc-note {
  margin-top: 7px; padding: 5px 8px; border-radius: 5px;
  background: #f6f8fb; border: 1px solid #e6ebf2;
  font-size: 11px; color: #6b7280; line-height: 1.5;
}
header .sc-lab {
  font-size: 11px; color: var(--sub); margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 6px;
}
header .sc-lab .sc-sub { color: #b0b5bd; font-size: 10px; }
header .sc-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* 月份翻页：◀ 2026-10 ▶  + 右侧快捷区间 */
header .sc-mons {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
header .sc-nav {
  font-size: 10px; line-height: 1; padding: 3px 6px;
  border: 1px solid var(--line); border-radius: 4px;
  background: #fff; color: var(--sub); cursor: pointer;
}
header .sc-nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
header .sc-nav:disabled { opacity: .35; cursor: default; }
header .sc-ym {
  font-size: 11px; font-variant-numeric: tabular-nums; color: var(--fg);
  min-width: 58px; text-align: center;
}
header .sc-quick { margin-left: auto; display: flex; gap: 8px; }
header .sc-quick a { font-size: 10px; color: var(--accent); text-decoration: none; }
header .sc-quick a:hover { text-decoration: underline; }

/* 日期按钮：一格一天，可拖出的区间用底色连成一条 */
header .sc-days {
  display: flex; flex-wrap: wrap; gap: 4px; max-height: 168px; overflow-y: auto;
}
header .sday {
  position: relative; min-width: 38px; text-align: center;
  font-size: 11px; font-variant-numeric: tabular-nums;
  padding: 3px 5px 3px 5px; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; color: var(--sub); cursor: pointer; user-select: none;
}
header .sday:hover { border-color: var(--accent); color: var(--fg); }
header .sday.on { background: #f0f6ff; border-color: #b9d6ff; color: var(--fg); }
header .sday.edge {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
}
header .sday .dct {
  display: block; font-size: 9px; line-height: 1.1;
  color: #9aa0a6; font-variant-numeric: tabular-nums;
}
header .sday.on .dct { color: #7ba7d8; }
header .sday.edge .dct { color: #dce9ff; }
header .sday:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 筛选按钮：主操作，做成实心；计算中置灰 */
header .vpst-foot button.primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
  font-weight: 600; padding: 3px 16px;
}
header .vpst-foot button.primary:hover:not(:disabled) { background: #0f62d6; color: #fff; }
header .vpst-foot button.primary:disabled { opacity: .6; cursor: default; }

/* ===== 策略表现 / 回测浮层 =====
   比其它浮层宽（里面要放一张 4 行 × 5 列的统计表），且**不分栏** ——
   统计表和参数区都是纵向排列，用 flex-wrap 会把列挤成两行。 */
header .perf-pop { width: 620px; }
header .perf-pop .vpst-panel { flex-direction: column; align-items: stretch; gap: 10px; }

header .pf-tabs {
  display: flex; gap: 0; flex: 0 0 auto;
  border-bottom: 1px solid var(--line); background: #fff; padding: 0 12px;
}
header .pf-tabs button {
  padding: 7px 16px; border: none; border-bottom: 2px solid transparent;
  background: transparent; color: var(--sub); font-size: 12px;
  font-family: inherit; cursor: pointer;
}
header .pf-tabs button:hover { color: var(--fg); }
header .pf-tabs button.on {
  color: var(--accent); font-weight: 600; border-bottom-color: var(--accent);
}
header .pf-page { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
header .pf-page[hidden] { display: none; }

header .pf-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
header .pf-range input[type=date] {
  font-size: 11px; padding: 3px 6px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--fg); font-family: inherit;
}
header .pf-range span { color: var(--sub); font-size: 11px; }

/* 统计表：行 = horizon，列 = 样本/胜率/期望/最大涨/最大跌。
   数字用 tabular-nums 对齐（不然等宽数字会左右跳）。
   期望为正红、为负绿 —— 与 K 线涨跌同色，别让用户二次翻译。 */
header .pf-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
header .pf-tbl th, header .pf-tbl td {
  padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
header .pf-tbl th { color: var(--sub); font-weight: 500; background: #fafbfc; }
header .pf-tbl th:first-child, header .pf-tbl td:first-child {
  text-align: left; color: var(--sub);
}
header .pf-tbl td.up { color: var(--up); }
header .pf-tbl td.down { color: var(--down); }
header .pf-tbl td.dim { color: #9aa0a6; }

header .pf-note {
  font-size: 11px; line-height: 1.7; color: var(--sub);
  padding: 8px 10px; border-radius: 6px; background: #fafbfc;
  border: 1px solid var(--line);
}
header .pf-note b { color: var(--fg); font-weight: 600; }

/* 回测参数：label + 输入框一行一个，紧凑排列 */
header .pf-params { display: flex; flex-direction: column; gap: 6px; }
header .pf-param { display: flex; align-items: center; gap: 8px; font-size: 11px; }
header .pf-param label {
  flex: 0 0 150px; color: var(--sub); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
header .pf-param input[type=number] {
  flex: 0 0 88px; font-size: 11px; padding: 3px 6px;
  border: 1px solid var(--line); border-radius: 4px;
  background: #fff; color: var(--fg); font-family: inherit;
  font-variant-numeric: tabular-nums;
}
header .pf-param .pv { color: #9aa0a6; font-size: 10px; }
header .pf-param.changed input { border-color: var(--accent); color: var(--accent); }
header .pf-empty { font-size: 11px; color: #9aa0a6; padding: 4px 0; }

/* ==========================================================================
   盘中监控 /live —— 昨日涨停股在今天盘中的表现
   这一段的类名统一 lv- 前缀，只被 live.html 使用；共用组件（.metrics /
   .panel / .plate / .badge / .sk）沿用上面的定义，这里只补差异。
   ========================================================================== */
:root {
  /* 「炸板」的专属色：橙。不能用 --down（绿）—— 炸板的票当天多数还是涨的，
     用绿会让人误以为在跌；也不能用 --gold（金），那块已经被「板块最高身位」
     占着。新增一个橙，三色才分得开。 */
  --broke: #e08a1e;
  --broke-bg: #fdf3e3;
}

.badge.broke { background: var(--broke-bg); color: var(--broke); }
.badge.gray { background: var(--line-soft); color: var(--text-3); }

/* ---------------------------------------------------------------- 状态条 */
.lv-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 16px; margin-bottom: 12px;
  font-size: 12.5px; color: var(--text-2);
}
.lv-move b { color: var(--text); font-variant-numeric: tabular-nums; }
.lv-state {
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px;
  border: 1px solid transparent;
}
.lv-state.on { background: var(--up-bg); color: var(--up); border-color: var(--up-bg); }
.lv-state.off { background: var(--line-soft); color: var(--text-3); }
.lv-state.rest { background: var(--gold-bg); color: var(--gold); }
.lv-warn { color: var(--broke); font-size: 11.5px; }
.lv-err {
  color: var(--up); font-size: 11.5px; cursor: help;
  border-bottom: 1px dashed var(--up);
}
.lv-src {
  font-size: 11px; color: var(--text-3); max-width: 260px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 冷启动发盘上快照时的提示（后端 `stale`）：金色低饱和，别跟「数据源告警」抢眼 */
.lv-stale {
  font-size: 11.5px; color: var(--gold); background: var(--gold-bg);
  border-radius: 5px; padding: 1px 7px; cursor: help; white-space: nowrap;
}
.lv-clock {
  margin-left: auto; font-size: 12px; color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.lv-refresh { flex: 0 0 auto; }

/* ---------------------------------------------------------------- 两栏 */
.lv-main {
  display: grid; grid-template-columns: minmax(0, 1fr) 372px;
  gap: 14px; align-items: start;
}
.lv-left { min-width: 0; }
.lv-right { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 14px; }

/* ---------------------------------------------------------------- 工具条 */
.lv-tools {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.lv-q {
  flex: 0 0 240px; font: inherit; font-size: 12.5px;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text);
}
.lv-q:focus { outline: none; border-color: var(--brand); }
.lv-sort { display: inline-flex; gap: 2px; background: var(--line-soft); border-radius: 8px; padding: 2px; }
.lv-tab {
  font: inherit; font-size: 12px; border: 0; background: transparent;
  color: var(--text-2); padding: 4px 11px; border-radius: 6px; cursor: pointer;
}
.lv-tab.on { background: var(--panel); color: var(--brand); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.lv-plate-cnt { margin-left: auto; font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------------------- 板块卡 */
.lv-plate { padding: 12px 14px 8px; }
.lv-g-rt {
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 1px 9px; border-radius: 6px; background: var(--line-soft);
}
.lv-g-rt.red { background: var(--up-bg); color: var(--up); }
.lv-g-rt.green { background: var(--down-bg); color: var(--down); }
.lv-g-sub { font-size: 11.5px; color: var(--text-3); }

.lv-rows { margin-top: 8px; }
.lv-row {
  display: grid;
  grid-template-columns: minmax(64px, 1.5fr) 44px 56px 62px minmax(48px, 1fr) 52px 46px 62px;
  align-items: center; gap: 8px;
  padding: 4px 6px; border-radius: 6px;
  font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.lv-row + .lv-row { border-top: 1px solid var(--line-soft); }
.lv-row.is-seal { background: linear-gradient(90deg, var(--up-bg), transparent 60%); }
.lv-row.is-broke { background: linear-gradient(90deg, var(--broke-bg), transparent 60%); }
.lv-nm { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-tm { font-size: 11px; color: var(--text-3); }
.lv-bd { font-size: 11px; }
.lv-rt { font-weight: 700; text-align: right; line-height: 1.15; }

/* 现价大字 + 溢价小字竖排（列宽只有 66px，横排挤不下）
   ★ 每秒刷新一次价格，跳价时闪一下底色：`fl-up` 红、`fl-dn` 绿，
   动画只作用在 <b> 上，父级 .lv-rt 的颜色负责溢价方向，互不干扰。 */
.lv-rt .lv-px {
  display: block; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;         /* 等宽数字：跳动时列不抖 */
  transition: background-color .12s ease-out;
  border-radius: 3px; padding: 0 2px;
}
.lv-rt .lv-px.fl-up { animation: lvflup 1s ease-out; }
.lv-rt .lv-px.fl-dn { animation: lvfldn 1s ease-out; }
.lv-rt i { display: block; font-size: 11px; opacity: .85; font-style: normal; font-variant-numeric: tabular-nums; }
@keyframes lvflup {
  0%   { background: var(--up-bg); }
  35%  { background: var(--up-bg); }
  100% { background: transparent; }
}
@keyframes lvfldn {
  0%   { background: var(--down-bg); }
  35%  { background: var(--down-bg); }
  100% { background: transparent; }
}
.lv-op, .lv-tn { font-size: 11.5px; color: var(--text-2); text-align: right; }
.lv-yb { font-size: 11px; color: var(--text-3); text-align: right; overflow: hidden; white-space: nowrap; }
.lv-rt.red { color: var(--up); }
.lv-rt.green { color: var(--down); }
.lv-op.red { color: var(--up); }
.lv-op.green { color: var(--down); }

/* 溢价条 `.lv-pb` 已删除（2026-11-02）：溢价 % 的数字就在同一行右边，
 * 柱子只是把两行撑高、把「封板时间 / 身位」挤窄，方块里看不紧凑。
 * 相关样式（`.lv-pb`、`.lv-pb::before`、`.lv-pb i`、`.lv-pb i.z`、
 * `#lvPlates .lr-b .lv-pb`）一并移除，`rateBar()` 也从 live.js 删了。 */

/* ---------------------------------------------------------------- 分时弹层 */
/* 单击方块里的个股 → 这张浮层（canvas 画的当日 1 分钟线，见 live.js 的 drawMinute） */
.lv-min {
  position: fixed; inset: 0; z-index: 900;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .42);
}
.lv-min.on { display: flex; }
.lv-min-card {
  width: 760px; max-width: 92vw;
  background: var(--panel); border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
  padding: 13px 16px 9px;
}
.lv-min-h {
  display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.lv-min-h > b { font-size: 15px; font-variant-numeric: tabular-nums; }
.lv-min-sub { flex: 1 1 auto; font-size: 12px; color: var(--text-3); }
.lv-min-sub b { font-size: 12.5px; }
.lv-min-x {
  flex: 0 0 auto; padding: 0 2px; border: 0; background: transparent;
  font-size: 20px; line-height: 1; color: var(--text-3); cursor: pointer;
}
.lv-min-x:hover { color: var(--text); }
.lv-min-body { padding: 8px 0 2px; }
.lv-min-body canvas { display: block; }
.lv-min-f { padding-top: 3px; font-size: 11px; color: var(--text-3); }

/* ---------------------------------------------------------------- 侧栏 */
.lv-side { padding: 0; }
.lv-side-h {
  font-size: 13px; font-weight: 700; padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.lv-tb { width: 100%; border-collapse: collapse; font-size: 12px; }
.lv-tb th {
  text-align: right; font-weight: 500; color: var(--text-3); font-size: 11px;
  padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.lv-tb th:first-child, .lv-tb td:first-child { text-align: left; }
.lv-tb td {
  padding: 5px 8px; text-align: right; font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line-soft);
}
.lv-tb-n { white-space: nowrap; color: var(--text-2); }
.lv-tb td.red { color: var(--up); font-weight: 600; }
.lv-tb td.green { color: var(--down); font-weight: 600; }
.lv-cnt {
  display: inline-block; height: 6px; min-width: 2px; border-radius: 3px;
  background: var(--brand); vertical-align: middle; margin-right: 6px; opacity: .35;
}

.lv-note, .lv-help {
  font-size: 11.5px; line-height: 1.75; color: var(--text-3);
  padding: 10px 14px 13px; border-top: 1px solid var(--line-soft);
}
.lv-note b { color: var(--text-2); }
.lv-help p { margin: 0 0 7px; }
.lv-help p:last-child { margin-bottom: 0; }
.lv-help b { color: var(--text-2); }
.lv-help code {
  font-size: 11px; background: var(--line-soft); border-radius: 4px;
  padding: 1px 5px; color: var(--text-2);
}
.lv-empty { padding: 26px 14px; text-align: center; color: var(--text-3); font-size: 12.5px; }

@media (max-width: 1180px) {
  .lv-main { grid-template-columns: minmax(0, 1fr); }
  .lv-right { position: static; }
  .lv-row { grid-template-columns: minmax(64px, 1.5fr) 44px 56px 62px 52px 62px; }
  .lv-row .lv-tn { display: none; }
}

.lv-cnt-btn {
  margin-left: 8px; color: var(--brand); cursor: pointer;
  border-bottom: 1px dashed var(--brand); padding-bottom: 1px;
}
.lv-cnt-btn:hover { opacity: .75; }

/* 列头：和 .lv-row 用同一套 grid 列宽，才能逐行对齐
   （.lv-plate 的 padding 14 + .lv-row 的 padding 6 = 20px 左内缩） */
.lv-head {
  display: grid;
  grid-template-columns: minmax(64px, 1.5fr) 44px 56px 62px minmax(48px, 1fr) 52px 46px 62px;
  gap: 8px; padding: 0 20px 7px;
  font-size: 11px; color: var(--text-3);
}
.lv-head span:nth-child(4), .lv-head span:nth-child(6),
.lv-head span:nth-child(7), .lv-head span:nth-child(8) { text-align: right; }

@media (max-width: 1180px) {
  .lv-head { grid-template-columns: minmax(64px, 1.5fr) 44px 56px 62px 52px 62px; }
  .lv-head span:nth-child(5), .lv-head span:nth-child(7) { display: none; }
}

/* 口径切换：和排序用同一套 pill 外观，但要能一眼分辨「这是口径、那是排序」，
   所以口径那组用品牌色描边 */
.lv-src-sw { background: var(--brand-bg); }
.lv-src-sw .lv-tab { color: var(--brand); }
.lv-src-sw .lv-tab.on { background: var(--brand); color: #fff; }
/* 竞价筛选组：和「板块口径」「排序」区分开，用暖色底（竞价是「开盘那一刻」） */
.lv-auc-sw { background: rgba(234, 88, 12, .10); }
.lv-auc-sw .lv-tab { color: #c2410c; }
.lv-auc-sw .lv-tab.on { background: #ea580c; color: #fff; }

/* ================= 自建板块（/draw 浮层） =================
   与观测池的 .wtag 同族（都是 pill），但那套选择器限定在 `aside` 里，
   这里是浮层（header .vpst-pop）内，所以另起一套 .ub-*。
   隐藏组用虚线描边 + 降透明度：一眼看出「它被屏蔽了，不是没有」。 */
header .ub-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 12px; cursor: pointer; user-select: none;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
header .ub-tag:hover { border-color: var(--accent); }
header .ub-tag.on { background: #f0f6ff; border-color: var(--accent); font-weight: 600; }
header .ub-tag.off { border-style: dashed; opacity: .5; }
header .ub-tag i {
  font-style: normal; color: var(--sub); font-size: 11px;
  font-variant-numeric: tabular-nums;
}
header .ub-act { display: inline-flex; gap: 6px; margin-left: 4px; }
header button.mini {
  padding: 2px 8px; font-size: 11px; line-height: 18px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--sub); cursor: pointer;
}
header button.mini:hover { border-color: var(--accent); color: var(--accent); }
header button.mini.danger:hover { border-color: var(--up); color: var(--up); }

header .ub-members {
  max-height: 208px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1px;
}
header .ub-mem {
  display: grid; grid-template-columns: 68px minmax(0, 1fr) 26px;
  align-items: center; gap: 8px;
  padding: 3px 6px; border-radius: 6px; font-size: 12px;
}
header .ub-mem:nth-child(odd) { background: #fafbfc; }
header .ub-mem .c {
  color: var(--sub); font-variant-numeric: tabular-nums; letter-spacing: .2px;
}
header .ub-mem .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header .ub-mem button.mini { padding: 0; width: 22px; height: 20px; line-height: 18px; }
header .ub-members .hint { padding: 10px 6px; color: var(--sub); font-size: 12px; }

/* ================================================================ /live 方块墙
   每个板块一个方块，2 列自适应（≥1400px 放 3 列，≤900px 单列）。
   ★ 用 `#lvPlates` 做作用域前缀：`.lv-plate` 同时带着老的 `.plate` class，
     那条是全宽列表卡的样式，必须压过去，否则边框/间距/标题排版都会打架。
   ★ 不用 `auto-fill`：方块里一行要塞下「名称+徽标+现价」和「封板时间+身位+
     溢价条+溢价%」，列再窄就全变省略号了。 */
#lvPlates {
  display: grid;
  /* 4 列（原 3 列）：方块窄一点，一行多放一块；方块里内容本来就只占左半，
   * 3 列时每块右边会空出一大片。 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; align-items: start;
}
#lvPlates > .lv-empty { grid-column: 1 / -1; }

#lvPlates .lv-plate {
  padding: 0; overflow: hidden; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
/* 拖动反馈：落点方块描品牌色，被拖的方块/行半透明 */
#lvPlates .lv-plate.drop-on {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-bg);
}
#lvPlates .lv-plate.is-drag { opacity: .45; }

/* 方块标题 = 拖方块顺序的把手（整条可抓） */
#lvPlates .plate-top {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  padding: 9px 11px 8px; border-bottom: 1px solid var(--line-soft);
  cursor: grab; user-select: none;
  background: linear-gradient(180deg, #fff, var(--line-soft) 320%);
}
#lvPlates .plate-top:active { cursor: grabbing; }
#lvPlates .lv-grip {
  color: var(--text-3); font-size: 11px; letter-spacing: -1px; line-height: 1;
}
#lvPlates .plate-name { font-size: 13.5px; font-weight: 700; }
#lvPlates .plate-cnt { font-size: 11.5px; color: var(--text-2); }
/* 序号在方块墙里没意义（物理位置就是排名），留着还会因为 flex-wrap
   被挤到第二行最左边，读起来像「最高5板 #1」 */
#lvPlates .plate-rank { display: none; }
#lvPlates .lv-g-rt {
  margin-left: auto; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 1px 7px; border-radius: 6px; background: var(--line-soft);
}
#lvPlates .lv-g-rt.red { background: var(--up-bg); color: var(--up); }
#lvPlates .lv-g-rt.green { background: var(--down-bg); color: var(--down); }
#lvPlates .lv-g-sub { flex-basis: 100%; font-size: 11px; color: var(--text-3); }

/* 行：上下两段。方块内宽度有限，横排 8 列必然挤爆，所以改成
   上「名称 · 徽标 · 现价」下「封板时间 · 身位 · 溢价条 · 溢价%」。 */
#lvPlates .lv-rows { padding: 3px 0 4px; }
#lvPlates .lv-row {
  /* 行高回到原来的 49~50px：压到 39px 时两行文字贴太近，读起来累。
   * 紧凑靠「方块宽度」和「去掉中间空白」实现，不靠压行距。 */
  display: block; padding: 5px 9px; line-height: 1.42;
  font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer;
}
#lvPlates .lv-row:active { cursor: grabbing; }
#lvPlates .lv-row + .lv-row { border-top: 1px solid var(--line-soft); }
#lvPlates .lv-row:hover { background: var(--line-soft); }
#lvPlates .lv-row.is-seal { background: linear-gradient(90deg, var(--up-bg), transparent 65%); }
#lvPlates .lv-row.is-broke { background: linear-gradient(90deg, var(--broke-bg), transparent 65%); }
#lvPlates .lv-row.is-drag { opacity: .4; }
/* 行内落点：上边缘一条品牌色，比整块高亮更能表达「插到这两只之间」 */
#lvPlates .lv-row.drop-on { box-shadow: inset 0 2px 0 var(--brand); }

#lvPlates .lr-a, #lvPlates .lr-b { display: flex; align-items: baseline; gap: 5px; line-height: 1.42; }
#lvPlates .lr-a { margin-bottom: 3px; }
#lvPlates .lv-nm {
  flex: 1 1 auto; min-width: 0;
  font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#lvPlates .lv-bd { flex: 0 0 auto; font-size: 11px; }
#lvPlates .lr-a .lv-px {
  flex: 0 0 auto; font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums;   /* 等宽数字：每秒跳价时列不抖 */
  padding: 0 3px; border-radius: 3px;
  transition: background-color .12s ease-out;
}
#lvPlates .lr-a .lv-px.fl-up { animation: lvflup 1s ease-out; }
#lvPlates .lr-a .lv-px.fl-dn { animation: lvfldn 1s ease-out; }
#lvPlates .lv-px.red, #lvPlates .lv-pc.red { color: var(--up); }
#lvPlates .lv-px.green, #lvPlates .lv-pc.green { color: var(--down); }
#lvPlates .lv-tm { flex: 0 0 auto; font-size: 11px; color: var(--text-3); min-width: 26px; }
/* 封板时间栏显示的是**今天**那一刻（今天没封才退回「昨 HH:MM」）。
   竞价一字板的票显示「竞价」并用红字加重 —— 它比「09:30 秒板」还强一档。 */
#lvPlates .lv-tm.is-today { color: var(--text-2); }
#lvPlates .lv-tm.is-auction { color: var(--up); font-weight: 700; }
#lvPlates .lv-yb {
  flex: 0 0 auto; max-width: 76px;
  font-size: 11px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 板块（新交易日口径第二行的第一个格子，2026-11-30）。
   与 `.lv-yb`（昨日身位）同一档字号/灰度，但**允许收缩并省略**：
   题材名最长见过「其他专业服务」（7 字），板块名一多就会把「竞/涨幅」挤出去，
   而右侧那两列是要一秒看一次的，不能让人为了读它去横向找。 */
#lvPlates .lv-pl {
  flex: 0 1 auto; min-width: 0; max-width: 116px;
  font-size: 11px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 竞价涨幅（`0x056A` 末条 = 09:25 撮合价）：比「溢价」小一号、更淡，
   因为它是个**静态**参考值，右边那个实时溢价才是主角。
   两个都在时正好能看出「高开低走 / 低开高走」。 */
#lvPlates .lv-au {
  /* ★ 不能 margin-left:auto —— 会把「竞+x%」顶到最右，中间空出一大片。
   * 只让 .lv-pc（溢价）靠右，因为要和上一行的价格上下对齐。 */
  flex: 0 0 auto;
  font-size: 10.5px; font-weight: 400; font-style: normal;
  color: var(--text-3); font-variant-numeric: tabular-nums;
  opacity: .85;
}
#lvPlates .lv-au.red { color: var(--up); opacity: .8; }
#lvPlates .lv-au.green { color: var(--down); opacity: .8; }
/* 溢价 % 靠右贴边（原来中间是溢价条 flex:1 撑开的，条删了就自己推） */
#lvPlates .lv-pc {
  flex: 0 0 auto; margin-left: auto; min-width: 48px; text-align: right;
  font-size: 11.5px; font-weight: 700; font-style: normal;
  font-variant-numeric: tabular-nums;
}
/* 竞价标也在时，让溢价的 `margin-left:auto` 让位（否则中间空一大截） */
#lvPlates .lr-b .lv-au + .lv-pc { margin-left: 0; }

@media (min-width: 1400px) {
  #lvPlates { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  #lvPlates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #lvPlates { grid-template-columns: minmax(0, 1fr); }
}

/* 右栏已删（2026-10-29）：方块墙占满宽度，原来放侧栏的「封板时段」改成
   指标条下面的横排 6 格。 */
.lv-main { grid-template-columns: minmax(0, 1fr); }

/* 封板时段带 */
.lv-seal {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px; margin: 0 0 12px;
}
.lv-seal > .lv-empty { grid-column: 1 / -1; }
.lv-sb {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px 9px;
}
.lv-sb-h { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.lv-sb-n { display: flex; align-items: center; gap: 6px; margin: 3px 0 1px; }
.lv-sb-n .bar {
  flex: 1 1 auto; min-width: 0; height: 5px;
  border-radius: 3px; background: var(--line-soft); overflow: hidden;
}
.lv-sb-n .bar i { display: block; height: 100%; background: var(--brand); opacity: .45; }
.lv-sb-n b { font-size: 15px; font-variant-numeric: tabular-nums; }
.lv-sb-n span { font-size: 11px; color: var(--text-3); }
.lv-sb-r { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-sb-r.red { color: var(--up); }
.lv-sb-r.green { color: var(--down); }
.lv-sb-w { font-size: 11px; color: var(--text-3); white-space: nowrap; }

@media (max-width: 1100px) {
  .lv-seal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .lv-seal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 工具条里的「重置布局」 */
.lv-reset {
  font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text-2);
}
.lv-reset:hover { border-color: var(--brand); color: var(--brand); }

/* 拖动说明（一行小字，别让它抢戏；方块一多页面就长了） */
#lvHint { display: flex; align-items: center; gap: 12px; }
.lv-hint-t { flex: 1 1 auto; min-width: 0; }
.lv-hint-io {
  flex: 0 0 auto; display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--sub); white-space: nowrap;
}
/* 提示行：左「N / M 个板块 · 显示全部」、右「自选板块 导出/导入」。
   原来是纯文字一行、计数在工具栏最右（`margin-left:auto`）—— 用户 2026-11-29 要求
   把计数放回这段文字的位置，文字本身删掉（拖动说明讲的是档位卡，题材口径还有别的说法）。 */
.lv-hint {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 11.5px; line-height: 1.6; color: var(--text-3);
  padding: 0 2px 6px;
}
.lv-hint .lv-plate-cnt { margin-left: 0; }
/* 题材口径下这一行整块收起：计数已经在口径条（粒度右边），导出/导入在口径条里也有一份。
   ★ 必须写 `#lvHint`（id）：上面那条 `#lvHint{display:flex}` 是 id 选择器，
   优先级高于 `body.zt-on .lv-hint`（类+类+元素），写类名这条永远压不过它。 */
body.zt-on #lvHint { display: none; }
/* 搬到口径条里时（`.zt-note` 里、紧挨「展开全部」左侧）留一点间距 */
/* 口径条里的「自选板块：导出 / 导入」：紧贴在「展开全部」左边。
   `.zt-all` 自己是 `margin-left:auto`（把它推到行尾），所以这里把 auto 接过来：
   io 拿走 auto、zt-all 不再 auto —— 两个按钮就并排贴在右端，中间不留那一段空白。 */
.zt-note .lv-hint-io { margin-left: auto; margin-right: 8px; }
.zt-note .zt-all { margin-left: 0; }


/* ================================================================ 盘中监控 · 自定义固定
   固定在顶部的「指数 / ETF / 板块指数 / 个股」条。跨口径可见：切到任何
   src tab 都显示（数据走 /api/live/pins 的 7709 快照，与涨停池无关）。
   行内 📌 常态半透明、hover 才亮 —— 一屏 12 行都顶着实心图钉太吵。 */
.lv-pins {
  margin: 8px 0 2px; padding: 8px 10px 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.lv-pin-top {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 7px; padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.lv-pin-t { font-size: 12px; font-weight: 700; color: #b8860b; letter-spacing: .5px; }
.lv-pin-c { font-size: 11px; color: var(--sub); }
.lv-pin-at { font-size: 11px; color: var(--sub); margin-left: auto; }
.lv-pin-exp, .lv-pin-imp {
  font-size: 11px; line-height: 1; padding: 4px 8px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--sub);
}
.lv-pin-exp:hover, .lv-pin-imp:hover { border-color: var(--accent); color: var(--accent); }
.lv-pin-at + .lv-pin-exp { margin-left: 0; }

.lv-pin-row {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 2px; font-size: 13px;
}
.lv-pin-row + .lv-pin-row { border-top: 1px solid #f5f6f8; }
.lv-pin-k {
  flex: 0 0 auto; width: 16px; height: 16px; line-height: 16px;
  text-align: center; font-size: 10px; border-radius: 4px; color: #fff;
}
.lv-pin-k.k-index { background: #4b7bec; }
.lv-pin-k.k-etf   { background: #26a69a; }
.lv-pin-k.k-block { background: #9b59b6; }
.lv-pin-k.k-stock { background: #95a5a6; }
.lv-pin-nm {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: #1f2329;
}
.lv-pin-px { flex: 0 0 auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-pin-rt { flex: 0 0 auto; width: 62px; text-align: right; font-style: normal;
  font-variant-numeric: tabular-nums; }
.lv-pin-x {
  flex: 0 0 auto; width: 18px; height: 18px; line-height: 16px; padding: 0;
  font-size: 13px; cursor: pointer; background: none; border: none;
  color: #c6cbd1; border-radius: 4px;
}
.lv-pin-x:hover { color: #e74c3c; background: #fdecea; }

/* 行内 📌：常态 22% 透明，hover 整行才到 100% */
.lv-pin-btn {
  flex: 0 0 auto; width: 14px; padding: 0; margin-right: 2px;
  font-size: 12px; line-height: 1; cursor: pointer;
  background: none; border: none; color: #b8860b;
  opacity: .22; transition: opacity .12s;
}
.lv-row:hover .lv-pin-btn { opacity: 1; }
.lv-pin-btn.on { opacity: .95; }
.lv-pin-btn:hover { transform: scale(1.25); }
.lv-pin-addb {
  font-size: 11px; line-height: 1; padding: 4px 8px; cursor: pointer;
  background: #fff8e1; border: 1px solid #f0d78c; border-radius: 6px; color: #b8860b;
}
.lv-pin-addb:hover { background: #fff2c8; border-color: #e0c060; }
.lv-pin-addbox { margin: 6px 0 8px; padding: 8px; background: #fafbfc;
  border: 1px dashed var(--line); border-radius: 8px; }
.lv-pin-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.lv-pin-q {
  font-size: 11px; line-height: 1; padding: 5px 8px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; color: #41464b;
}
.lv-pin-q:hover { border-color: #b8860b; color: #b8860b; }
.lv-pin-input { display: flex; gap: 6px; }
.lv-pin-input input {
  flex: 1 1 auto; min-width: 0; font-size: 12px; padding: 6px 9px;
  border: 1px solid var(--line); border-radius: 6px; outline: none;
}
.lv-pin-input input:focus { border-color: var(--accent); }
.lv-pin-input button { flex: 0 0 auto; font-size: 12px; padding: 6px 14px;
  border-radius: 6px; border: none; background: var(--accent); color: #fff; cursor: pointer; }
.lv-pin-rows { margin-top: 2px; }

/* 固定行改成网格：整行宽度下 5 个标的摊在 1400px 上，名字和价格之间
   会空出 1000px 的荒原。240px 一列、按宽度自动排 3~6 列。 */
.lv-pin-rows {
  display: grid; gap: 2px 10px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.lv-pin-row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 4px; font-size: 13px;
  border-radius: 6px;
}
.lv-pin-row:hover { background: #f7f9fb; }
.lv-pin-row + .lv-pin-row { border-top: none; }
.lv-pin-nm {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; color: #1f2329;
}
.lv-pin-px { flex: 0 0 auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-pin-rt { flex: 0 0 auto; width: 58px; text-align: right; font-style: normal;
  font-variant-numeric: tabular-nums; }

/* ---------- 自定义板块卡片 ----------
   每个板块一张卡：头 = 📌 + 名字（点击改名）+ 计数 + ＋（加标的）+ ×（删板块），
   卡内是标的网格（复用 .lv-pin-row）。固定的卡片排前面、切口径也不消失。 */
.lv-gnew {
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  border: 1px dashed #d6c48a; background: #fffdf3; color: #8a6d1b; cursor: pointer;
}
.lv-gnew:hover { border-color: #b8860b; background: #fff8e1; }

#lvPinRows {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.lv-gcard {
  border: 1px solid #eceef1; border-radius: 8px; background: #fff;
  padding: 6px 8px 7px;
}
.lv-gcard.pinned { border-color: #e6d8a8; background: #fffdf7; }
.lv-ghead {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 5px; border-bottom: 1px solid #f2f3f5; margin-bottom: 4px;
}
.lv-gpin {
  flex: 0 0 auto; border: none; background: none; cursor: pointer;
  font-size: 12px; line-height: 1; opacity: .25; padding: 2px; border-radius: 4px;
}
.lv-gpin.on { opacity: 1; }
.lv-gpin:hover { background: #fff2c8; opacity: 1; }
.lv-gname {
  flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 700;
  color: #b8860b; cursor: text;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lv-gcnt {
  flex: 0 0 auto; font-size: 11px; color: var(--sub);
  background: #f2f4f7; border-radius: 8px; padding: 0 6px; line-height: 16px;
}
.lv-gadd, .lv-gdel {
  flex: 0 0 auto; width: 18px; height: 18px; line-height: 1;
  border: 1px solid #e3e6ea; border-radius: 4px; background: #fff;
  color: var(--sub); cursor: pointer; font-size: 13px; padding: 0;
}
.lv-gadd:hover { border-color: var(--accent); color: var(--accent); }
.lv-gdel:hover { border-color: #e74c3c; color: #e74c3c; background: #fdecea; }

/* 卡内的标的区：强制单列（外面 #lvPinRows 已经是多列网格） */
.lv-gcard .lv-pin-rows { grid-template-columns: 1fr; }

.lv-gsearch { position: relative; margin: 0 0 5px; }
.lv-gq {
  width: 100%; box-sizing: border-box; font-size: 12px; padding: 5px 8px;
  border: 1px solid #dfe3e8; border-radius: 6px; outline: none;
}
.lv-gq:focus { border-color: var(--accent); }
.lv-gres {
  position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 2px;
  max-height: 260px; overflow: auto; background: #fff;
  border: 1px solid #e3e6ea; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.lv-gitem {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 5px 8px; border: none; background: none; cursor: pointer; font-size: 12px;
}
.lv-gitem:hover { background: #f4f8ff; }
.lv-gitem.have { opacity: .45; }
.lv-gi-code {
  flex: 0 0 auto; color: var(--sub); font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, Consolas, monospace;
}
.lv-gi-nm {
  flex: 1 1 auto; min-width: 0; color: #1f2329;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lv-gi-have {
  flex: 0 0 auto; font-size: 10px; color: #8a6d1b;
  background: #fff5cc; border-radius: 3px; padding: 0 4px;
}
.lv-gnone, .lv-gempty {
  padding: 8px; font-size: 12px; color: var(--sub); text-align: center;
}

/* ---------- 自定义板块卡片（排在方块墙里，和涨停板分组并列） ---------- */
.lv-gplate { border-style: dashed; border-color: #e6d8a8; background: #fffdf7; }
.lv-gplate .plate-top { gap: 5px; }

.lv-gpin {
  flex: 0 0 auto; border: none; background: none; cursor: pointer;
  font-size: 11px; line-height: 1; opacity: .3; padding: 0 2px; border-radius: 3px;
}
.lv-gpin.on { opacity: 1; }
.lv-gpin:hover { background: #fff2c8; opacity: 1; }

.lv-gname { cursor: text; }

/* 标的类型小徽标：指 / E / 块 / 股 */
.lv-gk {
  flex: 0 0 auto; width: 16px; height: 16px; line-height: 16px; text-align: center;
  border-radius: 3px; font-size: 10px; color: #fff; font-style: normal;
}
.lv-gk.k-index { background: #4b7bec; }
.lv-gk.k-etf   { background: #26a69a; }
.lv-gk.k-block { background: #9b59b6; }
.lv-gk.k-stock { background: #95a5a6; }

/* 移除按钮：常态透明，hover 行才露出来，不干扰读数 */
.lv-gx {
  flex: 0 0 auto; border: none; background: none; color: #c8ccd2; cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0 2px; opacity: 0;
}
.lv-row:hover .lv-gx { opacity: 1; }
.lv-gx:hover { color: #e74c3c; }

.lv-gplate .lv-gempty {
  padding: 12px 6px; font-size: 12px; color: var(--sub); text-align: center;
}

/* 工具条里的「＋ 新建板块」与导出/导入：和「重置布局」同一副骨架 */
.lv-gnew-btn {
  font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
  padding: 5px 9px; border: 1px dashed #d6c48a; border-radius: 8px;
  background: #fffdf3; color: #8a6d1b;
}
.lv-gnew-btn:hover { border-color: #b8860b; background: #fff8e1; color: #8a6d1b; }
.lv-io {
  font: inherit; font-size: 11.5px; line-height: 1; cursor: pointer;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--text-2);
}
.lv-io:hover { border-color: var(--brand); color: var(--brand); }

/* 双击板块名就地改名 */
.lv-gname-edit {
  flex: 1 1 auto; min-width: 0; width: 100%;
  font: inherit; font-size: 12.5px; font-weight: 700; color: #b8860b;
  padding: 1px 4px; border: 1px solid var(--brand); border-radius: 4px;
  background: #fff; outline: none;
}

/* 空态横跨整行（后面还跟着自定义板块卡） */
#lvPlates .lv-empty { grid-column: 1 / -1; }

/* ============================================================ 盘中监控 · 题材分类
   复刻 `F:\workStocks\ths\zt_reason_board` 的报告页（卡片=题材、卡内=逐票名次+理由），
   配色一律用本站变量（涨停=红那条规矩不变，所以「板」的 pill 用蓝/紫/橙，不用正红）。
   `#lvPlates` 平时是 5 列网格（板块卡），题材口径要的是整宽瀑布流 → 用 `.zt-mode` 覆盖。 */
#lvPlates.zt-mode {
  display: block;
  grid-template-columns: none;
  gap: 0;
}
/* 自选板块（用户手工建的）在题材口径下留在上方，仍是小网格 */
#lvPlates.zt-mode .zt-gwrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.zt-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0;
  margin: 0 0 6px; font-size: 11.5px; color: var(--text-3);
}
.zt-note b { color: var(--text); font-weight: 700; }
.zt-note .zt-sep { margin: 0 6px; color: var(--line); }
.zt-note .zt-warn { color: #b45309; font-style: normal; }
.zt-all {
  margin-left: auto; flex: 0 0 auto;
  font: inherit; font-size: 11.5px; line-height: 1;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  color: var(--brand); background: #eef2ff; border: 1px solid #dbe3ff;
}
.zt-all:hover { background: #e2e9ff; }
.zt-all.on { color: #fff; background: var(--brand); border-color: var(--brand); }

/* 粒度下拉（大类 / 题材）：与参照报告页顶部同一控件，放在口径条右端。
   用 select 而不是两个 tab —— 这一层只决定卡怎么摆，不值得占一整行。 */
.zt-gran { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  font-size: 11.5px; color: var(--text-3); flex: 0 0 auto; }
/* 「9 张题材卡 · 422 只」—— 跟着粒度下拉（用户要求放这里，不再占工具栏右侧那一格）。
   数字用 --text 强一点，量词用 --text-3，与口径条其它「N 只」的节奏一致。 */
.zt-cntn { margin-left: 8px; font-size: 11.5px; color: var(--text-3); flex: 0 0 auto; }
.zt-cntn b { color: var(--text-2); font-weight: 600; }
.zt-gran select {
  height: 26px; padding: 0 22px 0 8px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel); color: var(--text); font: inherit; font-size: 11.5px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2398a1ac' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
}
.zt-gran select:focus { outline: none; border-color: var(--brand); }
/* 「显示昨日封单」开关：默认不勾 —— 题材卡的封单/首封/形态属于锚定日，
   新交易日里没有意义，所以默认不展示（2026-11-30 用户要求清除过时信息）。 */
.zt-oldck { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px;
  font-size: 11.5px; color: var(--text-3); flex: 0 0 auto; cursor: pointer; user-select: none; }
.zt-oldck input { width: 12px; height: 12px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.zt-oldck:hover { color: var(--text-2); }
/* 勾上之后放回来的锚定日字段：统一置灰，避免被读成「今天的数据」。 */
.zt-old { color: var(--text-3) !important; }
.zt-bd-old { background: var(--line-soft); color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }
/* 大类卡里的子分组表头：它是常态（每卡 1~4 个），比未归类卡的那种「补充说明」更轻 */
.zt-card .zt-rows .zt-subh { margin-top: 8px; }
.zt-card .zt-rows .zt-subh:first-child { margin-top: 0; }

/* 瀑布流：列用 flex 平分，卡片自上而下排（行优先由 JS 的等高估算法决定） */
.zt-cols { display: flex; align-items: flex-start; gap: 10px; }
.zt-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* 大类/题材卡：外观必须与「昨日涨停」的 `#lvPlates .lv-plate` 完全一致 ——
   同一个页面里两种卡各长一副样子，看着像两套系统（2026-11-29 用户报「颜色太不一致」）。
   具体对齐：同样的 1px 灰边 + 12px 圆角 + 面板白底 + 同一道极浅投影，
   卡头同一道 `linear-gradient(180deg,#fff,var(--line-soft) 320%)`；
   不再用 2px 品牌色顶条（那是参照报告页的写法，在本站显得突兀）。 */
.zt-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  overflow: hidden;
}
/* 卡头：**结构与样式全部借用档位卡的 `.plate-top`**（用户 2026-11-29：
   「布局你和昨日涨停的一样」），这里只补拖动光标 —— 原来那一整套
   `.zt-cname/.zt-cmeta/.zt-pill/.zt-chev` 已删，别再另造第二套卡头。 */
.zt-ch { cursor: grab; }
.zt-ch:active { cursor: grabbing; }

/* 「史」：历史涨跌停 / 四源原因的入口，常驻在名称旁（与「点整行看分时」区分开）。
   刻意做得像文字而不是按钮 —— 一行里已经有 ☆、徽标、价格，再加一个色块会吵。 */
.lv-hist-btn {
  flex: 0 0 auto; padding: 0 3px; border: 0; border-radius: 3px; background: none;
  font-size: 10.5px; line-height: 1.5; color: var(--text-3); cursor: pointer;
}
.lv-hist-btn:hover { background: var(--brand-bg); color: var(--brand); }

/* ---------------------------------------------------------------- 行首股票代码
   2026-11-29 用户：「把盘中监控的所有页面股票代码都加上」。所有口径的行（档位卡 /
   题材卡 / 自选板块以外的池子行）在名字后面统一跟一个 6 位代码。
   三条规则缺一不可：
   · `.lv-nm` 在 #lvPlates 里是 `flex:1 1 auto`（吃满整行把价格推到右边），
     加了代码之后必须放开它，否则代码会被推到徽标前面、名字反而空出一大片；
   · `margin-right:auto` 放在**左组的最后一个元素**上（档位卡是代码、题材卡是「史」），
     这样「名字+代码(+史)」贴左、徽标与价格贴右；
   · 代码用 tabular 数字，避免 1/4/7 这种窄字让代码列跳动。 */
#lvPlates .lv-cd {
  flex: 0 0 auto; font-size: 10.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums; letter-spacing: .1px;
}
#lvPlates .lr-a.has-cd .lv-nm { flex: 0 1 auto; }
#lvPlates .lr-a.has-cd .lv-cd { margin-right: auto; }
/* 题材行要压过上面那条 `#lvPlates .lr-a.has-cd .lv-cd{auto}`（id 优先），
   否则代码与「史」各分一半空隙，代码不贴名字。 */
#lvPlates .zt-rows .lr-a.has-cd .lv-cd { margin-right: 0; }
#lvPlates .zt-rows .lr-a.has-cd .lv-hist-btn { margin-right: auto; }


/* 题材口径：把工具栏与卡区之间的垂直留白压紧（用户：「卡片和上面菜单栏
   怎么有那么多空白」）。只动题材口径，别的口径的节奏是定好的。

   `.lv-seal`（封板时间分布：09:30 前 / 09:30-10:00 / … 六张）**保留**：
   一度在这里 `display:none` 收掉过 99px，理由是「卡头已经写着最高 N 板」。
   但六个口径里只有题材分类少这一条，切过去像另一个人做的页面（用户原话
   「题材分类也加上这个吧，不然怪怪的」）。它讲的是同一批票什么时候封的板，
   与题材分类看的是两次不同的切面，不该因为省 99px 就不给。 */
body.zt-on .lv-seal { display: grid; }
body.zt-on .lv-tools { row-gap: 4px; }
#lvPlates.zt-mode .lv-bar { margin-bottom: 8px; padding: 8px 14px; }
#lvPlates.zt-mode .zt-gwrap { margin-bottom: 8px; }

/* ---- 拖动（与 `#lvPlates .lv-grab` / `.lv-row` 同一套手感）---- */
.zt-grip {
  display: inline-block; margin-right: 2px; color: var(--text-3);
  font-size: 11px; letter-spacing: -2px; user-select: none;
}
.zt-card.drop-on {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
  background: #f5f8ff;
}
.zt-card.is-drag { opacity: .45; }
/* 「挪入」子分组：用户手工拖进来的票，与「本来属于这个大类」的组区分开 */
.zt-subh.is-moved span { color: var(--text-3); font-style: italic; }
.zt-reset {
  margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; color: var(--text-2);
  font-size: 11.5px; cursor: pointer;
}
.zt-reset:hover { border-color: var(--brand); color: var(--brand); }
.zt-card.fold .zt-rows { display: none; }

/* 行体直接复用了 `#lvPlates .lv-row`（上行 `.lr-a` / 下行 `.lr-b`），所以这里
   **不再定义行网格**；只补题材卡独有的第三行「理由」。 */
.zt-rows { padding: 2px 0 3px; margin-top: 5px; }
/* 理由行：缩进与上行名字对齐（`lv-pin-btn` 宽 + gap），两行以内截断 */
.zt-why {
  /* 靠左：原来缩进 20px 是想让开上行的时间列，可第三行本来就没有左侧图标，
     缩进只会让「板块名」凭空多一块空白（2026-11-29 用户报）。 */
  margin-top: 2px; padding-left: 0;
  font-size: 11px; color: var(--text-2); font-style: normal;
  line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-decoration: none;
}
/* 每个题材是 `<s>`：语义上是「标记」，但这里只是分隔片段的容器，
   必须显式关掉删除线，否则整段理由被划一道横线（2026-11-29 用户报过）。 */
.zt-why s { text-decoration: none; color: var(--text-2); display: inline-block; white-space: nowrap; }
.zt-why s::after { content: '·'; margin-left: 4px; color: var(--line); }
.zt-why s:last-child::after { content: ''; margin: 0; }
/* 卡外题材（「+半导体 2.15」这种）：比本卡题材更淡一档，和「昨日涨停」行里的
   次要文字同色（--text-3），别用独立的 #6b7280 造出一块割裂的灰。 */
.zt-why s.zt-ex { color: var(--text-3); }
/* 封单额：跟在 `.lr-b` 里（档位卡没有这个字段，题材卡独有），字号同 `.lv-yb` */
.zt-seal { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.zt-seal.z { color: var(--text-3); }
.zt-more {
  padding: 6px 10px; font-size: 11.5px; color: var(--brand);
  text-align: center; cursor: pointer; background: #f8fafc;
  border-top: 1px solid var(--line-soft);
}
.zt-more:hover { background: #eef2ff; }

/* 未归类卡：配色比正常卡灰一档，并额外带解释行与「可能的新题材」分组头 */
.zt-card[data-ztcard="__other"] { border-top-color: #65718a; }
.zt-card[data-ztcard="__other"] .zt-dot { background: #65718a; }
.zt-ohint {
  padding: 7px 11px; font-size: 11px; line-height: 1.6; color: var(--text-2);
  background: #f8fafc; border-bottom: 1px solid var(--line-soft);
}
.zt-subh {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px 3px; font-size: 11.5px; color: var(--text-2);
}
.zt-subh b { color: var(--text); font-weight: 700; }
.zt-subh em { font-style: normal; color: var(--text-3); font-size: 11px; }
.zt-subh .zt-atag {
  font-style: normal; font-size: 10.5px; padding: 2px 6px; border-radius: 999px;
  background: #fff7e6; color: #b45309;
}
.zt-subh u { margin-left: auto; text-decoration: none; font-size: 10.5px; color: var(--text-3); }

/* ---------------------------------------------------------------- 抽屉
   右侧滑出，宽度跟报告页一致（min(620px,94vw)）；遮罩点击关闭、Esc 关闭。 */
.zt-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, .32);
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.zt-mask.on { opacity: 1; pointer-events: auto; }
.zt-drawer {
  position: fixed; top: 0; right: 0; z-index: 61;
  width: min(620px, 94vw); height: 100vh;
  background: var(--panel); border-left: 1px solid var(--line);
  box-shadow: -18px 0 48px rgba(15, 23, 42, .16);
  transform: translateX(102%); transition: transform .22s ease;
  display: flex; flex-direction: column;
}
.zt-drawer.on { transform: translateX(0); }
.zt-dtop {
  flex: 0 0 auto; position: relative;
  padding: 14px 16px 12px; border-bottom: 1px solid var(--line);
}
.zt-tt b { font-size: 15px; font-weight: 700; color: var(--text); }
.zt-tt i { margin-left: 7px; font-size: 11.5px; color: var(--text-3); font-style: normal; }
.zt-tt p {
  margin: 7px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 11.5px; color: var(--text-2);
}
.zt-tt p u { text-decoration: none; }
.zt-dclose {
  position: absolute; top: 10px; right: 12px;
  width: 26px; height: 26px; line-height: 1; border-radius: 6px; cursor: pointer;
  font-size: 13px; color: var(--text-3);
  background: var(--line-soft); border: 1px solid var(--line);
}
.zt-dclose:hover { color: var(--text); background: #eef2f6; }
.zt-dbody { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px 28px; }
.zt-tagline { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.zt-tg {
  font-size: 11px; font-style: normal; line-height: 1; padding: 4px 8px; border-radius: 999px;
  background: var(--line-soft); color: var(--text-2);
}
.zt-tg.hit { background: #eef2ff; color: #3b5bdb; }
.zt-tg.lg { background: #f3e8ff; color: #6b21a8; }
.zt-sec {
  margin: 16px 0 8px; font-size: 11px; letter-spacing: .06em;
  color: var(--text-3); text-transform: none;
}
.zt-srcbox {
  margin-bottom: 10px; padding: 9px 11px;
  background: #fbfcfd; border: 1px solid var(--line-soft); border-radius: 8px;
}
.zt-srch { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.zt-srch b { font-size: 12px; color: var(--text); }
.zt-srch .zt-tags { font-size: 11px; color: var(--text-2); }
.zt-srch em { margin-left: auto; font-size: 10.5px; color: var(--text-3); font-style: normal; }
.zt-srct {
  font-size: 12px; line-height: 1.72; color: var(--text-2);
  white-space: pre-wrap; max-height: 260px; overflow-y: auto;
}
/* 历史涨停（近一年，最多 12 行） */
.zt-hist { margin-bottom: 6px; }
.zt-hhist {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px;
  font-size: 11.5px; color: var(--text-2);
}
.zt-hhist b { font-size: 12px; color: var(--text); }
.zt-hhist u { margin-left: auto; text-decoration: none; color: var(--text-3); }
.zt-hrow { padding: 5px 0; border-top: 1px solid var(--line-soft); }
.zt-hl { display: flex; align-items: baseline; gap: 6px; font-size: 11.5px; color: var(--text-2); }
.zt-hl b { color: var(--text); font-variant-numeric: tabular-nums; }
.zt-hl i { font-style: normal; font-size: 10.5px; padding: 1px 4px; border-radius: 3px; }
.zt-hl i.z { background: var(--up-bg); color: var(--up); }
.zt-hl i.c { background: #fdf3e3; color: #b45309; }
.zt-hl u { text-decoration: none; color: var(--text-3); }
.zt-hl s { margin-left: auto; text-decoration: none; color: var(--text-3); }
.zt-hr { display: flex; gap: 7px; font-size: 11px; color: var(--text-2); line-height: 1.55; }
.zt-hr em { flex: 0 0 auto; font-style: normal; color: #3b5bdb; }
.zt-hmore { padding-top: 5px; font-size: 10.5px; color: var(--text-3); text-align: center; }
.zt-empty { padding: 10px 0; font-size: 11.5px; color: var(--text-3); }

/* ==================================================================== 页脚
   备案号 + 法律声明。由 common.js 的 mountFooter() 统一注入（见那边的注释），
   /draw 因为整屏画布改用右下角浮标。 */
.site-foot {
  margin: 30px 0 20px; padding: 0 16px; text-align: center;
  font-size: 12px; line-height: 1.9; color: var(--sub);
}
.site-foot-in {
  display: inline-flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 2px 8px;
}
.site-foot a { color: var(--sub); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.sf-ga { display: inline-flex; align-items: center; gap: 4px; }
.sf-ga img { display: block; border: 0; }
.sf-sp { color: #d3d8de; }
.sf-note { color: #9aa0a6; }
/* 整屏页（选股画线）：不占布局，浮在右下角 */
.site-foot-float {
  position: fixed; right: 12px; bottom: 5px; margin: 0; padding: 0;
  z-index: 30; font-size: 11px; opacity: .7; transition: opacity .15s;
  background: rgba(255,255,255,.86); border-radius: 6px; padding: 2px 8px;
}
.site-foot-float:hover { opacity: 1; }
.site-foot-float .sf-note { display: none; }

/* ============================================================ 文档页（隐私/协议）
   只有 /privacy 与 /terms 用。正文按可读性优先：限宽 780px、行高 1.85、
   标题左对齐、列表缩进 1.4em。 */
.doc {
  max-width: 780px; margin: 0 auto; padding: 34px 20px 10px;
  font-size: 14px; line-height: 1.85; color: var(--text-2);
}
.doc h1 {
  margin: 0 0 6px; font-size: 24px; line-height: 1.3; color: var(--text);
}
.doc-meta { margin: 0 0 22px; font-size: 12px; color: #9aa0a6; }
.doc h2 {
  margin: 30px 0 10px; font-size: 16px; color: var(--text);
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.doc h3 { margin: 18px 0 6px; font-size: 14px; color: var(--text); }
.doc p { margin: 0 0 11px; }
.doc ul { margin: 0 0 12px; padding-left: 1.5em; }
.doc li { margin: 0 0 5px; }
.doc code {
  font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 12.5px;
  background: #f2f4f7; border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; color: #c0392b;
}
.doc strong { color: var(--text); font-weight: 600; }
.doc-lead {
  margin: 0 0 6px; padding: 13px 16px; border-radius: 10px;
  background: #f7f9fc; border: 1px solid #e3e9f2; color: var(--text-2);
}


/* ============================================================ 访问控制页
   一个表格 + 四张指标卡 + 一个封禁弹层。刻意不做卡片化 —— 这一页要看的是
   「哪一行不对劲」，卡片会把行与行的对齐打散。 */
.acc-head { display: flex; align-items: baseline; gap: 14px; padding: 18px 18px 10px; }

.acc-head h1 { margin: 0; font-size: 17px; font-weight: 600; }
.acc-back { margin-left: auto; font-size: 13px; }
.acc-back a { color: var(--brand); text-decoration: none; }
.acc-back a:hover { text-decoration: underline; }

/* 这几个块都是 .wrap，各自会带上 padding-bottom:70px —— 叠在一起就是卡片与
   工具栏之间 60~70px 的空白。这里只保留 .acc-foot 的底部留白。 */
.acc-metrics, .acc-tools, .acc-body { padding-bottom: 0; }
.acc-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.acc-m {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; display: flex; flex-direction: column; gap: 3px;
}
.acc-m i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.acc-m b { font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -.3px; }
.acc-m em { font-style: normal; font-size: 11px; color: #9aa0a6; }

.acc-tools {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 14px 0 10px;
}
#accQ {
  flex: 1 1 200px; min-width: 150px; max-width: 300px;
  font: inherit; font-size: 13px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text);
}
#accQ:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.acc-sorts, .acc-filters { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.acc-s, .acc-f {
  font: inherit; font-size: 12.5px; line-height: 1; cursor: pointer;
  padding: 7px 11px; border: 0; border-right: 1px solid var(--line);
  background: var(--panel); color: var(--text-2); white-space: nowrap;
}
.acc-s:last-child, .acc-f:last-child { border-right: 0; }
.acc-s:hover, .acc-f:hover { background: #f2f5f9; }
.acc-s.on, .acc-f.on { background: var(--brand); color: #fff; }
.acc-refresh { margin-left: auto; font-size: 12.5px; padding: 6px 13px; }

.acc-body { padding-bottom: 6px; }
.acc-table {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--panel);
}
.acc-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) minmax(140px, 1.5fr) 72px 82px 92px 92px minmax(190px, 1.1fr);
  align-items: center; gap: 8px;
  padding: 8px 13px; font-size: 12.5px;
  border-bottom: 1px solid var(--line-soft, #f0f2f5);
}
.acc-row:last-child { border-bottom: 0; }
.acc-row:not(.acc-th):hover { background: #f8fafc; cursor: pointer; }
.acc-th {
  background: #fafbfc; font-size: 11.5px; color: var(--text-3);
  font-weight: 500; position: sticky; top: 0; z-index: 1;
}
.acc-row.open { background: #f7faff; }
.acc-row .c-ip { display: flex; align-items: center; gap: 6px; min-width: 0; }
.acc-row .c-ip b { font-weight: 500; font-variant-numeric: tabular-nums; }
.acc-row .c-geo { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row .c-geo.acc-lan { color: #9aa0a6; }
.acc-row .c-geo.acc-pending { color: #c9a227; }
.acc-row .c-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.acc-row .c-n.acc-bad { color: #d9534f; font-weight: 500; }
.acc-row .c-t { color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-row .c-a { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.acc-ua {
  font-size: 11px; color: #9aa0a6; max-width: 92px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-badge {
  font-size: 10.5px; padding: 1px 6px; border-radius: 4px; white-space: nowrap;
  background: #fdeceb; color: #b4423e; border: 1px solid #f5c9c6;
}
.acc-act {
  font: inherit; font-size: 11.5px; line-height: 1; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
}
.acc-act:hover { background: #f2f5f9; }
.acc-unban { color: #2f855a; border-color: #c6e6d3; }
.acc-unban:hover { background: #f0faf4; }
.acc-empty { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 13px; }

.acc-paths { background: #fbfcfd; border-bottom: 1px solid var(--line-soft, #f0f2f5); padding: 9px 13px 11px 26px; }
.acc-paths-in { font-size: 12px; color: var(--text-2); }
.acc-paths-in i { color: var(--text-3); }
.acc-ph { font-size: 11px; color: var(--text-3); margin-bottom: 4px; }
.acc-pr {
  display: flex; align-items: center; gap: 12px; padding: 2px 0;
  font-variant-numeric: tabular-nums;
}
.acc-pr code { font-size: 11.5px; color: #2f5bd0; background: #f0f4ff; padding: 1px 6px; border-radius: 4px; }
.acc-pr span { color: var(--text-2); }
.acc-pr i { font-style: normal; color: var(--text-3); font-size: 11px; margin-left: auto; }

.acc-foot { display: flex; align-items: center; gap: 12px; padding: 10px 0 26px; font-size: 12px; color: var(--text-3); }
.acc-stat { flex: 1 1 auto; }
.acc-pager { display: flex; align-items: center; gap: 7px; }
.acc-pg { color: var(--text-3); font-variant-numeric: tabular-nums; }
.acc-pgb {
  font: inherit; font-size: 12px; cursor: pointer; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--text-2);
}
.acc-pgb:hover { background: #f2f5f9; }

/* 封禁弹层 */
.acc-mask {
  position: fixed; inset: 0; background: rgba(20, 24, 30, .34);
  display: flex; align-items: center; justify-content: center; z-index: 900;
}
/* ★ `hidden` 是 UA 样式里的 display:none，优先级低于上面这条 display:flex ——
   不补这一行，弹层会一进页面就盖住整张表。 */
.acc-mask[hidden] { display: none; }
.acc-pop {
  width: 400px; max-width: calc(100vw - 40px);
  background: var(--panel); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  display: flex; flex-direction: column; overflow: hidden;
}
.acc-pop-h {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.acc-pop-h b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.acc-x {
  margin-left: auto; font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
  width: 26px; height: 26px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-3);
}
.acc-x:hover { background: #f2f5f9; }
.acc-pop-b { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.acc-lab { font-size: 11.5px; color: var(--text-3); margin-top: 6px; }
.acc-sub { color: #b0b6bd; }
.acc-hours { display: flex; gap: 6px; }
.acc-h {
  flex: 1; font: inherit; font-size: 12.5px; line-height: 1; cursor: pointer;
  padding: 7px 0; border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel); color: var(--text-2);
}
.acc-h:hover { background: #f2f5f9; }
.acc-h.on { background: #fdeceb; border-color: #f0b8b4; color: #b4423e; font-weight: 500; }
#accReason {
  font: inherit; font-size: 13px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text);
}
#accReason:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.acc-cidr { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.acc-cidr i { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }
.acc-warn {
  margin-top: 8px; padding: 7px 10px; border-radius: 7px;
  background: #fdf5f5; border-left: 3px solid #d9534f;
  font-size: 12px; color: #8a4b4b; line-height: 1.6;
}
.acc-pop-f {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--line); background: #fafbfc;
}
.acc-danger { background: #d9534f; border-color: #d9534f; color: #fff; }
.acc-danger:hover { background: #c9403c; border-color: #c9403c; }

@media (max-width: 1180px) {
  .acc-row { grid-template-columns: minmax(130px, 1fr) minmax(110px, 1.2fr) 62px 72px 84px minmax(150px, 1fr); }
  .acc-row .c-t:nth-of-type(2) { display: none; }
}
@media (max-width: 900px) {
  .acc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-row { grid-template-columns: minmax(120px, 1fr) 62px 72px minmax(140px, 1fr); }
  .acc-row .c-geo, .acc-row .c-t { display: none; }
}



/* ============================================================
   后台 · 策略管理视图（#vStrat）
   原 /admin/strategies 独立页自带一份样式表，并进来后整体加 #vStrat 作用域：
   app.css 里已经有 #chart（选股画线页的 K 线容器）和 .card / .sub / .hint，
   不加作用域会互相污染。id 也统一加了 st 前缀（stChart / stTbody / …）。
   ============================================================ */
#vStrat .sub { color: var(--text-3); font-size: 13px; margin: 0 0 20px; }
/* ★ 全局 .card 是指标卡（flex: 1; min-width: 132px），这里是内容卡，必须清掉 flex */
#vStrat .card { flex: none; min-width: 0;
                background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
                padding: 16px; margin-bottom: 16px; }
#vStrat .card h2 { font-size: 15px; margin: 0 0 12px; }
#vStrat label { display: block; font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
#vStrat input[type=text], #vStrat input[type=password], #vStrat input[type=date],
#vStrat select, #vStrat textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff; color: var(--text);
}
#vStrat textarea { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 12.5px;
                   line-height: 1.5; min-height: 260px; resize: vertical; }
#vStrat .row { display: flex; gap: 12px; margin-bottom: 12px; }
#vStrat .row > * { flex: 1; }
#vStrat button { background: var(--brand); color: #fff; border: 0; border-radius: 8px;
                 padding: 9px 18px; font: inherit; cursor: pointer; }
#vStrat button.ghost { background: #f2f3f5; color: var(--text); }
#vStrat button.danger { background: var(--up); }
#vStrat button.small { padding: 4px 10px; font-size: 12.5px; }
#vStrat button:disabled { opacity: .5; cursor: not-allowed; }
#vStrat .msg { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 13px;
               display: none; white-space: pre-wrap; }
#vStrat .msg.ok { display: block; background: #e8ffea; color: #1a7a2e; border: 1px solid #b7ebc0; }
#vStrat .msg.err { display: block; background: #ffece8; color: #c02b2b; border: 1px solid #ffcfc7; }
#vStrat table { width: 100%; border-collapse: collapse; font-size: 13px; }
#vStrat th, #vStrat td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line);
                         vertical-align: top; }
#vStrat th { color: var(--text-3); font-weight: 500; }
#vStrat .tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
#vStrat .tag.line { background: #e8f3ff; color: #2f5bd0; }
#vStrat .tag.screen { background: #f0e8ff; color: #722ed1; }
#vStrat .tag.ok { background: #e8ffea; color: #1a7a2e; }
#vStrat .tag.err { background: #ffece8; color: #c02b2b; }
#vStrat .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
#vStrat .hint { background: none; border: 0; padding: 0; color: var(--text-3);
                font-size: 12px; margin-top: 6px; }

/* 两栏：左列表 + 右试跑（这是原本的大布局，保持不变） */
#vStrat .cols { display: flex; gap: 16px; align-items: flex-start; }
#vStrat .col-left { flex: 1.15; min-width: 0; }
#vStrat .col-right { flex: 1; min-width: 0; }
@media (max-width: 1080px) {
  #vStrat .cols { flex-direction: column; }
  #vStrat .col-left, #vStrat .col-right { width: 100%; }
}

/* 策略列表行操作 */
#vStrat .ops { white-space: nowrap; }
#vStrat .ops a { color: var(--brand); cursor: pointer; text-decoration: none;
                 margin-right: 10px; font-size: 12.5px; }
#vStrat .ops a.danger { color: var(--up); }
#vStrat .ops a:hover { text-decoration: underline; }
#vStrat tr.sel { background: #f0f5ff; }

/* 股票联想搜索 */
#vStrat .search { position: relative; }
#vStrat .qlist { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 4px;
                 background: #fff; border: 1px solid var(--line); border-radius: 8px;
                 box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 300px; overflow: auto; }
#vStrat .qlist .tip { padding: 6px 10px; color: var(--text-3); font-size: 12px;
                      border-bottom: 1px solid var(--line); }
#vStrat .qlist .empty { padding: 12px 10px; color: var(--text-3); font-size: 13px; }
#vStrat .qi { padding: 8px 10px; cursor: pointer; display: flex; gap: 8px;
              align-items: baseline; font-size: 13px; }
#vStrat .qi:hover, #vStrat .qi.on { background: #f0f5ff; }
#vStrat .qi .c { font-family: ui-monospace, Consolas, monospace; color: var(--brand); min-width: 74px; }
#vStrat .qi .n { font-weight: 500; }
#vStrat .qi .p { color: var(--text-3); font-size: 12px; margin-left: auto; }
#vStrat .qi .pc { font-size: 12px; }

/* K 线画布 */
#vStrat #stChart { height: 420px; border: 1px solid var(--line); border-radius: 8px;
                   background: #fff; position: relative; overflow: hidden; }
#vStrat #stChart .placeholder { position: absolute; inset: 0; display: flex; align-items: center;
                                justify-content: center; color: var(--text-3); font-size: 13px; }
#vStrat .chart-toolbar { display: flex; gap: 8px; align-items: center;
                         flex-wrap: wrap; margin-bottom: 10px; }
#vStrat .chart-toolbar input[type=date] { width: auto; flex: 0 0 150px; }
/* 试跑那行塞了搜索框 + 两个按钮组 + 试跑，一行放不下会把搜索框压扁；
   让它独占一行，下面那行放口径/周期/试跑。 */
#vStrat .chart-toolbar .search { flex: 1 1 100%; min-width: 0; }
#vStrat .chart-toolbar > label.sub { flex: 0 0 auto; white-space: nowrap; margin: 0; }
#vStrat .chart-toolbar .grp { display: inline-flex; border: 1px solid var(--line);
                              border-radius: 8px; overflow: hidden; }
#vStrat .chart-toolbar .grp button { background: #fff; color: var(--text); border-radius: 0;
                                     padding: 6px 12px; border-right: 1px solid var(--line); }
#vStrat .chart-toolbar .grp button:last-child { border-right: 0; }
#vStrat .chart-toolbar .grp button.on { background: var(--brand); color: #fff; }

/* 试跑结果 */
#vStrat .res-item { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
                    margin-bottom: 8px; font-size: 13px; }
#vStrat .res-item .hit { color: var(--down); font-weight: 500; }
#vStrat .res-item .miss { color: var(--text-3); }
#vStrat .plugin-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
                      margin-right: 6px; background: var(--purple); }
#vStrat .edithint { color: var(--text-3); font-size: 12px; margin: 4px 0 8px; }


/* ==================================================================
   热门榜单 /hotrank —— 仓位雷达 · 一剑封喉 · 四合一人气榜

   命名空间 `.hr-*`，与 `.lv-*`（盘中监控）`.acc-*`（访问控制）
   `.adm-*`（后台）`.ld-*`（天梯）同一套手法：页面级样式全带前缀，
   这样它和别的页共用 `table` / `.panel` / `.metrics` 也不会互相污染。

   ★ 色系上的一个坑（写在最前面，别改错）：
     「仓位」用的是策略色（绿=重仓、红=空仓，见 --hr-pos-*），
     **不是**涨跌色（--up 红 / --down 绿）。这两个色系在本站是反的，
     仓位数字一旦接上 `.up-text`，20% 的橙色会被看成「跌了」。
     所以这里所有仓位相关的颜色都单独定义，绝不复用 `.up-text/.down-text`。
   ================================================================== */
/* ---------------- 自适应卡片网格 ----------------
   宽屏两列、窄屏一列，**不写断点** —— `auto-fit` + `minmax(460px, 1fr)`
   自己就决定了：容器放得下两张 460px 的卡就并排，放不下就落成一列。
   断点写死到像素反而会在 1000~1200px 这段出现「两列挤成一条缝」。

   ★ 行的对齐用 `stretch`（默认值，这里显式写出来是为了防止后人加回 start）：
     早先试过 `align-items: start`，每张卡按自己内容的高度排，结果是左边信号表
     到底了、右边指标面板还差 120px —— 那 120px 白就露在卡片外面，比卡片内部
     留白难看得多。现在两卡等高，卡片内部再靠 `.hr-card` 的 flex + `.hr-ind`
     的 `grid-auto-rows: 1fr` 把格子拉开填满，外面一行齐平、里面不留缝。 */
.hr-grid {
  display: grid; gap: 12px; align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
}
.hr-grid + .hr-grid { margin-top: 12px; }
/* 池子区不用 grid，也不用 CSS 多列 —— 两者都会留洞，只是洞的位置不同：
     · grid：同一行两张卡被拉成等高，短的那张**内部**撑出一片白
       （预选 9 行 vs 一剑封喉 0 只，最早那版截图就是它）；
     · 多列（columns）：Chrome 的平衡算法遇到「整块不可断」的表卡会直接放弃平衡，
       实测左列 914px / 右列 1419px，左下依旧一大块白。
   所以改成**结构化的两列砖墙**：`.hr-cols > .hr-col`，哪张卡进哪列由 JS 按估算
   高度贪心分配（见 hotrank.js 的 `twoCol()`）。卡片各自保持自然高度，
   剩下的差额只出现在最后一屏的收尾处 —— 那是页面结束，不是洞。
    窄屏（<1100px）一列到底。 */
.hr-cols { display: flex; gap: 12px; align-items: flex-start; }
.hr-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hr-col > * { margin-bottom: 0; }
/* ⚠ `.hr-pool-empty` 曾经带 `align-self:start`（在网格里表示「别纵向拉满」），
   可池子区改成 flex **纵向**容器后交叉轴变成水平 —— 那张空池卡会缩成内容宽度，
   在整列里孤零零一条。所以现在它必须是 stretch；纵向「别拉满」由 `.hr-col` 的
   `align-items` 默认值和卡片自身的高度决定，不需要额外声明。 */
.hr-col > * { align-self: stretch; }
@media (max-width: 1100px) {
  .hr-cols { flex-direction: column; }
}
/* 名称与代码同一格（`名称<br>代码`），名字本身不许折行 */
.hr-pool td.nm { white-space: nowrap; min-width: 84px; }
/* 池子表列多，单元格内边距从全站的 9/11 收到 8/7：一列省 8px，八列就是 64px */
.hr-pool th, .hr-pool td { padding: 8px 7px; }
/* 数字列一律不折行 —— 「2.68亿」被拆成「2.68」+「亿」会白占一整行高 */
.hr-pool td.num { white-space: nowrap; }
/* 行业是「申万二级」，最长「电子化学品Ⅱ」7 字；列宽只有 88px，
   放不下就省略号，完整值在 title 里 */
.hr-pool td.hr-hy { max-width: 88px; overflow: hidden; }
.hr-pool td.hr-hy .tag {
  display: inline-block; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}

/* 卡片 = `.panel` + 内边距。★ 卡片内部的子块**不再自带 margin-bottom**：
   网格的 gap 已经管了行距，再叠一层 margin 就是双倍行距（也是白）。
   `flex: column` 是为了让最后一块（表格 / 指标网格）吃掉卡片的剩余高度 ——
   两卡等高之后，短的那张不会在底部留一条空白带。 */
.hr-card { padding: 12px 14px; display: flex; flex-direction: column; }
.hr-card > * { flex: 0 0 auto; }
.hr-card > table, .hr-card > .hr-gate-b, .hr-card > .hr-gauge { flex: 1 1 auto; }
/* 通栏卡：信号表 + 指标网格讲的是同一件事（日线判据），合成一张，
   避免左右两张卡高度对不齐时在短的那张底下留白 */
.hr-card-wide { grid-column: 1 / -1; }
/* 卡内分节的分隔线（比再开一张卡轻） */
.hr-sep { height: 1px; background: var(--line-soft); margin: 12px 0; }
.hr-card-h {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.hr-card-h i {
  font-style: normal; font-size: 11.5px; font-weight: 400;
  color: var(--text-3); margin-left: auto; white-space: nowrap;
}
/* 雷达的计算标的切换（上证指数 / 平均股价）。
   放在卡头里而不是另起一条工具栏：它只影响这一张卡，另起一行要为它白吃 40px。
   `align-self:center` 是因为 `.hr-card-h` 是 `baseline` 对齐，按钮会被顶歪。 */
.hr-basis { display: inline-flex; align-self: center; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; background: var(--panel); }
.hr-basis button {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 11.5px;
  line-height: 1; padding: 5px 9px; color: var(--text-2); white-space: nowrap;
}
.hr-basis button + button { border-left: 1px solid var(--line); }
.hr-basis button:hover { background: #f7f9fc; color: var(--text); }
.hr-basis button.on { background: var(--brand); color: #fff; }
.hr-basis button.on:hover { background: var(--brand); color: #fff; }

/* 指标条 + 四家徽章合成一行：左边数字、右边口径，窄屏折行。
   两个子块都脱掉自己的边框与底色（外面这层已经是白卡了） */
.hr-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 7px 12px; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.hr-head .metrics {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; flex: 1 1 auto;
}
/* 这一行里数字是配角（主角在下面的表里），所以把 17px 压到 15px */
.hr-head .metrics .m b { font-size: 15px; }
.hr-head .hr-src { margin: 0; flex: 0 0 auto; }
/* 指标条旁边的说明文字（不占指标格，也不抢字号） */
.hr-hint { font-size: 12px; color: var(--text-3); }

.hr-mkt {
  display: inline-block; font-style: normal; font-size: 10px; line-height: 1;
  padding: 2px 4px; margin-right: 5px; border-radius: 4px;
  background: var(--line-soft); color: var(--text-3); vertical-align: 1px;
}
/* 人气名次：**越小越热**。这是名次不是涨跌，所以给「热」色而不给红绿 */
.hr-hot { font-variant-numeric: tabular-nums; color: var(--text-2); }
.hr-hot.hr-hot1 { color: var(--up); }
.hr-hot.hr-hot2 { color: var(--gold); }

/* 工具栏左侧的口径说明（仓位雷达页没有搜索框，靠它把左边填住） */

/* 表格里的序号圆点（信号编号 / 行号共用形状，颜色分开） */
.hr-ix { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 12px; }
.hr-no {
  display: inline-block; width: 20px; height: 20px; line-height: 20px; font-style: normal;
  border-radius: 50%; background: var(--brand-bg); color: var(--brand);
  font-size: 11.5px; font-weight: 600; text-align: center;
}
/* 「持股 / 持币 / 无信号」小胶囊，三种状态三种颜色 —— 后两种**必须分开**：
   「持币」是明确看空（绿），「无信号」是这条判据压根没成立（灰）。
   混成一样的灰会让第 5 条（大底大顶）看起来像「看空」，其实是「最近十天没出现
   大顶也没出现大底」，两者的仓位含义完全不同。
   `nowrap` 是必须的：胶囊在表格列里只有 ~64px，不加就会断成「无信 / 号」两行。
   注意这套颜色是**这一页的口径**：持股=红（A 股涨色），与上方「仓位色阶绿=重仓」
   不是一套体系 —— 色阶来自后端 toneHex，这里只是信号状态的语义色。 */
.hr-sig {
  display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px;
  background: #f1f3f6; color: var(--text-3); font-weight: 600; white-space: nowrap;
}
.hr-sig.hold { background: var(--up-bg); color: var(--up); }
.hr-sig.cash { background: var(--down-bg); color: var(--down); }
.hr-tag { color: var(--text-2); font-size: 12.5px; }
.hr-dn { color: var(--text-2); }
.hr-hy { white-space: nowrap; }
/* 行业列通用（池子表与四合一人气榜都用）：放不下就省略号，完整值在 title 里 */
td.hr-hy { max-width: 110px; overflow: hidden; }
td.hr-hy .tag {
  display: inline-block; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}
.hr-off {
  display: inline-block; font-style: normal; font-size: 10px; margin-left: 3px;
  padding: 0 3px; border-radius: 3px; background: #f1f2f4; color: var(--text-3);
}

/* ---------------- 仓位雷达：大号仓位 + 刻度 ---------------- */
.hr-gauge {
  display: flex; gap: 26px; align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px;
}
.hr-gauge-l { flex: 0 0 auto; text-align: center; min-width: 196px; }
/* 装进卡片时**脱掉自己的壳**：外面已经是白卡 + 1px 边，再留一层就是双框双底。
   同时把 align-items 从 center 改成 stretch —— 卡片被网格拉到与闸门卡同高时，
   右侧那一列必须先撑满，里面的 `margin-top:auto` 才推得动「判定理由」。 */
.hr-card .hr-gauge {
  background: none; border: 0; border-radius: 0; margin: 0; padding: 4px 2px;
  align-items: stretch;
}
/* 撑满后大数字自己纵向居中，不然它会贴在卡片顶部 */
.hr-card .hr-gauge-l { display: flex; flex-direction: column; justify-content: center; }
/* 大数字本身不加粗到夸张 —— 它是「一眼看到」的锚点，不是标题 */
.hr-pos { font-size: 92px; font-weight: 700; line-height: 1; letter-spacing: -3px;
          font-variant-numeric: tabular-nums; }
.hr-pos span { font-size: 34px; font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.hr-pos-k { margin-top: 8px; font-size: 12.5px; color: var(--text-3); letter-spacing: 1px; }
.hr-gauge-r { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* 闸门六格**强制一行**：`auto-fit` 在窄栏里会掉成 2×3，卡片高度直接从 126 涨到
   206，而旁边的仓位卡最低只有 113 —— 差额只能变成白（要么卡内、要么卡外一块缺角）。
   六格一行后两张卡几乎等高，105 vs 113 的 8px 差额被 stretch 吃掉也看不出来。 */
.page-hotrank .hr-gate-b { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* 仓位卡与闸门卡同高（网格 stretch），而闸门卡内容更长 —— 于是仓位卡底下会
   空出一条白。让右侧那一列变成纵向 flex，把「判定理由」推到底部（margin-top:auto），
   空白就变成了刻度与理由之间的一段呼吸，而不是卡片底部的缺口。 */
.hr-gauge-r .hr-reason { margin-top: auto; padding-top: 10px; }
/* 「判定理由」推到卡片底部之后，中间那段空白看着像漏排。给它一条虚线分隔：
   空白就变成「刻度区 / 结论区」的分节留白，而不是缺一块。 */
.page-hotrank .hr-gauge-r .hr-reason {
  border-top: 1px dashed var(--line); margin-top: auto; padding-top: 9px;
}

/* 5 段刻度：每段 20%。亮起的段用**内联** background（色阶来自后端 toneHex，
   不在 CSS 里再判一次 —— 两处判就会漂移） */
.hr-scale { display: flex; gap: 5px; margin-bottom: 7px; }
.hr-seg {
  flex: 1; height: 28px; border-radius: 6px; background: #eef0f3; color: #b6bdc6;
  font-style: normal; font-size: 11.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums; transition: background .18s ease, color .18s ease;
}
.hr-seg.on { color: #fff; }
.hr-scale-k { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); }
/* 「信号得分 → 闸门压到」：两个数分叉时才出现，是这一页最容易被误读的一行 */
.hr-gap {
  margin-top: 11px; padding: 7px 11px; border-radius: 8px; background: var(--gold-bg);
  font-size: 12.5px; color: #8a6d1b; display: inline-block;
}
.hr-gap b { font-variant-numeric: tabular-nums; }
.hr-arrow { font-style: normal; margin: 0 7px; color: #b8995a; }
.hr-reason { margin-top: 11px; font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* 五项信号表：卡片自己带内边距，这里只管行内垂直居中 */
.hr-sigbox { margin: 0; }
.hr-sigbox td { vertical-align: middle; }

/* 指标 / 闸门的格子：**每格自己描右边和下边**，不用「1px 间隙 + 灰底」那一招。
   那一招在格数除不尽列数时会露馅 —— 指标 10 格按 6 列排，第二行只剩 4 格，
   右边两格没东西，网格底色的浅灰就从那里漏出来，看着像「有两个格子没填」。
   改成逐格描边后，空缺处就是卡片自己的白，谁也看不出来。
   `grid-auto-rows: minmax(52px, auto)` 是「至少 52px，内容多就长高」：
   不写 `1fr` —— 那会把格子拉成一样高去填满卡片，指标那 10 格会变成
   一个个 110px 高、上下各空半格的大方块。 */
.hr-ind, .hr-gate-b {
  display: grid; gap: 0; background: none;
  grid-auto-rows: minmax(52px, auto);
}
.hr-gate-b { grid-auto-rows: minmax(52px, 1fr); }
.hr-ind { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.hr-cell {
  background: var(--panel); padding: 9px 12px;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.hr-cell i { font-style: normal; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.hr-cell b {
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hr-ind { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* 卡片里的网格不要再描边 + 留白（卡片已经给了），否则四周各多出 1px + 12px */
.hr-card .hr-ind { border: 0; border-radius: 0; margin: 0; }

/* 月线闸门：它本身就是一张卡（`.panel.hr-card.hr-gate`），
   所以**不吃 .hr-card 的内边距** —— 标题那条灰底要贴到卡片边缘 */
.hr-gate {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.hr-card.hr-gate { padding: 0; }
.hr-gate-h {
  padding: 10px 14px; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: #fafbfc; border-bottom: 1px solid var(--line-soft);
}
/* 闸门的「状态」单独一行（它不是数字，是一句话）：留在网格里会让 7 格排成
   4+3，右下角空出一格白。移出来之后下面是 6 个整数格 —— 3 列 × 2 行，正好除尽。
   文字用可折行的 13px，不再被 `overflow:hidden` 截成「熊市 · 零轴上…」。 */
.hr-gate-st {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 600;
  border-bottom: 1px solid var(--line-soft); color: var(--text);
}
.hr-gate-st i { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--text-3); }
/* 6 格 / 3 列。宽度到不了 3 列时落成 2 列（6 也能除尽），再窄 1 列 —— 
   用 auto-fit + minmax 而不是固定列数，就是为了「任何宽度都不留半格空位」。 */
.hr-gate-b { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hr-gate-b .hr-cell b { white-space: normal; }
.hr-bear { color: var(--up); }
.hr-bull { color: var(--down); }

/* ---------------- 一剑封喉：提示条 / 在线徽章 / 池子 ---------------- */
/* 取数侧实话（不是竞价快照 / 只拿到几千只 / 掉源）—— 琥珀色，比红色轻，
   因为它是「口径提醒」不是「出错了」 */
.hr-warn {
  background: var(--gold-bg); border: 1px solid #f0e2bb; border-radius: 10px;
  padding: 9px 14px; margin-bottom: 10px; font-size: 13px; color: #8a6d1b; line-height: 1.65;
}
/* 策略侧提示（熊市 / 九阳死叉）—— 红条，因为它直接改「该不该动手」 */
.hr-bearbar {
  background: var(--up-bg); border-left: 3px solid var(--up); border-radius: 8px;
  padding: 10px 14px; margin-bottom: 10px;
}
.hr-bearbar b { display: block; font-size: 13px; color: var(--up); }
.hr-bearbar i {
  display: block; font-style: normal; margin-top: 4px;
  font-size: 12.5px; color: var(--text-2); line-height: 1.6;
}

/* 四家人气榜在线状态：**口径的一部分，不是装饰**（少一家分母就变） */
.hr-src { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hr-srci {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--panel); font-size: 12.5px; color: var(--text-3);
}
.hr-srci.on { color: var(--text-2); }
.hr-srci b { color: var(--text); font-variant-numeric: tabular-nums; }
/* 在线点的颜色刻意用品牌蓝：绿/红在这里已经被「涨跌」占用了 */
.hr-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #ccd2d8; flex: 0 0 auto;
}
.hr-srci.on .hr-dot { background: var(--brand); }

.hr-pool { margin-bottom: 0; }
/* 预选卡：左侧一道金线标出「这张卡带操作含义」，与五张纯统计的榜区分开。
   用 inset 阴影而不是 border-left —— 改边框会把圆角挤歪，阴影不占盒模型 */
.hr-pre { box-shadow: inset 3px 0 0 var(--gold); }
/* 主力净额用品牌蓝，不用涨红跌绿：它是资金口径，不是涨跌方向 */
.hr-zl { color: var(--brand); font-weight: 600; }
/* 封单额 = 挂在涨停价上的买单，是这个池子里最直接的「抢筹强度」 */
.hr-seal { color: var(--up); font-weight: 600; }
.hr-pool-h {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft); background: #fafbfc;
}
.hr-pool-h b { font-size: 13.5px; }
.hr-pool-k {
  font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 4px;
  background: var(--purple-bg); color: var(--purple); font-variant-numeric: tabular-nums;
}
.hr-pool-n {
  font-size: 12px; padding: 1px 7px; border-radius: 5px;
  background: var(--brand-bg); color: var(--brand); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hr-pool-sub { font-style: normal; font-size: 12px; color: var(--text-3); margin-left: auto; }

/* ---------------- 表体 10 条 + 滚动 ----------------
   五张榜的成员数从 0 到 60 不等。不设上限时「竞价人气榜 13 只」比旁边那张 0 只的卡
   高出 200px，两列砖墙就歪了 —— 用户在截图里圈出来的那片白就是它。
   钉死「最多 10 行 + 表体自己滚」之后，六张卡高度一致，两列自然齐平。
   `max-height` 是**算过**的：表头 1 行 + 10 行正文，页内行高实测 30px（5px 内边距 + 20px 行盒）。 */
.hr-pool-scroll {
  max-height: 336px; overflow-y: auto; overflow-x: hidden;
  background: var(--panel);
}
/* 钉死列宽（`table-layout:fixed`）：宽度由 `<th style="width:...">` 说了算，
   唯一没写宽度的「涨停原因」吃剩余空间。不这么做时浏览器按内容撑列，
   窄卡里最右边那列会被**挤出卡片外裁掉**（竞价换手榜的人气列就丢过半个数字）。 */
.hr-pool table { table-layout: fixed; width: 100%; }
.hr-pool td { overflow: hidden; }
/* 横滚永远开着（内容装得下时不出现滚动条）。这是兜底：窄屏/中等宽度下宁可让用户
   左右划一下，也不能让「涨停原因」被压成 0px —— 那等于这一列静默消失。 */
.hr-pool-scroll { overflow-x: auto; }
/* 通栏卡（一剑封喉 / 竞价资金榜）列最多，给一个下限宽度：
   954px 是这 16 列固定宽之和，再留 150px 给「涨停原因」。 */
.hr-pool-big .hr-pool-scroll table, .hr-pool-wide .hr-pool-scroll table { min-width: 1104px; }
/* 四合一人气榜同一个道理：1052 + 150 */
.hr-rank table { table-layout: fixed; width: 100%; min-width: 1202px; }
.hr-rank { overflow-x: auto; }
/* 人气榜一屏 20 行 + 卡内滚动（用户要的「整齐紧凑」：38 行整页铺下去要滑两屏，
   表头还会滚出视野）。`max-height` = 表头 35px + 20 行 × 32px = 675px ——
   **行高是量出来的 32px**（`padding:7px 6px` + 13px 字 + 边框），不是估的 30；
   按 30 算只能露出 18 行。`th` 的 `position:sticky` 由 app.css 全局那条规则给，
   滚动容器换成这里依然生效。 */
.hr-rank { max-height: 675px; overflow-y: auto; }
.hr-rank::-webkit-scrollbar { width: 7px; }
.hr-rank td { overflow: hidden; }
/* 「宇树科技-W」这种带后缀的名字 + 6 位代码要 150px 才不折行；
   折行会把整行撑到两倍高，43 行里出两三个就白出一屏 */
.hr-rank td.nm { white-space: nowrap; }
/* 内容超了才画这条细线 + 细滚动条：不超时（预选常是 9 只）什么都不多出来 */
.hr-pool-scroll.more { border-bottom: 1px solid var(--line-soft); }
.hr-pool-scroll.more::-webkit-scrollbar { width: 7px; }
.hr-pool-scroll.more::-webkit-scrollbar-thumb { background: #cfd6df; border-radius: 4px; }
.hr-pool-scroll.more::-webkit-scrollbar-thumb:hover { background: #b9c2ce; }
.hr-pool-scroll.more::-webkit-scrollbar-track { background: transparent; }

/* ── 竞价强度榜（热门榜单的第四个子页）：一天一份档案，看的是「名单」不是「一条流水」。
      与四合一人气榜的区别就一点：档案最多 120 行、而且**每次只看一天**，
      卡内再套一个 675px 的滚动区会变成「页面滚 + 卡里滚」两层，所以这里把
      `.hr-rank` 那套高度覆盖掉，让整页自己滚。 */
.hr-auc { max-height: none; overflow-y: visible; }
.hr-auc table { table-layout: fixed; width: 100%; min-width: 940px; }
.hr-auc th, .hr-auc td { padding: 7px 8px; }
/* 强度分三档：≥60 强（红）/ 40~60 中（金）/ <40 弱（灰）。
   与池子表那一列同一套色，避免「同一个词两处两个颜色」。 */
.au-sc { font-variant-numeric: tabular-nums; font-weight: 600; }
.au-sc.s3 { color: var(--up); }
.au-sc.s2 { color: var(--gold); }
.au-sc.s1 { color: var(--text-2); }
/* `≈` = 那一格是序列末价（不含 09:25 终撮）。做成小号金色角标，
   不换列、不换行 —— 它只是给这格加一个「不精确」的记号。 */
.au-src { font-style: normal; margin-left: 3px; font-size: 11px; color: var(--gold); }
/* 日期下拉：跟标签行的按钮同一个高度，摆在指标条右侧（`headRow` 的 chips 位）。 */
.hr-sel {
  height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums;
}
.hr-sel:hover { border-color: #c3ccd8; }
/* 「今天没档、显示的是最近一份」这条提示：整行小字，压在表头上方 */
.hr-auc-note { display: block; margin: -4px 0 10px; }

/* 涨停原因（通达信涨停分析表的 `yy`）：这一列是**唯一**说明「为什么涨」的地方。
   单行省略 + `title` 全文 —— 它动辄「白色家电+B股估值提升+国企改革」18 个字，
   一换行整张表就散了。**宽度不写死**：表格是 `table-layout:fixed`，这一列吃剩余空间，
   所以窄卡通栏宽都不会出现「右边空一截」。 */
.hr-why {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-2); font-size: 12px;
}
/* 昨板：1 = 首板（中性灰），≥2 = 连板（红底强调）。
   昨日没涨停的票这个格子留白 —— 填 0 会被读成「连板 0 天」，而它的意思是「没涨停」 */
.hr-bd {
  font-style: normal; font-size: 11px; padding: 1px 4px; border-radius: 4px;
  background: var(--line-soft); color: var(--text-2); white-space: nowrap;
}
.hr-bd.hi { background: var(--up-bg); color: var(--up); font-weight: 600; }
/* 一剑封喉置顶那张「大卡」：通栏、列更多、**不滚动** —— 它是这一页的结果，
   通常只有 0~3 只，一次看全比滚动更合适。 */
.hr-pool-big { grid-column: 1 / -1; }

/* ---------------- 等宽两列卡片网格 ----------------
   池子卡统一「10 行 + 滚动」后高度已经一致，不需要再按估算高度贪心分列 ——
   那套砖墙把 5 张卡分成 3/2，右列底下空出 380px。
   这里交给 grid：同一行两张自动等高对齐；多一列「成交额」的竞价资金榜
   （`.hr-pool-wide`）自己占一整行，于是六张卡刚好排成
   「一剑封喉（通栏）／预选｜人气榜／动能榜｜换手榜／资金榜（通栏）」。
   `align-items:start` 让矮卡保持自然高度：宁可行末留一道窄缝，
   也不把空白摊进卡片内部（那才是截图里那种「一大片白」的来源）。 */
.hr-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.hr-pool-wide { grid-column: 1 / -1; }
/* 空池（比如四榜今天没有交集）不跟着拉满整行高：
   一张只有「今日无成员」5 个字的卡被拉到 400px 高，比空着还难看 */
.hr-pool-empty { align-self: stretch; }
.hr-empty { padding: 22px; text-align: center; font-size: 12.5px; }

/* ---------------- 窄屏 ---------------- */
/* 两列在 1180px 以下就撑不住了：每张池子卡只剩 ~520px，而它最少要 720px 才不夹字。
   与其让每张卡自己横向滚，不如早点改单列 —— 单列时卡宽 = 视口，688px 屏也够。 */
@media (max-width: 1180px) {
  .hr-cards { grid-template-columns: minmax(0, 1fr); }
}
/* 手机屏（<820px）真的放不下了：卡内横向滚动由上面的 `.hr-pool-scroll / .hr-rank`
   一直开着的 overflow-x 兜住，这里只需要把它们做得更「抓得住」一点。 */
@media (max-width: 820px) {
  .hr-pool-scroll.more::-webkit-scrollbar, .hr-rank::-webkit-scrollbar { height: 7px; }
  .hr-pool-scroll.more::-webkit-scrollbar-thumb, .hr-rank::-webkit-scrollbar-thumb {
    background: #cfd6df; border-radius: 4px;
  }
}
@media (max-width: 760px) {
  /* 大号仓位与刻度上下叠：横排时刻度只剩不到 120px，六段全挤成一坨 */
  .hr-gauge { flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; }
  .hr-gauge-l { text-align: left; min-width: 0; }
  .hr-pos { font-size: 42px; }
  .hr-pool-sub { margin-left: 0; flex-basis: 100%; }
  /* 窄屏一律单列：两列时每张池子卡只剩 330px，名称列会被压成竖排 */
  .hr-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ================= 热门榜单：整页密度 =================
   这一页的骨架全是表格与网格，全站默认的 9px/11px 内边距在这里会把它拉成
   「一屏只看得下两张表」。所以只对 /hotrank 收紧 —— 加 `.page-hotrank` 前缀
   而不是改全局：涨停池那张表里还塞着徽章和标签，压到 5px 会挤在一起。

   页面级的 class 挂在 `<html>` 上（hotrank.html 的 `<html class="page-hotrank">`），
   与 `html.page-draw`（整屏工具页）同一套手法 —— mountFooter 判整屏布局时用的
   就是 documentElement，跟着它走口径一致。
*/
.page-hotrank .wrap { padding: 12px 18px 36px; }
.page-hotrank .toolbar { padding: 7px 12px; margin-bottom: 8px; }
.page-hotrank .tabs { margin-bottom: 9px; }
/* 表格行高 9/11 → 5/8：三页加起来省下的高度差不多是一整屏 */
.page-hotrank table th, .page-hotrank table td { padding: 5px 8px; }
.page-hotrank .hr-pool th, .page-hotrank .hr-pool td { padding: 5px 7px; }
.page-hotrank .hr-head { padding: 6px 12px; margin-bottom: 9px; gap: 6px 14px; }
.page-hotrank .hr-grid { gap: 10px; }
.page-hotrank .hr-grid + .hr-grid { margin-top: 10px; }
.page-hotrank .hr-card { padding: 10px 12px; }
.page-hotrank .hr-pool-h { padding: 8px 12px; }
.page-hotrank .hr-cell { padding: 6px 10px; gap: 2px; }
/* 指标/闸门格子：52px 是按「一行数字 + 一行标签」估的，实测 46px 刚好不夹字 */
.page-hotrank .hr-ind, .page-hotrank .hr-gate-b { grid-auto-rows: minmax(46px, auto); }
.page-hotrank .hr-gate-b { grid-auto-rows: minmax(46px, 1fr); }
/* 大号仓位**不再在这里缩小**：它曾经是 44px（密度段压过一次），但那是「仓位」
   这个页面唯一的主角，比表格里的字号重要得多 —— 由基础规则给 72px，
   只有 ≤760px 的媒体查询才降回 42px（见上面那条）。 */
.page-hotrank .hr-empty { padding: 12px; }
.page-hotrank .hr-warn, .page-hotrank .hr-bearbar { padding: 8px 12px; margin-bottom: 8px; }
.page-hotrank .hr-sep { margin: 9px 0; }
.page-hotrank .hr-note, .page-hotrank .note { margin-top: 10px; padding: 9px 12px; }
.page-hotrank .hr-reason { margin-top: 8px; }
/* ⚠ 上面那条与 `.hr-gauge-r .hr-reason` 同特异性（都是两个类），靠「后写者胜」
   把 `margin-top:auto` 干掉了 —— 于是仓位卡的理由又贴回刻度下面，卡底留一片白。
   这里补一条更高的特异性把它改回到底部。改样式时别删。 */
.page-hotrank .hr-gauge-r .hr-reason { margin-top: auto; }
.page-hotrank .hr-gap { margin-top: 8px; padding: 6px 10px; }

/* ---------------- 仓位雷达：解禁旁证一行（P0） ----------------
   位置在仓位卡内部、刻度条下面。**它不是信号**：全市场解禁只占两市日均成交额 2.7%（5 日），
   量级不足以当大盘信号（见 docs/解禁-仓位方案.md），这里只把「解禁」翻译成「几成成交额」。
   视觉刻意比五项信号弱一档：小字、浅底、无边框强调，扫一眼不抢仓位数字。 */
.hr-ul-hint {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-top: 10px; padding: 7px 10px;
  background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px;
  font-size: 12px; line-height: 1.5; color: var(--text-2);
}
.hr-ul-hint .hr-ul-t {
  font-style: normal; font-weight: 600; color: #0f766e;
  background: #e6fffa; border-radius: 4px; padding: 0 6px;
}
.hr-ul-hint .hr-ul-c i { font-style: normal; color: #868e96; margin-right: 4px; }
.hr-ul-hint .hr-ul-c b { font-variant-numeric: tabular-nums; color: var(--text, #212529); }
.hr-ul-hint .hr-ul-c em { font-style: normal; color: #868e96; margin-left: 4px; }
.hr-ul-hint .hr-ul-top { color: var(--text-2); }
.hr-ul-hint .hr-ul-vd {
  margin-left: auto; font-style: normal; color: #868e96;
}

/* ================= 热门榜单：实时指数 / 信号卡 / 排序 / 卡内滚动 =================
   这一批全部是第五轮的「补信息 + 去留白」：
     · `.hr-idx`    页头那条实时指数（原来只有原版站点有，搬过来时漏了）
     · `.hr-sigs`   五项信号由表格改成五格并排（表格会让「判定依据」撑出一整行白）
     · `.hr-sortable` 人气榜表头点一下排序，第三下回到后端原始顺序
     · `.hr-pool-alert` 退档提示紧跟标题的红字
   页面级 class 仍是 `html.page-hotrank`（见下方「整页密度」那段）。
*/

/* ---------------- 实时指数：五个大盘一行 ---------------- */
.hr-idx {
  display: grid; gap: 8px; margin-bottom: 10px;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}
.hr-idxi {
  display: flex; align-items: baseline; gap: 7px;
  padding: 7px 11px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 0;
}
.hr-idxi i { font-style: normal; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.hr-idxi b { font-size: 15px; font-variant-numeric: tabular-nums; }
.hr-idxi em { font-style: normal; font-size: 11.5px; margin-left: auto;
  font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------- 五项信号：五格并排，不留空白 ----------------
   每一格都要填满三行：名字与得分 / 状态与判据 / 判据用的那两个数。
   用网格而不是表格，是因为表格的列宽由内容决定，最短的那列（判定依据）
   会被剩下的宽度摊开 —— 那正是用户圈出来的那片白。 */
.hr-sigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.hr-sigc {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px 11px; min-width: 0;
  border-right: 1px solid var(--line-soft);
}
.hr-sigc:last-child { border-right: 0; }
.hr-sigc-t { display: flex; align-items: center; gap: 6px; }
.hr-sigc-t b { font-size: 13px; white-space: nowrap; }
.hr-sigc-pos { margin-left: auto; font-style: normal; font-size: 12px;
  font-weight: 600; color: var(--up); font-variant-numeric: tabular-nums; }
.hr-sigc-pos.zero { color: var(--text-3); font-weight: 500; }
.hr-sigc-m { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hr-sigc-m i { font-style: normal; font-size: 11.5px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-sigc-v { display: flex; flex-wrap: wrap; gap: 2px 12px;
  font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hr-sigc-v span { white-space: nowrap; }
.hr-sigc-v span i { font-style: normal; color: var(--text-3); margin-right: 3px; }
.hr-sigc-v .hr-sigc-warn { color: var(--up); }

/* ---------------- 表头排序 ----------------
   `⇅` 常显、`▲/▼` 只在生效的那列亮起来：不然一屏十五个表头都挂着箭头，
   没人分得清哪个是真的在排。 */
.hr-sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.hr-sortable:hover { background: #eef2f8; color: var(--brand); }
.hr-sortable .hr-sortm { font-style: normal; font-size: 9.5px; margin-left: 2px; color: #c3cbd7; }
.hr-sortable.on { color: var(--brand); }
.hr-sortable.on .hr-sortm { color: var(--brand); }

/* ---------------- 退档提示 / 滚动提示 ---------------- */
.hr-pool-alert {
  font-style: normal; font-size: 11.5px; font-weight: 600;
  color: var(--up); background: var(--up-bg);
  border-radius: 4px; padding: 1px 7px; white-space: nowrap;
}
.hr-scroll-cue { font-style: normal; font-size: 10px; color: var(--text-3); margin-left: 3px; }

/* ---------------- 股票深链（到选股画线页看 K 线） ---------------- */
.hr-lnk { color: inherit; text-decoration: none; border-bottom: 1px dashed transparent; }
.hr-lnk:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------------- 仓位刻度标签：四档按真实位置摆 ----------------
   网格 20/30/30/20 让「20% 轻仓」正好落在第二段起点、`50% 半仓` 落在中线；
   `space-between` 会把四个标签平均摊开，20% 那个就跑到 33% 上去了 —— 名字开始撒谎。 */
.hr-scale-k { display: grid; grid-template-columns: 20fr 30fr 30fr 20fr; justify-content: initial; }
.hr-scale-k span { text-align: left; }
.hr-scale-k span:nth-child(3) { text-align: center; }
.hr-scale-k span:nth-child(4) { text-align: right; }

/* ---------------- 窄屏 ---------------- */
@media (max-width: 760px) {
  .hr-sigs { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .hr-sigc { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .hr-sigc:last-child { border-bottom: 0; }
  .hr-idx { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .hr-idxi em { margin-left: 0; }
}

/* ---------------- 窄屏收尾（767px 量出来三处会溢/留空） ----------------
   都在 900px 以下才发生，宽屏不受影响：
     1. 实时指数条：五个大盘塞一行时最后一格会被页面右边缘切掉 → 让 chip 内部换行；
     2. 指标面板：10 格按 6 列排成 6+4，右下角留两个空格子 —— 直接钉成 5 列，
        10 格正好 5+5，一格不剩；
     3. 五项信号：`minmax(160px)` 在 668px 宽下正好排 4 个，第 5 格独占一行、
        右侧空半行（3 列时是 3+2，右边同样空一格）。5 这个数字除不尽任何列数，
        所以窄屏干脆改单列 —— 五行紧挨着，一格不空，读起来也顺。 */
@media (max-width: 900px) {
  /* 五个大盘钉成 5 列一行：`auto-fit` 在 730px 下只落得下 4 列，
     第 5 个（北证50）自己占第二行、右边空出三格 —— 一排筹码里出现一个空洞。
     列宽只有 ~140px 时 chip 内部会折成两行，那比留洞好。 */
  .hr-idx { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hr-idxi { flex-wrap: wrap; row-gap: 1px; padding: 6px 8px; }
  .hr-idxi em { margin-left: 0; }
  .hr-sigs { grid-template-columns: minmax(0, 1fr); }
  .hr-ind { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  /* 再窄就别硬塞 5 列了：每格连「3650.77」都放不下 */
  .hr-ind { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hr-idx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------ 热门榜单：标签行 / 同行高亮 / 名称链接
   这一节是为「删掉整条工具栏」配套的：刷新按钮搬进标签行右侧，
   搜索框去掉（同票高亮接替了「输代码找这只票」），所以标签行自己得撑起一条底线。 */
.hr-tabsrow {
  display: flex; align-items: flex-end; gap: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 9px;
}
.hr-tabsrow > .tabs { flex: 1 1 auto; margin: 0; border-bottom: 0; }
.hr-tabsrow > .btn { flex: 0 0 auto; margin-bottom: 6px; height: 30px; padding: 0 14px; }

/* 同票高亮：点一行，这一页上所有同名同码的行一起变色。
   底色用金（`--gold-bg`）而不是品牌蓝 —— 蓝色在这一页已经是「可点/链接」的语义，
   高亮要说的是「就是它」，两件事得用两种颜色分开。 */
.hr-hit > td { background: var(--gold-bg); }
.hr-hit > td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.hr-hit .hr-lnk { color: var(--text); font-weight: 600; }

/* 名称后面的小 `K`：本站「选股画线」的口子，做小做灰，不抢名字的位置 */
.hr-k {
  display: inline-block; margin-left: 5px; padding: 0 4px;
  border: 1px solid var(--line); border-radius: 4px;
  font-size: 10.5px; line-height: 15px; color: var(--text-3);
  text-decoration: none; vertical-align: 1px;
}
.hr-k:hover { color: var(--brand); border-color: var(--brand); }

/* 一剑封喉 / 预选两张通栏卡要留白（它们不在网格里，gap 管不到）：
   一剑封喉在**最上面**，下面接四张榜的网格；预选在**最下面**，接的是网格的收尾。 */
.page-hotrank .hr-pool-big { margin-bottom: 12px; }
.page-hotrank .hr-pre { margin-top: 12px; margin-bottom: 0; }



/* ============================ 热门榜单：持股档 hero 与 T+1 追踪（2026-11-18 夜）
   两处都是「原站有、我们缺」的能力补齐：
     · hero —— 今天不出票时只留一句结论（原站 yjfh_hold / 雷达 0% 共用这一个坑位）；
     · track —— 自己攒的 T+1 成绩单（原站对应物是 mobile_hist）。 */

/* 空池的默认态是 .hr-empty＋「今日无成员」；持股档把它换成一句结论。
   刻意跟 .hr-empty 一样**左对齐、不居中**：这一页所有卡片的内容都从左边开始，
   只有这里居中会让人以为跑到了另一个页面。 */
.hr-hero {
  display: flex; flex-direction: column; gap: 4px;
  align-self: start; padding: 14px 2px 16px;
}
.hr-hero b {
  font-size: 20px; font-weight: 700; line-height: 1.25;
  color: var(--down);                       /* 不出票 = 空仓，用「跌」的绿，不用红 */
}
.hr-hero i {
  font-style: normal; font-size: 12.5px; color: var(--text-3);
}

/* T+1 追踪：表头固定 + 卡内滚动，跟其它池子卡一致（10 行一屏）。
   「日期」列只在一天的第一行写字，所以行与行之间要有一条分隔线，
   否则上一只票和下一只票挤在一起，读不出是哪天换的名单。 */
.hr-track .hr-pool-scroll { max-height: 336px; }
.hr-track tr.hr-day-start > td { border-top: 1px solid var(--line); }
.hr-track tr:first-child.hr-day-start > td { border-top: 0; }
.hr-track td.hr-track-day {
  font-size: 11.5px; color: var(--text-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hr-track .hr-pool-sub { max-width: 62%; }

/* 仓位卡左列：大字是「信号得分」，下面那行才是「闸门封顶后建议几成」。
   两者相等时写「建议仓位」，不相等时写「闸门封顶 20%」并把数字染色。 */
.hr-pos-k b { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ==================================================================
   风险标记（监管异动 / 避雷）—— 实现见 common.js 的 U.risk
   ------------------------------------------------------------------
   两种徽标、六个档位，颜色**按严重程度**排，不按涨跌排：

     异 监管异动  rk-reg-stopped   已停牌核查     深琥珀底白字（最重）
                  rk-reg-triggered 已触发严重异动 橙底白字
                  rk-reg-near      接近严重异动   浅橙底深橙字
                  rk-reg-watch     频繁异动       灰蓝底（提示级，不吓人）
     雷 避雷      rk-avoid-delist  退市预警       深紫底白字
                  rk-avoid-st      ST 预警        浅紫底紫字

   ★ 刻意**不使用红色与绿色**：A 股的涨是红、跌是绿，徽标贴着名称跟在
     涨幅旁边，一旦用了鲜艳红，扫一眼会先读成「涨得很好」。
     所以「异」这一族走琥珀/橙，「雷」这一族走紫，两族都离红绿远。
     同族内靠「实心深 → 实心浅 → 描边 → 灰」表达严重程度递减。

   为什么「频繁异动」用灰蓝而不是橙：那一档是「10 日内 2 次异动」，
   离停牌还远，用警示色会和「接近严重异动」混成一锅，看多了就麻木了。
   ================================================================== */
.rk-wrap { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; vertical-align: middle; flex: 0 0 auto; }
.rk-b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 15px; height: 15px; padding: 0 2px; border: 0; border-radius: 3px;
  font: 700 10px/1 inherit; font-family: inherit; cursor: pointer;
  transform: translateY(-1px);                     /* 中文名有行高余量，视觉上对齐基线 */
}
.rk-b:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.rk-reg-stopped   { background: #b45309; color: #fff; }
.rk-reg-triggered { background: #e8590c; color: #fff; }
.rk-reg-near      { background: #fff4e6; color: #d9480f; box-shadow: inset 0 0 0 1px #ffd8a8; }
.rk-reg-watch     { background: #eef2f7; color: #5c6b7a; }
.rk-avoid-delist  { background: #6b21a8; color: #fff; }
.rk-avoid-st      { background: #f3e8ff; color: #7048e8; box-shadow: inset 0 0 0 1px #e5dbff; }
/* 限售解禁：**青色**，与红(涨停)绿(跌)琥珀(异动)紫(避雷)都不撞。
   hi 用实心 —— 「一周内 + 占比≥0.5%」是真会砸盘的那一档，要一眼看见；
   lo 用淡底 —— 未来 30 天内的小比例批次，知道就行，不必每次都被抓眼球。 */
.rk-unlock-hi { background: #0f766e; color: #fff; }
.rk-unlock-lo { background: #e6fffa; color: #0f766e; box-shadow: inset 0 0 0 1px #b2f5ea; }

/* ---- 弹层 ---- */
.rk-mask {
  position: fixed; inset: 0; z-index: 9998; padding: 16px;
  background: rgba(18, 22, 28, .42);
  display: flex; align-items: center; justify-content: center;
}
.rk-dlg {
  display: flex; flex-direction: column;
  width: min(560px, 100%); max-height: min(78vh, 720px);
  background: var(--panel); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}
.rk-dlg > header {
  display: flex; align-items: baseline; gap: 8px; flex: 0 0 auto;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.rk-dlg > header b { font-size: 15px; }
.rk-dlg > header span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rk-x {
  margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 7px;
  background: none; color: var(--text-3); font-size: 18px; line-height: 1; cursor: pointer;
}
.rk-x:hover { background: var(--line-soft); color: var(--text); }
.rk-dbody { padding: 12px 14px 14px; overflow-y: auto; }
.rk-sec { margin-bottom: 12px; }
.rk-sec:last-of-type { margin-bottom: 6px; }
.rk-sec h4 {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.rk-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  border-radius: 4px; font-size: 11px; font-weight: 600;
}
.rk-kvs { display: grid; gap: 5px; }
.rk-kv { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; }
.rk-kv > i { flex: 0 0 68px; color: var(--text-3); font-style: normal; }
.rk-kv > b { flex: 1 1 auto; min-width: 0; font-weight: 500; color: var(--text); word-break: break-word; }
.rk-kv b.rk-hot { color: var(--up); font-weight: 700; }
.rk-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.rk-list > li {
  display: flex; gap: 8px; align-items: baseline;
  padding: 6px 9px; border-radius: 8px; background: var(--line-soft); font-size: 12.5px;
}
.rk-list > li > b { flex: 0 0 auto; font-weight: 600; }
.rk-list > li > i { flex: 1 1 auto; min-width: 0; font-style: normal; color: var(--text-2); }
/* 解禁的「多批次」列表：日期 量 占比 原因 —— 一行五个格，用等宽数字对齐才看得出量级 */
.rk-ulist { margin: 7px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.rk-ulist > li {
  display: flex; gap: 8px; align-items: baseline;
  padding: 5px 9px; border-radius: 8px; background: var(--line-soft);
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.rk-ulist > li > b { flex: 0 0 auto; font-weight: 600; }
.rk-ulist > li > i { flex: 0 1 auto; min-width: 0; font-style: normal; color: var(--text-2); }
.rk-ulist > li > i:last-child { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-none { margin: 4px 0 10px; font-size: 12.5px; color: var(--text-3); }
.rk-sec.rk-meta { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.rk-links { display: flex; gap: 8px; margin-top: 12px; }
.rk-links .btn { flex: 1 1 0; text-align: center; text-decoration: none; }

@media (max-width: 560px) {
  .rk-mask { padding: 0; align-items: flex-end; }
  .rk-dlg { width: 100%; max-height: 90vh; border-radius: 14px 14px 0 0; }
  .rk-kv > i { flex: 0 0 60px; }
}


/* ---------- 热门榜单：昨日市场情绪（开盘啦 nums，紧跟指标条一行） ----------
   只放三个有把握的数（涨停/跌停/封板率），小字、不抢指标条的份量：
   它是「昨天值不值得做」的背景，不是这一页的结论。 */
.page-hotrank .hr-mood {
  font-size: 12px; color: var(--text-3); margin: -2px 0 10px; padding-left: 2px;
}
.page-hotrank .hr-mood b {
  color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums;
}
/* ================= 限售解禁页（`/unlock`） =================
   一页一张清单：解禁日 / 距今 / 代码 / 名称 / 数量 / 占比 / 现价 / 市值 / 原因 / 行业 / 档。
   设计上只做三件事，别的不加：
     ① 让「一周内的压力」比「一个月后的小批次」先跳出来（红字 + 行底色 + 实心徽标）；
     ② 数量/占比用等宽数字，一列对齐才看得出量级差；
     ③ 表头吸顶、表体自滚 —— 六十行以上时不把页面撑到两米长。
   `.ul-hi` 的底色**不用红**：红是涨停/涨幅的语义，解禁是「筹码供给」，
   这里用极淡的青（与 `.rk-unlock-hi` 同族），避免看盘时把它误读成「今天涨得凶」。 */
.page-unlock .ul-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 12px;
}
.page-unlock .ul-seg { display: inline-flex; }
.page-unlock .ul-seg button {
  border: 1px solid #d5d9e0; background: #fff; color: var(--text-2);
  padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.page-unlock .ul-seg button + button { border-left: 0; }
.page-unlock .ul-seg button:first-child { border-radius: 8px 0 0 8px; }
.page-unlock .ul-seg button:last-child { border-radius: 0 8px 8px 0; }
.page-unlock .ul-seg button:hover { color: var(--brand); border-color: var(--brand); }
.page-unlock .ul-seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-unlock .ul-search { width: 148px; }
.page-unlock .ul-refresh { margin-left: auto; }

.page-unlock .ul-scroll {
  max-height: calc(100vh - 268px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.page-unlock table.ul-tbl { table-layout: fixed; min-width: 1080px; }
.page-unlock table.ul-tbl th, .page-unlock table.ul-tbl td { padding: 7px 9px; }
.page-unlock table.ul-tbl th.c, .page-unlock table.ul-tbl td.c { width: 88px; text-align: center; }
/* 解禁日单独一列：10 个字符在 88px 里会被折成「2026-11-」/「23」两行（截图里就是这样） */
.page-unlock table.ul-tbl th.uldt, .page-unlock table.ul-tbl td.uldt {
  width: 104px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
/* 压力天数（P0）：这是唯一有量纲的解禁指标 —— 该批筹码要几天才被自己的成交量吃完。
   三档用琥珀/橙/灰，**不用正红**（红是本系统的涨停色）。 */
.page-unlock .ul-d {
  font-style: normal; font-variant-numeric: tabular-nums;
  color: var(--text-2, #495057);
}
.page-unlock .ul-d.mid { color: #b45309; font-weight: 600; }
.page-unlock .ul-d.hi { color: #e8590c; font-weight: 700; }
/* 建议上限：一个数字，别做成大色块 —— 它是建议，不是结论 */
.page-unlock .ul-cap {
  font-variant-numeric: tabular-nums; color: #0f766e;
  background: #e6fffa; box-shadow: inset 0 0 0 1px #b2f5ea;
  border-radius: 4px; padding: 0 4px; font-weight: 600;
}
.page-unlock table.ul-tbl th.num, .page-unlock table.ul-tbl td.num {
  width: 92px; text-align: right; font-variant-numeric: tabular-nums;
}
/* 代码列：类名不能叫 `.cd` —— `riskPaint` 第二遍扫描认 `tr td.cd` 当「这一行有代码」，
   会拿整行当宿主，徽标就掉进「距今」格里（实测踩过）。改成私有的 `.ulcd`。 */
.page-unlock table.ul-tbl td.ulcd {
  width: 74px; color: var(--text-2); font-variant-numeric: tabular-nums;
}
.page-unlock table.ul-tbl th.uln, .page-unlock table.ul-tbl td.uln { width: 168px; }
.page-unlock table.ul-tbl td.rs {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2);
}
.page-unlock table.ul-tbl tbody tr { cursor: pointer; }
.page-unlock table.ul-tbl tbody tr:hover { background: var(--brand-bg); }
.page-unlock table.ul-tbl tbody tr.ul-hi { background: #f2fbf9; }
.page-unlock table.ul-tbl tbody tr.ul-hi:hover { background: #e6f7f4; }
.page-unlock .ul-dev { color: inherit; text-decoration: none; }
.page-unlock .ul-dev:hover { color: var(--brand); text-decoration: underline; }
.page-unlock .ul-now { color: var(--up); font-weight: 700; }
.page-unlock .ul-soon { color: #b45309; font-weight: 600; }
.page-unlock .ul-far { color: var(--text-3); }
.page-unlock .ul-new {
  display: inline-block; margin-left: 4px; padding: 0 4px; border-radius: 4px;
  background: var(--up-bg); color: var(--up); font-size: 10px; font-style: normal;
  font-weight: 600; vertical-align: 1px;
}
.page-unlock .ul-none { padding: 26px 16px; color: var(--text-3); font-size: 13px; }
.page-unlock .ul-foot {
  margin: 10px 2px 0; font-size: 11.5px; line-height: 1.8; color: var(--text-3);
}
.page-unlock .ul-foot code {
  padding: 0 4px; border-radius: 4px; background: var(--line-soft); font-size: 11px;
}

@media (max-width: 860px) {
  .page-unlock .ul-scroll { max-height: none; }
  .page-unlock .ul-refresh { margin-left: 0; }
}
/* 副标题：一句话讲清「这一页按什么窗口、点什么」——h1 下面一行小字，不抢标题 */
.page-unlock .ul-sub {
  margin: -2px 0 12px; padding-left: 2px; font-size: 12.5px; color: var(--text-3);
}
.page-unlock .ul-sub b { color: var(--text-2); font-weight: 600; }
/* 「档」列的色块（**不可点**，只是扫表时的分区色；可点的「解」徽标在名称后面） */
.page-unlock .ul-lv {
  display: inline-block; padding: 0 5px; border-radius: 4px;
  font-size: 10.5px; font-style: normal; font-weight: 600; line-height: 16px;
}
.page-unlock .ul-lv.hi { background: #0f766e; color: #fff; }
.page-unlock .ul-lv.lo { background: #e6fffa; color: #0f766e; box-shadow: inset 0 0 0 1px #b2f5ea; }
