/* 题材梯队（测试页） */
.tiers-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tiers-head-actions { display: flex; gap: 8px; }
.tiers-head-actions .tiers-btn[disabled] { opacity: .55; cursor: default; }
.tiers-head h2 { margin: 0; font-size: 20px; }
.tiers-btn { display: inline-block; min-height: 34px; padding: 6px 14px; border: 1px solid var(--teal);
  border-radius: 6px; background: var(--teal-bg); color: var(--teal); font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; text-decoration: none; }
.tiers-btn:hover { background: #dff2f1; }
.tiers-btn-ghost { background: #fff; border-color: var(--line); color: var(--muted); }
.tiers-btn-danger { color: var(--up); border-color: #e5b9bd; }
.tiers-scope { display: flex; gap: 8px; margin-bottom: 14px; }
/* 题材切换(v1.83.0):一次只展示一个题材,chips 换卡 */
.tiers-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tiers-pick { padding: 6px 14px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.tiers-pick.on { background: var(--teal-bg); border-color: var(--teal); color: var(--teal); font-weight: 600; }
/* 主线标记(v1.85.0):红色为"市场热度"语义,非涨跌方向 */
.tiers-pick.is-mainline { border-color: var(--up); }
.tiers-pick.is-mainline.on { background: #fdf0ef; color: var(--up); }
.tiers-pick.drag-over { border-style: dashed; border-color: var(--teal); }
.tiers-pick[draggable="true"] { cursor: grab; }
.tiers-mainline-badge { font-style: normal; font-size: 11px; padding: 1px 6px; margin-right: 5px;
.tiers-new-badge { font-style: normal; font-size: 11px; padding: 1px 5px; margin-right: 5px; border-radius: 4px; background: #e6f4ee; color: #1f7a4d; }
.tiers-new-badge.is-refresh { background: #eef3f8; color: #3b6a8f; }
.tiers-scout-status { margin: 6px 0 4px; font-size: 12px; line-height: 1.6; color: #6b8393; }
  border-radius: 8px; background: var(--up); color: #fff; vertical-align: 1px; }
.tiers-mainline-tag { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 10px;
  background: var(--up); color: #fff; }
.tiers-btn.is-mainline-on { border-color: var(--up); color: var(--up); background: #fdf0ef; }
.tiers-scope button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.tiers-scope button[aria-selected="true"] { background: var(--teal-bg); border-color: var(--teal); color: var(--teal); font-weight: 600; }
.tiers-list { display: grid; min-width: 0; gap: 16px; }
.tiers-card { min-width: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tiers-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 10px; }
.tiers-card h3 { margin: 0; font-size: 16px; }
.tiers-card footer { margin-top: 10px; color: var(--faint); font-size: 11px; }
.tiers-card-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.tiers-readonly-tag { color: var(--faint); font-size: 11.5px; }
.tiers-slot { margin-bottom: 12px; }
.tiers-slot h4 { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.tiers-slot h4 small { font-weight: 400; color: var(--faint); }
.tiers-slot-body { display: grid; gap: 10px; }
.tiers-stock { border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--surface); }
.tiers-stock-head { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px 4px; font-size: 13px; }
.tiers-stock-head b { font-size: 13.5px; }
.tiers-stock-head span { color: var(--faint); font-size: 11.5px; }
.tiers-stock-head em { margin-left: auto; font-style: normal; font-weight: 700; }
.tiers-stock-head em.is-up { color: var(--up); }
.tiers-stock-head em.is-down { color: var(--down); }
.tiers-chart { width: 100%; min-height: 220px; }
.tiers-chart-loading { display: flex; align-items: center; justify-content: center; height: 220px;
  color: var(--faint); font-size: 12px; }
.tiers-empty { padding: 24px; text-align: center; color: var(--muted); background: #fff;
  border: 1px dashed var(--line); border-radius: 12px; }
.tiers-gate { padding: 40px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tiers-gate strong { font-size: 16px; }
.tiers-gate p { color: var(--muted); }
.tiers-toast { position: fixed; right: 18px; bottom: 18px; z-index: 90; padding: 10px 16px;
  background: #103c33; color: #eafff5; border-radius: 8px; font-size: 13px; }
.tiers-toast.is-error { background: #7a1f1f; color: #ffecec; }
.tiers-editor { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start;
  justify-content: center; overflow: auto; padding: 40px 16px; }
.tiers-editor-mask { position: fixed; inset: 0; background: rgba(12, 28, 46, .45); }
.tiers-editor > section { position: relative; width: min(680px, 100%); padding: 18px 20px;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(10, 30, 50, .25); }
.tiers-editor h3 { margin: 0; font-size: 16px; }
.tiers-editor header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tiers-field { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; }
.tiers-field input { flex: 1; min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.tiers-slot-editor { padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--line-2); border-radius: 8px; }
.tiers-slot-editor-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tiers-slot-editor-head input { flex: 1; min-height: 30px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.tiers-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tiers-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px;
  background: var(--teal-bg); border-radius: 6px; font-size: 12px; color: var(--teal); }
.tiers-chip i { font-style: normal; color: var(--faint); }
.tiers-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.tiers-note { color: var(--faint); font-size: 11.5px; }
/* 平铺编辑器(v1.83.0):标的行 = 拖拽手柄 + 名称 + 代码 + 标签 + 移除 */
.tiers-stocks { margin-bottom: 10px; }
.tiers-stock-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  margin-bottom: 6px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; }
.tiers-stock-row.drag-over { border-color: var(--teal); background: var(--teal-bg); }
.tiers-drag-handle { cursor: grab; color: var(--faint); font-size: 15px; padding: 2px 4px;
  user-select: none; border-radius: 4px; }
.tiers-drag-handle:focus { outline: 2px solid var(--teal); color: var(--teal); }
.tiers-row-name { flex: 1; min-width: 90px; min-height: 30px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.tiers-row-code { font-style: normal; color: var(--faint); font-size: 12.5px; }
.tiers-row-tag { width: 130px; min-height: 30px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.tiers-add-box { margin-bottom: 10px; }
.tiers-name-line { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tiers-tag { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px;
  max-width: 190px; padding: 3px 8px; border: 1px solid #c9dcdf; border-radius: 7px;
  background: var(--teal-bg); color: var(--teal); font: inherit; font-size: 12px; cursor: pointer; }
.tiers-tag:hover, .tiers-tag[aria-expanded="true"] { border-color: var(--teal); background: #dff2f1; }
.tiers-tag:focus-visible, .tiers-tag-menu button:focus-visible, .tiers-tag-menu input:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px; }
.tiers-tag-chevron { font-size: 13px; }
.tiers-tag.is-readonly { cursor: default; }
.tiers-tag.is-leader { background: #8f2637; color: #fff8e6; border: 1px solid #c69b42;
  font-weight: 800; box-shadow: 0 0 0 2px #f4e6c5; letter-spacing: .5px; }
.tiers-tag.is-leader:hover, .tiers-tag.is-leader[aria-expanded="true"] { background: #732031; border-color: #d8b465; }
.tiers-leader-crown { width: 16px; height: 16px; flex: 0 0 16px; color: #f4d17b; }
.tiers-tag-menu { position: fixed; z-index: 90; box-sizing: border-box; padding: 6px;
  overflow-y: auto; overscroll-behavior: contain; border: 1px solid #c9dcdf; border-radius: 10px;
  background: #fff; color: var(--ink); box-shadow: 0 12px 32px rgba(20, 42, 58, .18); }
.tiers-tag-menu-title { padding: 7px 9px; color: var(--muted); font-size: 12px; }
.tiers-tag-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 40px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent;
  color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.tiers-tag-menu button:hover, .tiers-tag-menu button[aria-checked="true"] { background: var(--teal-bg); color: var(--teal); }
.tiers-tag-menu .tiers-tag-leader-choice { color: #8f2637; font-weight: 800; }
.tiers-tag-menu .tiers-tag-leader-choice:hover, .tiers-tag-menu .tiers-tag-leader-choice[aria-checked="true"] {
  background: #faf0df; color: #8f2637; }
.tiers-tag-menu-bottom { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
.tiers-tag-menu .tiers-tag-remove { color: #a32d2d; }
.tiers-tag-menu .tiers-tag-remove:hover { color: #a32d2d; background: #fdf0ef; }
.tiers-tag-custom-form { display: grid; gap: 7px; margin: 6px 3px; padding: 8px; border-radius: 6px; background: var(--surface); }
.tiers-tag-custom-form[hidden] { display: none; }
.tiers-tag-custom-form label { font-size: 12px; }
.tiers-tag-custom-form small { color: var(--muted); font-size: 11px; }
.tiers-tag-custom-form input { width: 100%; min-width: 0; min-height: 36px; box-sizing: border-box;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; font: inherit; }
.tiers-tag-custom-actions { display: flex; gap: 6px; }
.tiers-tag-custom-actions button { justify-content: center; background: var(--teal-bg); color: var(--teal); }
.tiers-tag-menu [data-tiers-tag-status] { margin: 5px 8px; font-size: 12px; color: #a32d2d; }
.tiers-tag-menu [data-tiers-tag-status]:empty { display: none; }
.tiers-tag-menu button:disabled, .tiers-tag-menu input:disabled { opacity: .55; cursor: wait; }
@media (max-width: 640px), (pointer: coarse) {
  .tiers-tag:not(.is-readonly), .tiers-tag-menu button { min-height: 44px; }
}
/* 操作记录弹层 */
.tiers-log-body { max-height: 60vh; overflow-y: auto; }
.tiers-log-list { margin: 0; padding: 0; list-style: none; }
.tiers-log-list li { display: flex; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line-2);
  font-size: 13px; }
.tiers-log-list time { flex: 0 0 118px; color: var(--faint); }
.tiers-editor-status { min-height: 18px; color: var(--up); font-size: 12px; }
.tiers-editor-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tiers-modal-open { overflow: hidden; }
.tiers-field-stack { display: grid; align-items: stretch; gap: 6px; }
.tiers-field-stack > span { color: var(--muted); font-weight: 650; }
.tiers-monitor { min-width: 0; margin-bottom: 14px; padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 8px; }
.tiers-monitor h4 { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.tiers-monitor h4 small { font-weight: 400; color: var(--faint); }
.tiers-monitor-chart { width: 100%; height: 320px; }

/* 题材梯队偏离值监控图（折线版 + 数据表） */
.tiers-sub { margin: 0 0 12px; font-size: 13px; color: #5F5E5A; line-height: 1.6; }
.tiers-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px;
  font-size: 12px; color: #5F5E5A; }
.tiers-legend span { display: flex; align-items: center; gap: 4px; }
.tiers-legend .lg-line { display: inline-block; width: 18px; height: 0; }
.tiers-legend .lg-10 { border-top: 3px solid #e24b4a; }
.tiers-legend .lg-30 { border-top: 3px dashed #c98a2d; }
.tiers-legend .lg-warn { border-top: 2px dashed #e24b4a; }
.tiers-monitor-chart { position: relative; width: 100%; height: 440px; overflow: hidden; }
.tiers-table-wrap { width: 100%; max-width: 100%; overflow-x: auto;
  overscroll-behavior-inline: contain; }
.tiers-table-wrap:focus-visible { outline: 2px solid rgba(40, 76, 107, .42);
  outline-offset: 2px; border-radius: 4px; }
.tiers-table { width: 100%; min-width: 820px; border-collapse: collapse;
  font-size: 13px; margin-top: 6px; }
.tiers-table th, .tiers-table td { padding: 8px 10px; text-align: center;
  border-bottom: 1px solid #efede6; }
.tiers-table th { color: #5F5E5A; font-weight: 500; background: #faf9f5; }
.tiers-table .tiers-cell-name, .tiers-table .tiers-name-head { text-align: left; }
.tiers-table .up { color: #c0392b; }
.tiers-table .down { color: #3b6d11; }
.tiers-table .warn { color: #a32d2d; font-weight: 500; }
/* 偏离空间列(v1.95.22):主行=更近的警戒线与再涨幅度,副行=触线价与连续涨停推演板数 */
.tiers-table .tiers-space-cell { line-height: 1.3; white-space: nowrap; }
.tiers-table .tiers-space-sub { display: block; font-size: 11px; font-weight: 400; color: #888780; }
.tiers-foot { margin: 10px 0 0; font-size: 12px; color: #888780; line-height: 1.8; }
/* 数据不足未纳入标的的明示条(v1.88.0),避免票凭空消失 */
.tiers-excluded { margin: 6px 0 0; padding: 6px 10px; font-size: 12px;
  border-radius: 6px; background: #fbf5e8; color: #8a6b2a; }
.tiers-chip-name { border: 0; background: transparent; outline: none;
  font: inherit; color: var(--teal); min-width: 60px; max-width: 180px;
  padding: 0 2px; }
.tiers-chip-name:focus { background: #fff; border-radius: 3px;
  box-shadow: 0 0 0 1px var(--teal); }
.tiers-chip-remove { border: 0; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 13px; padding: 0 2px; line-height: 1; }
.tiers-chip-remove:hover { color: var(--up); }
/* 表头排序与复盘页统一:按钮承载交互,↕/↑/↓ 明示状态并支持键盘焦点 */
.tiers-table th.tiers-sortable { padding: 0; }
.tiers-table .sort-head { width: 100%; min-height: 34px; padding: 6px 8px;
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 5px;
  border: 0; border-radius: 4px; background: transparent; color: inherit;
  font: inherit; font-weight: 700; line-height: 1.2; box-shadow: none;
  white-space: nowrap; cursor: pointer; }
.tiers-table .sort-head:hover { border-color: transparent; background: #edf2f6;
  color: #345471; box-shadow: none; }
.tiers-table .sort-head.is-active { background: #e6edf3; color: #284c6b; }
.tiers-table .sort-head:focus-visible { outline: none;
  box-shadow: inset 0 0 0 2px rgba(40, 76, 107, .42); }
.tiers-table .sort-indicator { width: 12px; color: #8291a1; font-size: 12px;
  font-weight: 750; line-height: 1; text-align: center; }
.tiers-table .sort-head.is-active .sort-indicator { color: #284c6b; }
/* 监控表行拖拽:独立行首手柄,只调整本浏览器的表格展示顺序 */
.tiers-table td.tiers-cell-name { text-align: left; }
.tiers-table .tiers-handle-col, .tiers-table .tiers-row-handle-cell {
  width: 36px; padding-left: 4px; padding-right: 2px; text-align: center; }
.tiers-row-handle { display: inline-flex; align-items: center; justify-content: center;
  width: 28px; min-height: 32px; color: var(--faint); font-size: 14px;
  letter-spacing: 1px; cursor: grab; user-select: none; border-radius: 4px; }
.tiers-row-handle:active { cursor: grabbing; }
.tiers-row-handle:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px;
  color: var(--teal); }
.tiers-table tr[data-tier-row-code].is-dragging { opacity: .45; }
.tiers-table tr[data-tier-row-code].drag-over td { background: var(--teal-bg); }
.tiers-table tr[data-tier-row-code].drag-over td:first-child { border-bottom-color: var(--teal); }
/* 测试板块标的入口:与复盘页 stock-link 的文字按钮语义一致 */
.tiers-stock-link { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 0;
  border: 0; border-radius: 3px; background: transparent; color: #273547; font: inherit;
  font-weight: 700; line-height: 1.35; text-align: left; text-decoration: underline;
  text-decoration-color: transparent; text-underline-offset: 2px; cursor: pointer;
  transition: color .16s ease, text-decoration-color .16s ease, background-color .16s ease; }
.tiers-stock-link:hover { color: var(--teal); text-decoration-color: #9fc7c9; }
.tiers-stock-link:focus-visible { outline: 2px solid #6d879f; outline-offset: 2px; }
.tiers-excluded > span { margin-right: 3px; }
.tiers-excluded .tiers-stock-link { min-height: 24px; color: #79591c; font-size: inherit;
  vertical-align: middle; }
.tiers-excluded .tiers-stock-link:hover { color: var(--teal); }
.tiers-abnormal { min-width: 72px; min-height: 44px; padding: 4px 6px;
  border: 1px solid var(--line); border-radius: 6px; background: transparent;
  color: inherit; font: inherit; cursor: pointer; }
.tiers-abnormal small { display: block; color: var(--muted); font-size: 11px; }
.tiers-abnormal:hover { background: var(--teal-bg); }
.tiers-abnormal:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tiers-abnormal-details .up { color: #c0392b; }
.tiers-abnormal-details .down { color: #3b6d11; }
.tiers-live-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tiers-live-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.tiers-live-status.is-live::before { background: #288454; }
.tiers-live-status.is-stale::before { background: var(--up); }
.tiers-row-freshness { display: block; max-width: 180px; font-size: 11px; color: var(--muted); white-space: normal; }
.tiers-row-freshness.is-stale { color: var(--up); }
.tiers-projected { display: block; max-width: 145px; font-size: 11px; color: var(--muted); white-space: normal; }
.tiers-head-actions { flex-wrap: wrap; justify-content: flex-end; }
[data-tiers-refresh] { min-height: 36px; min-width: 64px; }
@media (max-width: 700px) {
  .tiers-head { align-items: stretch; flex-direction: column; gap: 8px; }
  .tiers-head h2 { white-space: nowrap; }
  .tiers-live-status { flex-basis: 100%; justify-content: flex-end; }
  [data-tiers-refresh] { min-height: 44px; }
}
/* AI 起势梯队(2026-09-13):卡片徽标与起势依据行 */
.tiers-ai-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-style: normal; font-weight: 500; color: #fff; background: #284c6b; vertical-align: middle; }
.tiers-scout { margin: 0 0 8px; padding: 8px 12px; border-radius: 6px; background: #eef4f8; color: #2f4858; font-size: 12.5px; line-height: 1.7; }
.tiers-scout b { margin-right: 8px; color: #284c6b; }
.tiers-scout-date { margin-right: 8px; color: #6c7f8d; font-family: "SF Mono", Menlo, monospace; font-size: 11.5px; }
.tiers-scout-note { color: #8a97a3; }
.tiers-seal-time { display: block; color: #6b8393; font-weight: 400; }
