/* ============================================================
   腾龙阁 AI云挂机 · NIGHT TERMINAL 主题层
   ------------------------------------------------------------
   只覆盖视觉（颜色 / 字体 / 层次 / 动效），不动原文件的布局骨架，
   会员端 index.html 与后台 admin.html 共用本文件。
   ============================================================ */

:root {
  /* 底色与表面 */
  --tz-bg: #06090e;
  --tz-bg-2: #080d14;
  --tz-surface: #0b111a;
  --tz-surface-2: #101823;
  --tz-surface-3: #16202d;
  --tz-line: rgba(150, 185, 225, .10);
  --tz-line-strong: rgba(150, 185, 225, .18);

  /* 文字 */
  --tz-text: #e9f1f9;
  --tz-text-2: #b8c8da;
  --tz-muted: #7a8da5;
  --tz-faint: #55677d;

  /* 强调：霓虹青绿 + 琥珀 + 品红 */
  --tz-accent: #2ee6b0;
  --tz-accent-2: #17c79a;
  --tz-accent-soft: rgba(46, 230, 176, .12);
  --tz-accent-line: rgba(46, 230, 176, .34);
  --tz-warn: #ffb44d;
  --tz-warn-soft: rgba(255, 180, 77, .12);
  --tz-bad: #ff5c7a;
  --tz-bad-soft: rgba(255, 92, 122, .12);
  --tz-info: #4da3ff;

  /* 几何 */
  --tz-radius: 10px;
  --tz-radius-sm: 7px;
  --tz-radius-lg: 14px;

  /* 阴影与光 */
  --tz-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .03) inset;
  --tz-glow: 0 0 0 1px var(--tz-accent-line), 0 12px 30px -18px rgba(46, 230, 176, .55);

  /* 字体：等宽用于数字，标题用无衬线紧字距 */
  --tz-font: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --tz-mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, "Courier New", monospace;
}

/* 覆盖原变量，让沿用 var() 的旧规则一起变深 */
:root {
  --accent: var(--tz-accent);
  --accent-dark: var(--tz-accent-2);
  --navy: #070c12;
  --navy-2: #0b111a;
  --bg: var(--tz-bg);
  --card: var(--tz-surface);
  --border: var(--tz-line);
  --text: var(--tz-text);
  --muted: var(--tz-muted);
  --ok: var(--tz-accent);
  --warn: var(--tz-warn);
  --bad: var(--tz-bad);
  --teal: var(--tz-info);
  --radius: var(--tz-radius-sm);
}

/* ============================================================
   基础层
   ============================================================ */
body {
  background: var(--tz-bg);
  color: var(--tz-text);
  font-family: var(--tz-font);
  font-size: 13px;
  letter-spacing: .1px;
}

/* 背景：细网格 + 顶部青色光晕 + 右下暖色余晖 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(150, 185, 225, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 185, 225, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(46, 230, 176, .10), transparent 65%),
    radial-gradient(700px 380px at 88% 108%, rgba(77, 163, 255, .08), transparent 65%);
}

.app, .admin { position: relative; z-index: 1; }

/* 数字统一等宽，表格/指标更“仪表盘” */
.dash-metric strong,
.metric strong,
.mini-metrics strong,
.stats-bar b,
.clock,
.mono,
.data-table td,
.bet-table td,
.lottery-timer,
.lottery-issue,
.issue,
.price {
  font-family: var(--tz-mono);
  font-variant-numeric: tabular-nums;
}

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: rgba(150, 185, 225, .22) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(150, 185, 225, .18);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(46, 230, 176, .4); background-clip: padding-box; }

/* ============================================================
   侧边栏
   ============================================================ */
.sidebar {
  background: linear-gradient(180deg, #080d14 0%, #060a10 60%, #05080d 100%);
  border-right: 1px solid var(--tz-line);
  color: var(--tz-text-2);
  position: relative;
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background: radial-gradient(260px 180px at 30% 0%, rgba(46, 230, 176, .10), transparent 70%);
  pointer-events: none;
}

.brand { border-bottom: 1px solid var(--tz-line); margin-bottom: 4px; }

.brand-logo, .brand-ico, .al-logo, .ml-logo {
  background: linear-gradient(145deg, #2ee6b0, #0f9c78);
  color: #04120d;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(46, 230, 176, .35), 0 10px 24px -14px rgba(46, 230, 176, .9);
}

.brand-txt strong { color: #f2f8ff; font-size: 15px; letter-spacing: .4px; }
.brand-txt span { color: var(--tz-faint); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; }

.side-label {
  color: var(--tz-faint);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 10px 8px;
}

.nav-item {
  color: #a9bacd;
  border-radius: 8px;
  height: 40px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-item .ico { color: #6d829b; transition: color .18s ease; }
.nav-item:hover {
  background: rgba(150, 185, 225, .06);
  color: #eaf3ff;
}
.nav-item:hover .ico { color: var(--tz-accent); }

.nav-item.active {
  background: linear-gradient(90deg, rgba(46, 230, 176, .16), rgba(46, 230, 176, .03));
  color: #eafff8;
  box-shadow: inset 0 0 0 1px rgba(46, 230, 176, .22);
}
.nav-item.active .ico { color: var(--tz-accent); }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--tz-accent);
  box-shadow: 0 0 12px rgba(46, 230, 176, .8);
}

.nav-badge {
  margin-left: auto;
  background: var(--tz-accent-soft);
  color: var(--tz-accent);
  border: 1px solid rgba(46, 230, 176, .3);
  border-radius: 20px;
  padding: 1px 7px;
  font-family: var(--tz-mono);
  font-size: 10px;
}

.dot-live, .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tz-accent);
  box-shadow: 0 0 0 0 rgba(46, 230, 176, .7);
  animation: tz-pulse 2s infinite;
  display: inline-block;
}

.side-foot { border-top: 1px solid var(--tz-line); padding-top: 12px; margin-top: auto; }

.user-chip, .admin-chip {
  background: rgba(150, 185, 225, .055);
  border: 1px solid var(--tz-line);
  border-radius: 10px;
  padding: 9px 10px;
}
.user-chip strong, .admin-chip strong { color: #eaf3ff; font-size: 12.5px; }
.user-chip span, .admin-chip span { color: var(--tz-faint); font-size: 10.5px; }

.avatar, .avatar.sm {
  background: linear-gradient(145deg, #1b2836, #16202d);
  color: var(--tz-accent);
  border: 1px solid var(--tz-line-strong);
  font-family: var(--tz-mono);
}

.logout {
  border: 1px solid var(--tz-line);
  background: transparent;
  color: var(--tz-muted);
  border-radius: 8px;
  transition: all .18s ease;
}
.logout:hover { color: var(--tz-bad); border-color: rgba(255, 92, 122, .4); background: var(--tz-bad-soft); }

/* ============================================================
   顶栏
   ============================================================ */
.topbar {
  background: rgba(8, 13, 20, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--tz-line);
  color: var(--tz-text-2);
}

.crumbs span { color: var(--tz-faint); }
.crumbs i { color: var(--tz-faint); opacity: .6; }
.crumbs strong { color: #f0f7ff; letter-spacing: .3px; }

.marquee {
  color: var(--tz-muted);
  border-left: 1px solid var(--tz-line);
}
.marquee-track { color: var(--tz-muted); }

.vip-badge {
  background: linear-gradient(135deg, rgba(46, 230, 176, .18), rgba(77, 163, 255, .12));
  color: #d6fff2;
  border: 1px solid rgba(46, 230, 176, .32);
  border-radius: 6px;
  font-family: var(--tz-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
}
.top-account { color: var(--tz-text-2); font-family: var(--tz-mono); font-size: 12px; }

.clock { color: var(--tz-accent); font-size: 13px; letter-spacing: 1px; }

.icon-btn {
  background: rgba(150, 185, 225, .06);
  border: 1px solid var(--tz-line);
  color: var(--tz-text-2);
  border-radius: 8px;
}
.icon-btn:hover { border-color: var(--tz-accent-line); color: var(--tz-accent); }

.search {
  background: rgba(150, 185, 225, .05);
  border: 1px solid var(--tz-line);
  border-radius: 8px;
}
.search input { background: transparent; border: 0; color: var(--tz-text); outline: none; }
.search input::placeholder { color: var(--tz-faint); }
.search span { color: var(--tz-faint); }

/* ============================================================
   平台条 / 平台卡
   ============================================================ */
.platform-strip {
  background: linear-gradient(180deg, rgba(16, 24, 35, .9), rgba(11, 17, 26, .9));
  border-bottom: 1px solid var(--tz-line);
  color: var(--tz-text-2);
}
.ps-title strong { color: #eaf3ff; font-size: 12px; letter-spacing: .6px; }
.ps-title span { color: var(--tz-faint); font-family: var(--tz-mono); font-size: 11px; }

.pcard {
  background: linear-gradient(160deg, rgba(22, 32, 45, .92), rgba(12, 18, 26, .92));
  border: 1px solid var(--tz-line);
  border-radius: var(--tz-radius);
  box-shadow: var(--tz-shadow);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}
.pcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 176, .5), transparent);
  opacity: .5;
}
.pcard:hover { border-color: var(--tz-accent-line); transform: translateY(-2px); box-shadow: var(--tz-glow); }
.pcard.isCurrent { border-color: var(--tz-accent-line); box-shadow: var(--tz-glow); }

.pcard-logo {
  background: linear-gradient(145deg, #1b2a39, #131d29);
  color: var(--tz-accent);
  border: 1px solid var(--tz-line-strong);
  border-radius: 7px;
}
.pcard-title { color: #f0f7ff; font-size: 12.5px; font-weight: 600; }
.pcard-badge {
  background: var(--tz-accent-soft);
  color: var(--tz-accent);
  border: 1px solid rgba(46, 230, 176, .28);
  border-radius: 20px;
  font-family: var(--tz-mono);
  font-size: 10px;
}
.pcard-dot { background: var(--tz-accent); box-shadow: 0 0 8px rgba(46, 230, 176, .9); }
.pcard-meta, .meta-line { color: var(--tz-muted); font-size: 10.5px; }
.pcard .line, .line-cell { color: var(--tz-muted); }
.line-val { color: var(--tz-text-2); font-family: var(--tz-mono); font-size: 10.5px; }
.lat { font-family: var(--tz-mono); font-size: 10.5px; }
.money, .balance { color: var(--tz-accent); font-family: var(--tz-mono); font-weight: 600; }
.pcard-empty { color: var(--tz-faint); }
.pcard .exit { color: var(--tz-faint); }
.pcard .exit:hover { color: var(--tz-bad); }

.pill {
  background: rgba(150, 185, 225, .08);
  color: var(--tz-text-2);
  border: 1px solid var(--tz-line);
  border-radius: 20px;
  font-size: 10.5px;
}
.pill.ok { background: var(--tz-accent-soft); color: var(--tz-accent); border-color: rgba(46, 230, 176, .3); }
.pill.warn { background: var(--tz-warn-soft); color: var(--tz-warn); border-color: rgba(255, 180, 77, .3); }
.pill.bad { background: var(--tz-bad-soft); color: var(--tz-bad); border-color: rgba(255, 92, 122, .3); }
.pill.off { background: rgba(150, 185, 225, .06); color: var(--tz-faint); }
.pill.accent { background: var(--tz-accent-soft); color: var(--tz-accent); border-color: rgba(46, 230, 176, .3); }

.tag {
  background: rgba(150, 185, 225, .07);
  color: var(--tz-text-2);
  border: 1px solid var(--tz-line);
  border-radius: 5px;
  font-size: 10.5px;
}

/* ============================================================
   页面头 / 内容区
   ============================================================ */
.content { background: transparent; }

.page-head h1 {
  color: #f4faff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .4px;
}
.page-head h1::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-top: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tz-accent), transparent);
}
.page-head p { color: var(--tz-muted); font-size: 11.5px; }

.page.active { animation: tz-rise .3s cubic-bezier(.22, .8, .3, 1) both; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  background: linear-gradient(180deg, #182534, #10181f);
  border: 1px solid var(--tz-line-strong);
  color: var(--tz-text-2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  transition: all .18s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  color: #f2f8ff;
  border-color: var(--tz-accent-line);
  background: linear-gradient(180deg, #1c2b3c, #131d27);
}
.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent;
  border-color: var(--tz-line);
  color: var(--tz-muted);
}
.btn.ghost:hover { color: var(--tz-accent); border-color: var(--tz-accent-line); background: var(--tz-accent-soft); }

.btn.sm { border-radius: 7px; font-size: 11.5px; }

.btn.warn { color: var(--tz-warn); border-color: rgba(255, 180, 77, .32); background: var(--tz-warn-soft); }
.btn.warn:hover { color: #ffd79b; border-color: rgba(255, 180, 77, .55); }

.btn.danger-ghost { color: var(--tz-bad); border-color: rgba(255, 92, 122, .28); background: transparent; }
.btn.danger-ghost:hover { background: var(--tz-bad-soft); border-color: rgba(255, 92, 122, .5); }

/* 主行动按钮：青绿实心 + 光泽扫过 */
.btn.start-btn, .btn.ml-submit, .al-submit, .page-actions .btn:not(.ghost), .head-actions .btn:not(.ghost) {
  background: linear-gradient(135deg, #2ee6b0, #12b78c);
  color: #04150f;
  border: 1px solid rgba(46, 230, 176, .55);
  font-weight: 700;
  letter-spacing: .4px;
  box-shadow: 0 12px 30px -16px rgba(46, 230, 176, .85);
}
.btn.start-btn:hover, .btn.ml-submit:hover, .al-submit:hover,
.page-actions .btn:not(.ghost):hover, .head-actions .btn:not(.ghost):hover {
  background: linear-gradient(135deg, #4df0c1, #16c99a);
  color: #04150f;
  transform: translateY(-1px);
}
.btn.start-btn::after, .btn.ml-submit::after, .al-submit::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  animation: tz-sheen 4.5s ease-in-out infinite;
}

/* 运行中状态（app.js 切换文案时也保持视觉一致） */
.btn.start-btn.running, .btn.start-btn[data-running="1"] {
  background: linear-gradient(135deg, #ff5c7a, #d8425f);
  border-color: rgba(255, 92, 122, .5);
  color: #fff5f7;
  box-shadow: 0 12px 30px -16px rgba(255, 92, 122, .8);
}

.link, .link-btn {
  color: var(--tz-info);
  background: none;
  border: 0;
  font-size: 11.5px;
}
.link:hover, .link-btn:hover { color: #8cc7ff; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--tz-bad); }
.link.danger:hover { color: #ff8fa3; }

/* ============================================================
   表单控件
   ============================================================ */
.input, .select, .spin, .nums, textarea.input {
  background: rgba(150, 185, 225, .045);
  border: 1px solid var(--tz-line);
  color: var(--tz-text);
  border-radius: 7px;
  font-size: 12px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.input::placeholder, textarea::placeholder { color: #6b7f96; }
.input:focus, .select:focus, .spin:focus, .nums:focus, textarea.input:focus {
  outline: none;
  border-color: var(--tz-accent-line);
  background: rgba(46, 230, 176, .04);
  box-shadow: 0 0 0 3px rgba(46, 230, 176, .10);
}
.select option { background: #0d1520; color: var(--tz-text); }

.nums {
  background: rgba(4, 8, 13, .7);
  border: 1px solid var(--tz-line);
  color: #d8e8f6;
  font-family: var(--tz-mono);
  font-size: 12px;
  line-height: 1.65;
}

.inline-field, .cfg-line label, .opt-row span, .lbl { color: var(--tz-muted); font-size: 11.5px; }

/* 复选框 / 单选 */
.chk { color: var(--tz-text-2); font-size: 11.5px; }
.chk .box, .radio .dot {
  background: rgba(150, 185, 225, .06);
  border: 1px solid var(--tz-line-strong);
  border-radius: 4px;
  transition: all .16s ease;
}
.chk input:checked + .box {
  background: var(--tz-accent);
  border-color: var(--tz-accent);
  box-shadow: 0 0 12px rgba(46, 230, 176, .5);
}
.radio .dot { border-radius: 50%; }
.radio input:checked + .dot {
  background: var(--tz-accent);
  border-color: var(--tz-accent);
  box-shadow: inset 0 0 0 3px #0a1119, 0 0 12px rgba(46, 230, 176, .5);
}

.gear { color: var(--tz-faint); transition: color .16s ease; }
.gear:hover { color: var(--tz-accent); }

/* ============================================================
   总览 · 指标 / 图表 / 表
   ============================================================ */
.dash-metrics { gap: 12px; }

.dash-metric {
  background: linear-gradient(165deg, rgba(18, 27, 39, .95), rgba(10, 16, 24, .95));
  border: 1px solid var(--tz-line);
  border-radius: var(--tz-radius);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--tz-shadow);
  transition: border-color .2s ease, transform .2s ease;
}
.dash-metric::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 176, .16), transparent 70%);
  pointer-events: none;
}
.dash-metric:hover { border-color: var(--tz-accent-line); transform: translateY(-2px); }
.dash-metric > span { color: var(--tz-muted); font-size: 11px; letter-spacing: .3px; }
.dash-metric strong {
  color: #f6fbff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 6px 0 2px;
  display: block;
}
.dash-metric small { color: var(--tz-faint); font-size: 10.5px; }
.dash-metric strong.down, .dash-metric strong.up { color: var(--tz-accent); }
.dash-metric strong.down { color: var(--tz-bad); }

.dash-card, .card, .table-card, .work-card, .options-card, .lottery-card,
.history-card, .trend-panel, .plan-card {
  background: linear-gradient(170deg, rgba(16, 24, 35, .96), rgba(9, 14, 21, .96));
  border: 1px solid var(--tz-line);
  border-radius: var(--tz-radius);
  box-shadow: var(--tz-shadow);
}
.dash-card { position: relative; }
.dash-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 176, .35), transparent);
}

.dash-card-head { border-bottom: 1px solid var(--tz-line); }
.dash-card-head h2, .card-head h2 {
  color: #edf5ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
}
.dash-hint, .card-head .muted { color: var(--tz-faint); font-size: 10.5px; font-family: var(--tz-mono); }

.profit-chart { color: var(--tz-accent); }
.pc-col { background: rgba(150, 185, 225, .05); border-radius: 4px; }
.pc-bar {
  background: linear-gradient(180deg, var(--tz-accent), rgba(46, 230, 176, .25));
  border-radius: 4px;
  box-shadow: 0 0 14px -4px rgba(46, 230, 176, .7);
}
.pc-day, .pc-val { color: var(--tz-faint); font-family: var(--tz-mono); font-size: 10px; }
.pc-val { color: var(--tz-accent); }
.chart-empty, .dash-empty { color: var(--tz-faint); }

.dash-table, .bet-table, .history-table, .tree, .data-table, .trend-table {
  border-color: var(--tz-line);
  color: var(--tz-text-2);
}
.dash-table thead th, .bet-table thead th, .history-table thead th,
.tree thead th, .data-table thead th, .trend-table thead th {
  background: rgba(150, 185, 225, .045);
  color: var(--tz-faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .45px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--tz-line);
}
.dash-table td, .bet-table td, .history-table td, .tree td, .data-table td, .trend-table td {
  border-bottom: 1px solid rgba(150, 185, 225, .055);
  color: var(--tz-text-2);
}
.dash-table tbody tr:hover, .bet-table tbody tr:hover, .history-table tbody tr:hover,
.tree tbody tr:hover, .data-table tbody tr:hover, .trend-table tbody tr:hover {
  background: rgba(46, 230, 176, .045);
}
.tree tbody tr.selected, .tree tbody tr.on, .tree tbody tr.isCurrent {
  background: var(--tz-accent-soft) !important;
  box-shadow: inset 2px 0 0 var(--tz-accent);
}
.data-table .sub { color: var(--tz-faint); font-size: 10.5px; }

.draw-list, .draw-row { border-color: var(--tz-line); }
.draw-row { color: var(--tz-text-2); }
.ball {
  background: linear-gradient(155deg, #1d2c3c, #121c27);
  color: #eaf6ff;
  border: 1px solid var(--tz-line-strong);
  border-radius: 50%;
  font-family: var(--tz-mono);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.history-balls .ball, .bead {
  background: linear-gradient(155deg, #21313f, #141f2a);
  color: var(--tz-accent);
}
.bead-grid { gap: 4px; }
.trend-row { border-color: var(--tz-line); }

/* ============================================================
   自动投注页
   ============================================================ */
.lottery-card {
  background:
    radial-gradient(320px 160px at 20% 0%, rgba(46, 230, 176, .12), transparent 70%),
    linear-gradient(170deg, rgba(18, 27, 39, .97), rgba(9, 14, 21, .97));
  border: 1px solid var(--tz-line);
  position: relative;
  overflow: hidden;
}
.lottery-name { color: #f4faff; font-size: 15px; font-weight: 700; letter-spacing: .4px; }
.lottery-issue { color: var(--tz-faint); font-size: 11px; }
.lottery-timer {
  color: var(--tz-accent);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 26px rgba(46, 230, 176, .45);
  font-variant-numeric: tabular-nums;
}
.share-state { color: var(--tz-muted); font-size: 11px; }

.options-card { background: linear-gradient(170deg, rgba(16, 24, 35, .96), rgba(9, 14, 21, .96)); }
.options-head h3, .panel-title {
  color: #eaf3ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .6px;
  border-bottom: 1px solid var(--tz-line);
}
.opt-title { color: var(--tz-faint); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; }
.opt-plain, .combo-tip, .field-hint { color: var(--tz-faint); font-size: 10.5px; font-family: var(--tz-mono); }
.opt-side { border-left: 1px solid var(--tz-line); }
.opt-follow { border-color: var(--tz-line); }

.stats-bar {
  background: linear-gradient(180deg, rgba(16, 24, 35, .96), rgba(10, 15, 22, .96));
  border: 1px solid var(--tz-line);
  border-radius: var(--tz-radius);
}
.stat { color: var(--tz-muted); font-size: 11.5px; border-right: 1px solid var(--tz-line); }
.stat b { color: #eaf3ff; font-size: 12.5px; }
.stat.danger b { color: var(--tz-bad); }
.stat.teal b { color: var(--tz-accent); }

.keep-bar { color: var(--tz-muted); }
.keep-input { width: 64px; text-align: center; }

/* ============================================================
   方案 / 高级倍投
   ============================================================ */
.splitter { background: var(--tz-line); }
.tree-toolbar, .adv-toolbar, .scheme-topbar, .adv-namebar, .keep-bar {
  border-color: var(--tz-line);
}
.tree-toolbar { background: rgba(150, 185, 225, .03); }
.tree-wrap { background: rgba(4, 8, 13, .35); }
.bet-count { color: var(--tz-accent); font-family: var(--tz-mono); font-size: 11px; }
.ro-name { color: var(--tz-text-2); }
.spacer { flex: 1; }

.panel { background: rgba(150, 185, 225, .022); border: 1px solid var(--tz-line); border-radius: var(--tz-radius-sm); }
.rule-body, .rule-extra, .multi-row { border-color: var(--tz-line); }
.nums-toolbar { border-bottom: 1px solid var(--tz-line); }
.pos-num-grid .pos-item, .pos-item {
  background: rgba(150, 185, 225, .05);
  border: 1px solid var(--tz-line);
  border-radius: 6px;
  color: var(--tz-text-2);
}
.combo-table, .combo-edit { border-color: var(--tz-line); }
.comboSelected { background: var(--tz-accent-soft) !important; }
.sci-summary {
  background: rgba(46, 230, 176, .05);
  border: 1px solid rgba(46, 230, 176, .18);
  border-radius: 7px;
  color: var(--tz-text-2);
  font-family: var(--tz-mono);
  font-size: 11px;
}

/* ============================================================
   开奖历史 / 趋势
   ============================================================ */
.trend-tabs { border-bottom: 1px solid var(--tz-line); gap: 4px; }
.trend-tabs button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--tz-muted);
  border-radius: 7px 7px 0 0;
  font-size: 11.5px;
  transition: all .16s ease;
}
.trend-tabs button:hover { color: var(--tz-text); background: rgba(150, 185, 225, .05); }
.trend-tabs button.on {
  color: var(--tz-accent);
  background: var(--tz-accent-soft);
  border-color: rgba(46, 230, 176, .25);
  border-bottom-color: transparent;
}
.hot { color: var(--tz-bad); }
.cold { color: var(--tz-info); }
.trend-panel { color: var(--tz-text-2); }

/* ============================================================
   弹窗 / 登录
   ============================================================ */
.modal-mask { background: rgba(3, 6, 10, .74); backdrop-filter: blur(6px); }
.modal, .ml-card, .al-card {
  background: linear-gradient(170deg, rgba(19, 28, 40, .98), rgba(9, 14, 21, .99));
  border: 1px solid var(--tz-line-strong);
  border-radius: var(--tz-radius-lg);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  animation: tz-rise .26s cubic-bezier(.22, .8, .3, 1) both;
}
.modal-head { border-bottom: 1px solid var(--tz-line); }
.modal-head h3 { color: #f2f8ff; font-size: 14px; letter-spacing: .4px; }
.modal-close { color: var(--tz-faint); }
.modal-close:hover { color: var(--tz-bad); }
.modal-foot { border-top: 1px solid var(--tz-line); }
.modal-tip { color: var(--tz-faint); }
.field label, .field-head label { color: var(--tz-muted); font-size: 11.5px; }
.verify-box { background: rgba(150, 185, 225, .04); border: 1px solid var(--tz-line); border-radius: 8px; }
.captcha-img { border: 1px solid var(--tz-line-strong); border-radius: 6px; }

.member-login, .admin-login {
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(46, 230, 176, .12), transparent 62%),
    radial-gradient(700px 420px at 85% 100%, rgba(77, 163, 255, .10), transparent 62%),
    var(--tz-bg);
}
.member-login::before, .admin-login::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(150, 185, 225, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 185, 225, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 80%);
}
.ml-brand strong, .al-brand strong { color: #f4faff; font-size: 16px; letter-spacing: .5px; }
.ml-brand-txt span, .al-brand span { color: var(--tz-faint); font-size: 10.5px; letter-spacing: 1px; }
.ml-field span, .al-field span { color: var(--tz-muted); font-size: 11px; letter-spacing: .4px; }
.ml-error, .al-error { color: var(--tz-bad); font-size: 11.5px; }
.ml-hint, .al-hint { color: var(--tz-faint); font-size: 11px; }
.al-card h1 { color: #f4faff; font-size: 18px; letter-spacing: .8px; }
.al-sub { color: var(--tz-muted); font-size: 11.5px; }
.al-hint b { color: var(--tz-accent); font-family: var(--tz-mono); }

/* ============================================================
   提示 / 图表补充
   ============================================================ */
.toast-box { color: var(--tz-text); }
.toast {
  background: linear-gradient(170deg, rgba(22, 32, 45, .98), rgba(11, 17, 26, .98));
  border: 1px solid var(--tz-line-strong);
  border-left: 2px solid var(--tz-accent);
  color: var(--tz-text);
  border-radius: 8px;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9);
  animation: tz-rise .22s ease both;
}

/* 管理后台专属 */
.metrics .metric {
  background: linear-gradient(165deg, rgba(18, 27, 39, .95), rgba(10, 16, 24, .95));
  border: 1px solid var(--tz-line);
  border-radius: var(--tz-radius);
  box-shadow: var(--tz-shadow);
}
.metric-label { color: var(--tz-muted); font-size: 11px; }
.metric strong { color: #f6fbff; font-size: 22px; }
.metric-sub { color: var(--tz-faint); font-size: 10.5px; }
.metric-sub.up { color: var(--tz-accent); }
.mini-metrics { border-color: var(--tz-line); }
.mini-metrics > div { border-right: 1px solid var(--tz-line); }
.mini-metrics span { color: var(--tz-muted); font-size: 11px; }
.mini-metrics strong { color: #f4faff; font-size: 17px; }
.txt-ok { color: var(--tz-accent) !important; }
.txt-warn { color: var(--tz-warn) !important; }
.txt-bad { color: var(--tz-bad) !important; }
.txt-win { color: var(--tz-accent) !important; }
.txt-loss { color: var(--tz-bad) !important; }

.instance-summary .ring {
  background: conic-gradient(var(--tz-accent) 0 95.5%, rgba(150, 185, 225, .12) 95.5% 100%);
  border-radius: 50%;
  box-shadow: 0 0 30px -12px rgba(46, 230, 176, .8);
}
.instance-summary .ring span { color: #f4faff; font-family: var(--tz-mono); }
.instance-summary .ring small { color: var(--tz-muted); }
.legend div { color: var(--tz-muted); font-size: 11px; }
.legend b { color: var(--tz-text); font-family: var(--tz-mono); }
.lg { border-radius: 50%; }
.lg.ok { background: var(--tz-accent); }
.lg.warn { background: var(--tz-warn); }
.lg.bad { background: var(--tz-bad); }
.lg.off { background: #3b4c5f; }

.notice {
  background: var(--tz-warn-soft);
  border: 1px solid rgba(255, 180, 77, .25);
  border-radius: 8px;
  color: var(--tz-text-2);
}
.notice strong { color: var(--tz-warn); }
.notice p { color: var(--tz-muted); }

.filters { border: 0; }
.filters .input { background: rgba(150, 185, 225, .045); }
.pager { border-top: 1px solid var(--tz-line); color: var(--tz-muted); }
.pager button {
  background: transparent;
  border: 1px solid var(--tz-line);
  color: var(--tz-muted);
  border-radius: 6px;
}
.pager button:hover { color: var(--tz-accent); border-color: var(--tz-accent-line); }
.pager button.on {
  background: var(--tz-accent-soft);
  color: var(--tz-accent);
  border-color: rgba(46, 230, 176, .3);
}
.card.flush { background: transparent; border: 0; box-shadow: none; }

.plan-card { position: relative; }
.plan-card.featured {
  border-color: var(--tz-accent-line);
  box-shadow: var(--tz-glow);
}
.plan-card .plan-head h2 { color: #f2f8ff; font-size: 14px; }
.plan-card .price { color: var(--tz-accent); font-size: 24px; font-weight: 700; }
.plan-card .price span { color: var(--tz-faint); font-size: 11px; }
.plan-card ul { color: var(--tz-text-2); font-size: 11.5px; }
.plan-card .plan-foot { border-top: 1px solid var(--tz-line); color: var(--tz-faint); font-size: 10.5px; }
.live-pill {
  background: var(--tz-accent-soft);
  border: 1px solid rgba(46, 230, 176, .3);
  color: var(--tz-accent);
  border-radius: 20px;
  font-size: 10.5px;
}
.admin .page.active { animation: tz-rise .3s cubic-bezier(.22, .8, .3, 1) both; }
.admin .content { background: transparent; }
.admin .card { border-radius: var(--tz-radius); }
.admin .icon-btn .badge {
  background: var(--tz-bad);
  color: #fff;
  border: 0;
  font-family: var(--tz-mono);
}

/* ============================================================
   动效
   ============================================================ */
@keyframes tz-rise {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes tz-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 176, .55); }
  70% { box-shadow: 0 0 0 7px rgba(46, 230, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 176, 0); }
}
@keyframes tz-sheen {
  0%, 62% { left: -60%; }
  82%, 100% { left: 130%; }
}

/* 指标数字入场：让首屏有“仪表盘点亮”的观感 */
.dash-metric, .metric { animation: tz-rise .34s cubic-bezier(.22, .8, .3, 1) both; }
.dash-metric:nth-child(1), .metric:nth-child(1) { animation-delay: .02s; }
.dash-metric:nth-child(2), .metric:nth-child(2) { animation-delay: .06s; }
.dash-metric:nth-child(3), .metric:nth-child(3) { animation-delay: .10s; }
.dash-metric:nth-child(4), .metric:nth-child(4) { animation-delay: .14s; }
.dash-metric:nth-child(5) { animation-delay: .18s; }
.dash-metric:nth-child(6) { animation-delay: .22s; }

/* ============================================================
   浅色残留修补（原文件里硬编码的浅底/浅胶囊，优先级更高）
   ============================================================ */

/* 顶栏公告跑马灯：原为 #f7fafc 白底 + #e6f2fb 标签 */
.marquee {
  background: rgba(150, 185, 225, .04);
  border-color: var(--tz-line);
}
.marquee::before {
  background: var(--tz-accent-soft);
  color: var(--tz-accent);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 176, .25);
}
.marquee-track { color: var(--tz-muted); }

/* 平台卡当前/离线态（app.js 输出的是 .pcard.current，不是 isCurrent） */
.pcard.current { border-color: var(--tz-accent-line); box-shadow: var(--tz-glow); }
.pcard .pcard-badge,
.pcard.current .pcard-badge {
  background: var(--tz-accent-soft);
  color: var(--tz-accent);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 176, .26);
}
.pcard.offline .pcard-badge {
  background: rgba(150, 185, 225, .07);
  color: var(--tz-faint);
  box-shadow: inset 0 0 0 1px var(--tz-line);
}
.pcard.offline { opacity: .72; }
.pcard.current .pcard-dot,
.pcard.in-use .pcard-dot {
  background: var(--tz-accent);
  box-shadow: 0 0 0 3px rgba(46, 230, 176, .18), 0 0 10px rgba(46, 230, 176, .9);
}

/* 延迟/状态胶囊：原文件是浅底深字 */
.lat.good { color: var(--tz-accent); background: rgba(46, 230, 176, .12); }
.lat.warn { color: var(--tz-warn); background: var(--tz-warn-soft); }
.lat.bad { color: var(--tz-bad); background: var(--tz-bad-soft); }
.lat.wait { color: var(--tz-faint); background: rgba(150, 185, 225, .07); }

/* 表格悬停：原样式作用在 td 上且优先级更高 */
.dash-table tbody tr:hover td,
.bet-table tbody tr:hover td,
.data-table tbody tr:hover td,
.history-table tbody tr:hover td,
.tree tbody tr:hover td,
.trend-table tbody tr:hover td {
  background: rgba(46, 230, 176, .05) !important;
}

/* 指标数字：6 列布局下大额余额会被省略号截断，改为自适应字号 + 不显示省略号 */
.dash-metric { min-width: 0; }
.dash-metric strong {
  font-size: clamp(15px, 1.35vw, 19px);
  letter-spacing: -.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

/* 平台 logo 的品牌底色由 app.js 内联写入，文字统一白色以保证对比度 */
.pcard-logo { color: #fff !important; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.pcard.offline { opacity: .82; }
.pcard.offline .pcard-badge { color: #93a6bb; }

/* 后台：筛选栏 / 状态统计条 / 登录输入框（原 admin.css 里写死了 #fff 底） */
.filters {
  background: linear-gradient(180deg, rgba(16, 24, 35, .92), rgba(10, 15, 22, .92));
  border: 1px solid var(--tz-line);
  border-radius: var(--tz-radius);
}
.filters .input,
.filters select,
.filters input[type="date"] {
  background: rgba(150, 185, 225, .06);
  border: 1px solid var(--tz-line-strong);
  color: var(--tz-text);
}
.filters .input::placeholder { color: var(--tz-faint); }

.mini-metrics {
  background: linear-gradient(180deg, rgba(16, 24, 35, .92), rgba(10, 15, 22, .92));
  border: 1px solid var(--tz-line);
  border-radius: var(--tz-radius);
  overflow: hidden;
}
.mini-metrics > div { background: transparent; }
.mini-metrics strong { color: #f2f8ff; }
.mini-metrics span { color: var(--tz-muted); }

.al-field input {
  background: rgba(150, 185, 225, .06);
  border: 1px solid var(--tz-line-strong);
  color: var(--tz-text);
}
.al-field input:focus {
  outline: none;
  border-color: var(--tz-accent-line);
  box-shadow: 0 0 0 3px rgba(46, 230, 176, .10);
}
.al-field input::placeholder { color: var(--tz-faint); }

/* 表头文字提亮：原 --tz-faint 在深底上偏灰（约 3.4:1） */
.dash-table thead th,
.data-table thead th,
.bet-table thead th,
.history-table thead th,
.tree thead th,
.trend-table thead th {
  color: #8ea3ba;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   走势图表（计划网站功能复刻 · 腾龙阁暗色风格）
   ============================================================ */
.pt-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--tz-line);
  margin: 0 0 10px;
  overflow-x: auto;
  flex: 0 0 auto;
}
.pt-tabs button {
  background: none;
  border: 0;
  padding: 0 0 9px;
  color: var(--tz-muted);
  font-size: 13px;
  position: relative;
  white-space: nowrap;
}
.pt-tabs button:hover { color: var(--tz-text-2); }
.pt-tabs button.on { color: var(--tz-text); font-weight: 600; }
.pt-tabs button.on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--tz-accent);
  box-shadow: 0 0 10px var(--tz-accent-line);
}

.pt-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--tz-muted);
  position: relative;
  flex: 0 0 auto;
}
.pt-toolbar .pt-label { color: var(--tz-muted); }
.pt-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--tz-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--tz-surface);
}
.pt-stepper button {
  width: 26px; height: 26px;
  border: 0;
  background: transparent;
  color: var(--tz-text-2);
  font-size: 14px;
  line-height: 1;
}
.pt-stepper button:hover { background: var(--tz-surface-3); color: var(--tz-accent); }
.pt-stepper span {
  min-width: 42px;
  text-align: center;
  font-family: var(--tz-mono);
  color: var(--tz-text);
  font-size: 12px;
}
.pt-stars { display: flex; gap: 4px; }
.pt-stars button {
  height: 24px;
  padding: 0 12px;
  border-radius: 5px;
  border: 1px solid var(--tz-line);
  background: var(--tz-surface);
  color: var(--tz-text-2);
  font-size: 11.5px;
}
.pt-stars button:hover { border-color: var(--tz-line-strong); }
.pt-stars button.on {
  border-color: var(--tz-accent-line);
  background: var(--tz-accent-soft);
  color: var(--tz-accent);
}
.pt-ghost {
  height: 24px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid var(--tz-line);
  background: var(--tz-surface);
  color: var(--tz-text-2);
  font-size: 11.5px;
}
.pt-ghost:hover { border-color: var(--tz-accent-line); color: var(--tz-accent); }
.pt-mode { color: var(--tz-text-2); }
.pt-grow { flex: 1; }

.pt-settings {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  z-index: 20;
  width: 178px;
  padding: 8px;
  border: 1px solid var(--tz-line-strong);
  border-radius: 8px;
  background: var(--tz-surface-2);
  box-shadow: var(--tz-shadow);
}
.pt-settings.open { display: block; }
.pt-settings label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--tz-text-2);
  cursor: pointer;
}
.pt-settings label:hover { background: var(--tz-surface-3); }

.pt-body { padding-bottom: 20px; }
.pt-tip { padding: 70px 0; text-align: center; color: var(--tz-muted); }

.pt-table-wrap {
  overflow: auto;
  border: 1px solid var(--tz-line);
  border-radius: 10px;
  background: var(--tz-surface);
  max-height: calc(100vh - 250px);
}
.pt-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 960px;
  font-size: 11px;
}
.pt-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 4px;
  background: var(--tz-surface-2);
  border-bottom: 1px solid var(--tz-line);
  border-right: 1px solid var(--tz-line);
  color: var(--tz-text-2);
  font-weight: 500;
  white-space: nowrap;
}
.pt-table th.grp { background: var(--tz-surface-3); color: var(--tz-text); }
.pt-table th.num, .pt-table th.issue { text-align: left; padding-left: 9px; }
.pt-table td {
  padding: 2px;
  border-bottom: 1px solid var(--tz-line);
  border-right: 1px solid var(--tz-line);
  text-align: center;
  color: var(--tz-text-2);
}
.pt-table td.issue, .pt-table td.num {
  text-align: left;
  padding-left: 9px;
  font-family: var(--tz-mono);
  white-space: nowrap;
}
.pt-table tbody tr:hover td { background: rgba(46, 230, 176, .045); }
.pt-table tbody tr:last-child td { border-bottom: 0; }

.pt-cell {
  display: block;
  border-radius: 2px;
  padding: 1px 0;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 14px;
}
.pt-cell.v0 { color: var(--tz-faint); }
.pt-cell.v1 { background: #1c4770; color: #cfe8ff; }
.pt-cell.v2 { background: #6d5410; color: #ffe8b0; }
.pt-cell.v3 { background: #7c2b3a; color: #ffd4dc; }
.pt-cell.v4 { background: #4a3277; color: #e4d8ff; }

.pt-hit {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--tz-bad-soft);
  color: var(--tz-bad);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pt-ratio-hit { background: rgba(77, 163, 255, .16); color: #8cc4ff; }

.pt-table tr.pt-stat td {
  background: var(--tz-surface-2);
  color: var(--tz-muted);
  font-size: 10px;
  padding: 4px 2px;
}
.pt-table tr.pt-stat td.pt-stat-label {
  text-align: left;
  padding-left: 9px;
  color: var(--tz-muted);
  white-space: nowrap;
}

.pt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pt-card {
  border: 1px solid var(--tz-line);
  border-radius: 9px;
  background: var(--tz-surface);
  padding: 11px 12px;
}
.pt-card .k { font-size: 11px; color: var(--tz-muted); }
.pt-card .v { margin-top: 5px; font-size: 20px; font-weight: 700; font-family: var(--tz-mono); color: var(--tz-text); }
.pt-card .s { margin-top: 4px; font-size: 10.5px; color: var(--tz-muted); }

.pt-panel {
  border: 1px solid var(--tz-line);
  border-radius: 10px;
  background: var(--tz-surface);
  padding: 12px;
  margin-bottom: 10px;
}
.pt-panel h4 { margin: 0 0 10px; font-size: 12.5px; color: var(--tz-text); }
.pt-bars { display: flex; flex-direction: column; gap: 6px; }
.pt-bar-row { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.pt-bar-row .n { width: 22px; text-align: center; font-family: var(--tz-mono); color: var(--tz-text-2); }
.pt-bar-track { flex: 1; height: 13px; border-radius: 3px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.pt-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #17c79a, #2ee6b0); }
.pt-bar-row .c { width: 92px; text-align: right; color: var(--tz-muted); font-family: var(--tz-mono); }

.pt-beads { display: flex; flex-wrap: wrap; gap: 4px; }
.pt-bead {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #eaf3ff;
  background: #1c4770;
}
.pt-bead.hot { background: #7c2b3a; color: #ffd4dc; }
.pt-bead.warm { background: #6d5410; color: #ffe8b0; }
.pt-bead.cool { background: #1c4770; color: #cfe8ff; }

.pt-search { display: flex; gap: 8px; margin-bottom: 10px; }
.pt-search input {
  height: 30px;
  width: 280px;
  padding: 0 10px;
  border: 1px solid var(--tz-line);
  border-radius: 6px;
  background: var(--tz-surface);
  color: var(--tz-text);
  font-size: 12px;
  outline: none;
}
.pt-search input:focus { border-color: var(--tz-accent-line); box-shadow: 0 0 0 3px var(--tz-accent-soft); }

.pt-subtable { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.pt-subtable th, .pt-subtable td { padding: 6px 8px; border-bottom: 1px solid var(--tz-line); text-align: center; }
.pt-subtable th { color: var(--tz-muted); font-weight: 500; background: var(--tz-surface-2); }
.pt-subtable td { color: var(--tz-text-2); }
.pt-subtable td:first-child, .pt-subtable th:first-child { text-align: left; }
.pt-subtable tr:hover td { background: rgba(46, 230, 176, .04); }
.pt-good { color: var(--tz-accent); }
.pt-bad { color: var(--tz-bad); }
/* 完整 47 列走势表 */
.pt-table-full { min-width: 1620px; }
.pt-table-full th, .pt-table-full td { min-width: 24px; }
.pt-table thead tr:first-child th { top: 0; z-index: 3; }
.pt-table thead tr:nth-child(2) th { top: 27px; z-index: 2; }
.pt-shape-text { color: var(--tz-text-2); font-size: 10px; white-space: nowrap; }
.pt-odd-hit { background: rgba(77, 163, 255, .16); color: #8cc4ff; }
.pt-tail-hit { background: rgba(255, 180, 77, .16); color: var(--tz-warn); }
.pt-cons-hit { background: rgba(46, 230, 176, .14); color: var(--tz-accent); }
/* 冻结前两列 */
.pt-table td.issue { position: sticky; left: 0; z-index: 1; width: 100px; min-width: 100px; background: var(--tz-surface); }
.pt-table td.num { position: sticky; left: 100px; z-index: 1; width: 96px; min-width: 96px; background: var(--tz-surface); }
.pt-table th.issue { position: sticky; left: 0; z-index: 5; width: 100px; min-width: 100px; background: var(--tz-surface-2); }
.pt-table th.num { position: sticky; left: 100px; z-index: 5; width: 96px; min-width: 96px; background: var(--tz-surface-2); }
/* 星级下拉与模拟选号 */
.pt-star-wrap { position: relative; display: inline-block; }
.pt-stars button i { font-style: normal; font-size: 9px; opacity: .7; margin-left: 2px; }
.pt-series-menu {
  position: absolute; top: 29px; left: 0; z-index: 40;
  min-width: 178px; max-height: 340px; overflow: auto;
  padding: 5px;
  background: var(--tz-surface-2);
  border: 1px solid var(--tz-line-strong);
  border-radius: 8px;
  box-shadow: var(--tz-shadow);
}
.pt-series-menu button {
  display: block; width: 100%; text-align: left;
  height: 28px; padding: 0 10px;
  border: 0; border-radius: 5px;
  background: transparent;
  color: var(--tz-text-2);
  font-size: 12px; white-space: nowrap;
}
.pt-series-menu button:hover { background: var(--tz-surface-3); }
.pt-series-menu button.on { background: var(--tz-accent-soft); color: var(--tz-accent); }
.pt-sim {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 2px;
  cursor: pointer;
  color: var(--tz-faint);
}
.pt-sim:hover { background: rgba(150, 185, 225, .08); color: var(--tz-text-2); }
.pt-sim.on {
  background: var(--tz-accent-soft);
  color: var(--tz-accent);
  box-shadow: inset 0 0 0 1px var(--tz-accent-line);
}
/* 冷热统计 */
.pt-cold-pos { display: none; align-items: center; gap: 6px; }
.pt-toolbar-cold .pt-cold-pos { display: inline-flex; }
.pt-toolbar-cold .pt-stars,
.pt-toolbar-cold #ptMode,
.pt-toolbar-cold #ptOrder,
.pt-toolbar-cold #ptSettings { display: none; }
.pt-cold-pos .pt-label { margin-right: 2px; }
.pt-cold-pos label {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px;
  border: 1px solid var(--tz-line);
  border-radius: 5px;
  background: var(--tz-surface);
  color: var(--tz-text-2);
  font-size: 11.5px;
  cursor: pointer;
  user-select: none;
}
.pt-cold-pos label.on {
  border-color: var(--tz-accent-line);
  background: var(--tz-accent-soft);
  color: var(--tz-accent);
}
.pt-cold-pos input { display: none; }

.pt-cold-bars { border: 1px solid var(--tz-line); border-radius: 10px; background: var(--tz-surface); overflow: hidden; }
.pt-cold-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--tz-line);
}
.pt-cold-row:last-child { border-bottom: 0; }
.pt-cold-num {
  width: 40px; height: 28px;
  border: 1px solid var(--tz-line-strong);
  border-radius: 5px;
  background: var(--tz-surface-2);
  color: var(--tz-text);
  font-family: var(--tz-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.pt-cold-num.on { border-color: var(--tz-accent); background: var(--tz-accent-soft); color: var(--tz-accent); }
.pt-cold-track { flex: 1; height: 16px; border-radius: 3px; background: rgba(255,255,255,.05); overflow: hidden; }
.pt-cold-track span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4da3ff, #6fc0ff); }
.pt-cold-row.hot .pt-cold-track span { background: linear-gradient(90deg, #ff5c7a, #ff8ea0); }
.pt-cold-row.warm .pt-cold-track span { background: linear-gradient(90deg, #ffb44d, #ffd089); }
.pt-cold-row.cold .pt-cold-track span { background: linear-gradient(90deg, #4da3ff, #8cc4ff); }
.pt-cold-count { width: 92px; text-align: right; color: var(--tz-muted); font-size: 11.5px; }
.pt-cold-count b { color: var(--tz-text); font-family: var(--tz-mono); font-size: 13px; }
.pt-cold-row.hot .pt-cold-count b { color: var(--tz-bad); }
.pt-cold-row.warm .pt-cold-count b { color: var(--tz-warn); }
.pt-cold-row.cold .pt-cold-count b { color: var(--tz-info); }

.pt-cold-temp { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pt-cold-temp-row {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--tz-line);
  border-radius: 9px;
  background: var(--tz-surface);
}
.pt-cold-temp-row > span { width: 46px; color: var(--tz-muted); font-size: 11.5px; }
.pt-cold-temp-row b {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  font-family: var(--tz-mono);
  font-size: 12px;
}
.pt-cold-temp-row.hot b { background: var(--tz-bad-soft); color: var(--tz-bad); }
.pt-cold-temp-row.warm b { background: var(--tz-warn-soft); color: var(--tz-warn); }
.pt-cold-temp-row.cold b { background: rgba(77,163,255,.14); color: var(--tz-info); }
/* 冷热统计 · 与源站一致：温度卡在上，次数胶囊 + 号码 + 进度条 */
.pt-cold-temp { display: flex; gap: 10px; margin: 0 0 12px; flex-wrap: wrap; }
.pt-cold-temp-card {
  flex: 1; min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--tz-line);
  border-radius: 10px;
  background: var(--tz-surface);
  text-align: center;
}
.pt-cold-temp-title {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 600;
}
.pt-cold-temp-title i { font-style: normal; font-size: 13px; }
.pt-cold-temp-card.hot .pt-cold-temp-title { color: var(--tz-bad); }
.pt-cold-temp-card.warm .pt-cold-temp-title { color: var(--tz-warn); }
.pt-cold-temp-card.cold .pt-cold-temp-title { color: var(--tz-info); }
.pt-cold-chips { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.pt-cold-chip {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--tz-line-strong);
  background: var(--tz-surface-2);
  font-family: var(--tz-mono);
  font-size: 14px; font-weight: 700;
}
.pt-cold-chip.hot { color: var(--tz-bad); border-color: var(--tz-bad); }
.pt-cold-chip.warm { color: var(--tz-warn); border-color: var(--tz-warn); }
.pt-cold-chip.cold { color: var(--tz-info); border-color: var(--tz-info); }

.pt-cold-bars { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.pt-cold-row { padding: 5px 2px; border-bottom: 0; gap: 12px; }
.pt-cold-pill {
  min-width: 66px; height: 26px;
  padding: 0 8px;
  display: grid; place-items: center;
  border-radius: 4px;
  color: #fff;
  font-family: var(--tz-mono);
  font-size: 12px; font-weight: 700;
}
.pt-cold-row.hot .pt-cold-pill { background: linear-gradient(135deg, #c62828, #e53935); }
.pt-cold-row.warm .pt-cold-pill { background: linear-gradient(135deg, #8d6400, #b8860b); }
.pt-cold-row.cold .pt-cold-pill { background: linear-gradient(135deg, #1e5fa8, #2f6fd0); }
.pt-cold-num {
  width: 28px; height: auto;
  border: 0; border-radius: 0;
  background: transparent;
  color: var(--tz-text);
  font-family: var(--tz-mono);
  font-size: 18px; font-weight: 700;
}
.pt-cold-num.on { color: var(--tz-accent); background: transparent; }
.pt-cold-track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); }
.pt-cold-track span { border-radius: 99px; }
.pt-cold-row.hot .pt-cold-track span { background: linear-gradient(90deg, #c62828, #e53935); }
.pt-cold-row.warm .pt-cold-track span { background: linear-gradient(90deg, #8d6400, #b8860b); }
.pt-cold-row.cold .pt-cold-track span { background: linear-gradient(90deg, #1e5fa8, #2f6fd0); }
/* 冷热号码可选中态 */
.pt-cold-temp-card { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pt-cold-temp-card:hover { border-color: var(--tz-line-strong); }
.pt-cold-chip { cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pt-cold-chip.hot.on { background: var(--tz-bad); border-color: var(--tz-bad); color: #fff; }
.pt-cold-chip.warm.on { background: var(--tz-warn); border-color: var(--tz-warn); color: #1a1200; }
.pt-cold-chip.cold.on { background: var(--tz-info); border-color: var(--tz-info); color: #fff; }
.pt-cold-chip.on { box-shadow: 0 0 0 2px var(--tz-surface), 0 0 0 3px currentColor; }
.pt-cold-num { cursor: pointer; }
.pt-cold-num:hover { color: var(--tz-accent); }
/* 冷热号码与下方数值联动选中 */
.pt-cold-row.picked { background: rgba(46, 230, 176, .055); border-radius: 6px; }
.pt-cold-row.hot.picked .pt-cold-pill { box-shadow: 0 0 0 2px var(--tz-surface), 0 0 0 3px var(--tz-bad); }
.pt-cold-row.warm.picked .pt-cold-pill { box-shadow: 0 0 0 2px var(--tz-surface), 0 0 0 3px var(--tz-warn); }
.pt-cold-row.cold.picked .pt-cold-pill { box-shadow: 0 0 0 2px var(--tz-surface), 0 0 0 3px var(--tz-info); }
.pt-cold-row.picked .pt-cold-track { box-shadow: inset 0 0 0 1px var(--tz-accent-line); }
/* 选中只作用于号码本身，不选中“次数”胶囊 */
.pt-cold-row.picked { background: transparent; }
.pt-cold-row.picked .pt-cold-pill { box-shadow: none; }
.pt-cold-row.picked .pt-cold-track { box-shadow: none; }
.pt-cold-num.on {
  color: var(--tz-accent);
  background: var(--tz-accent-soft);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--tz-accent-line);
}

.pt-cold-row.hot.picked .pt-cold-pill,
.pt-cold-row.warm.picked .pt-cold-pill,
.pt-cold-row.cold.picked .pt-cold-pill { box-shadow: none; }
.pt-cold-row.picked .pt-cold-track { box-shadow: none; }

/* 下方选中号码与上方温度圆点完全一致 */
.pt-cold-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.pt-cold-num.on {
  color: inherit;
  background: transparent;
  box-shadow: none;
}
.pt-cold-row.hot .pt-cold-num.on {
  background: var(--tz-bad);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0 0 2px var(--tz-surface), 0 0 0 3px var(--tz-bad);
}
.pt-cold-row.warm .pt-cold-num.on {
  background: var(--tz-warn);
  border-radius: 50%;
  color: #1a1200;
  box-shadow: 0 0 0 2px var(--tz-surface), 0 0 0 3px var(--tz-warn);
}
.pt-cold-row.cold .pt-cold-num.on {
  background: var(--tz-info);
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 0 0 2px var(--tz-surface), 0 0 0 3px var(--tz-info);
}

/* 遗漏验证 */
.om-wrap { display: flex; flex-direction: column; gap: 12px; }
.om-workspace, .om-detail {
  border: 1px solid var(--tz-line);
  border-radius: 10px;
  background: var(--tz-surface);
  padding: 12px;
}
.om-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.om-tabs { display: flex; gap: 6px; }
.om-tabs button, .om-mode-tabs button, .om-hbtn {
  height: 28px; padding: 0 12px;
  border: 1px solid var(--tz-line);
  border-radius: 6px;
  background: var(--tz-surface-2);
  color: var(--tz-text-2);
  font-size: 12px;
}
.om-tabs button.on, .om-mode-tabs button.on, .om-hbtn.on {
  border-color: var(--tz-accent-line);
  background: var(--tz-accent-soft);
  color: var(--tz-accent);
  font-weight: 600;
}
.om-content { display: flex; gap: 14px; align-items: stretch; }
.om-controls { flex: 1.5; min-width: 0; }
.om-report { flex: 1; min-width: 260px; border-left: 1px solid var(--tz-line); padding-left: 14px; }
.om-heading { font-size: 12px; color: var(--tz-muted); margin-bottom: 8px; }
.om-positions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.om-pos {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 12px;
  border: 1px solid var(--tz-line);
  border-radius: 6px;
  background: var(--tz-surface-2);
  color: var(--tz-text-2);
  font-size: 12px;
  cursor: pointer;
}
.om-pos.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); }
.om-pos input { display: none; }
.om-mode-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.om-editor { border: 1px solid var(--tz-line); border-radius: 8px; padding: 10px; }
.om-editor-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--tz-muted); margin-bottom: 7px; }
.om-text-action { border: 0; background: transparent; color: var(--tz-accent); font-size: 12px; }
.om-textarea {
  width: 100%; height: 108px; resize: vertical;
  padding: 9px 10px;
  border: 1px solid var(--tz-line);
  border-radius: 7px;
  background: var(--tz-surface-2);
  color: var(--tz-text);
  font-size: 12px; line-height: 1.7;
  outline: none;
}
.om-textarea:focus { border-color: var(--tz-accent-line); }
.om-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.om-btn {
  height: 28px; padding: 0 12px;
  border: 1px solid var(--tz-line-strong);
  border-radius: 6px;
  background: var(--tz-surface-2);
  color: var(--tz-text-2);
  font-size: 12px;
}
.om-btn:hover { border-color: var(--tz-accent-line); color: var(--tz-accent); }
.om-btn.primary { background: linear-gradient(135deg, #4df0c1, #16c99a); border-color: transparent; color: #04150f; font-weight: 700; }
.om-random-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.om-random-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--tz-muted); }
.om-random-fields input, .om-history-row input {
  height: 28px; width: 110px; padding: 0 9px;
  border: 1px solid var(--tz-line);
  border-radius: 6px;
  background: var(--tz-surface-2);
  color: var(--tz-text);
  font-size: 12px;
}
.om-history-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 9px; }
.om-history-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 12px; color: var(--tz-muted); }
.om-history-row input { width: 70px; text-align: center; }
.om-report-title, .om-detail-title { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.om-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.om-metric {
  border: 1px solid var(--tz-line);
  border-radius: 7px;
  background: var(--tz-surface-2);
  padding: 8px 10px;
}
.om-metric span { display: block; font-size: 10.5px; color: var(--tz-muted); }
.om-metric b { display: block; margin-top: 3px; font-family: var(--tz-mono); font-size: 14px; color: var(--tz-text); }
.om-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.om-table th, .om-table td { padding: 6px 10px; border-bottom: 1px solid var(--tz-line); text-align: left; }
.om-table th { color: var(--tz-muted); font-weight: 500; background: var(--tz-surface-2); }
.om-table td { color: var(--tz-text-2); }
.om-state { display: inline-block; min-width: 40px; padding: 1px 7px; border-radius: 3px; font-size: 10.5px; text-align: center; }
.om-state.win { background: var(--tz-accent-soft); color: var(--tz-accent); }
.om-state.miss { background: rgba(150, 185, 225, .08); color: var(--tz-muted); }
.om-empty { padding: 40px 0; text-align: center; color: var(--tz-muted); font-size: 12px; }
@media (max-width: 1100px) {
  .om-content { flex-direction: column; }
  .om-report { border-left: 0; border-top: 1px solid var(--tz-line); padding-left: 0; padding-top: 12px; }
}

/* 遗漏验证：验证结果固定在右侧 */
.om-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 12px;
  align-items: start;
}
.om-detail {
  position: sticky;
  top: 0;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding: 10px 9px;
}
.om-detail-title { font-size: 12.5px; margin-bottom: 8px; }
.om-table th, .om-table td { padding: 5px 4px; font-size: 10.5px; white-space: nowrap; }
@media (max-width: 1180px) {
  .om-wrap { grid-template-columns: 1fr; }
  .om-detail { position: static; max-height: none; }
}

.om-wrap { align-items: stretch; }
.om-detail { min-height: 360px; }


/* 数字输入框不显示上下加减箭头（手动输入） */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* 遗漏验证期数：可手打输入框 */
.pt-stepper input#omNum {
  width: 52px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--tz-text);
  text-align: center;
  font-family: var(--tz-mono);
  font-size: 12px;
  outline: none;
}
.om-history-row input, .om-random-fields input { text-align: center; }

/* 遗漏验证：报告在设置下方（与源站一致），输入框按源站尺寸 */
.om-content { display: block; }
.om-report {
  border-left: 0;
  border-top: 1px solid var(--tz-line);
  padding-left: 0;
  padding-top: 12px;
  margin-top: 12px;
  min-width: 0;
}
.om-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.om-textarea { max-width: 589px; height: 96px; }
.om-random-fields input[data-ominput="seed"] { width: 102px; }
.om-random-fields input[data-ominput="count"] { width: 54px; }
.om-history-row input { width: 60px; }
.om-random-fields { align-items: flex-end; }

.pt-stepper input#omNum { width: 60px; height: 26px; }


/* 波动预测 */
.wv-wrap { display: flex; flex-direction: column; gap: 12px; }
.wv-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--tz-muted); }
.wv-bits { display: flex; gap: 5px; }
.wv-bit {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 26px; padding: 0 10px;
  border: 1px solid var(--tz-line);
  border-radius: 5px;
  background: var(--tz-surface);
  color: var(--tz-text-2);
  font-size: 11.5px;
  cursor: pointer;
}
.wv-bit input { display: none; }
.wv-bit.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); }
.wv-body { display: grid; grid-template-columns: minmax(0, 1fr) 252px; gap: 12px; align-items: start; }
.wv-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wv-chart-card { border: 1px solid var(--tz-line); border-radius: 10px; background: var(--tz-surface); padding: 10px 12px; }
.wv-chart-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--tz-muted); margin-bottom: 6px; flex-wrap: wrap; }
.wv-chart-head strong { color: var(--tz-text); font-size: 13px; }
.wv-chart-head .wv-count { margin-left: auto; font-family: var(--tz-mono); }
.wv-chart-head .wv-latest b.up { color: var(--tz-bad); }
.wv-chart-head .wv-latest b.down { color: var(--tz-accent); }
.wv-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 0 10px; }
.wv-legend i.up { background: var(--tz-bad); }
.wv-legend i.down { background: var(--tz-accent); }
.wv-svg { width: 100%; height: 230px; display: block; }
.wv-bottom { display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px; }
.wv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wv-stat { border: 1px solid var(--tz-line); border-radius: 8px; background: var(--tz-surface); padding: 8px 10px; }
.wv-stat span { display: block; font-size: 10.5px; color: var(--tz-muted); }
.wv-stat b { display: inline-block; margin-top: 3px; font-family: var(--tz-mono); font-size: 18px; color: var(--tz-text); }
.wv-stat b.up { color: var(--tz-bad); }
.wv-stat b.down { color: var(--tz-accent); }
.wv-stat small { margin-left: 3px; color: var(--tz-muted); font-size: 10px; }
.wv-calc { border: 1px solid var(--tz-line); border-radius: 8px; background: var(--tz-surface); padding: 10px; }
.wv-calc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12.5px; }
.wv-calc-row { display: flex; gap: 10px; margin-bottom: 8px; }
.wv-calc-row label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tz-muted); }
.wv-calc-row input {
  width: 66px; height: 26px; padding: 0 8px;
  border: 1px solid var(--tz-line); border-radius: 5px;
  background: var(--tz-surface-2); color: var(--tz-text); text-align: center;
  font-family: var(--tz-mono); font-size: 12px; outline: none;
}
.wv-preview-label { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--tz-muted); }
.wv-preview-label textarea {
  height: 66px; resize: none; padding: 7px 9px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); color: var(--tz-text);
  font-family: var(--tz-mono); font-size: 11.5px; line-height: 1.7; outline: none;
}
.wv-records { border: 1px solid var(--tz-line); border-radius: 10px; background: var(--tz-surface); padding: 10px; max-height: 560px; overflow: auto; }
.wv-records-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; }
.wv-records-head strong { font-size: 12.5px; }
.wv-records-head span { color: var(--tz-muted); font-size: 10.5px; }
.wv-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.wv-table th, .wv-table td { padding: 4px 5px; border-bottom: 1px solid var(--tz-line); text-align: left; white-space: nowrap; }
.wv-table th { color: var(--tz-muted); font-weight: 500; background: var(--tz-surface-2); position: sticky; top: 0; }
.wv-table td { color: var(--tz-text-2); }
.wv-state { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 10px; }
.wv-state.win { background: var(--tz-accent-soft); color: var(--tz-accent); }
.wv-state.miss { background: rgba(150,185,225,.08); color: var(--tz-muted); }
.wv-empty { padding: 50px 0; text-align: center; color: var(--tz-muted); font-size: 12px; }
@media (max-width: 1180px) {
  .wv-body { grid-template-columns: 1fr; }
  .wv-records { max-height: 420px; }
}

/* 波动预测：图表导航与颜色 */
.wv-legend i.flat { background: #8b95a3; }
.wv-nav { display: flex; align-items: center; gap: 6px; margin: 2px 0 6px; }
.wv-nav .om-btn { height: 24px; padding: 0 10px; font-size: 11px; }
.wv-range { margin-left: 6px; color: var(--tz-muted); font-size: 10.5px; font-family: var(--tz-mono); }
.wv-chart-head .wv-pos { color: var(--tz-text-2); }
.wv-chart-head .wv-latest b.up { color: #d9534f; }
.wv-chart-head .wv-latest b.down { color: #2f9e6d; }
.wv-stat b.up { color: #d9534f; }
.wv-stat b.down { color: #2f9e6d; }

.wv-echart { width: 100%; height: 300px; }


/* 波动预测：分页/缩放/滚动条 */
.wv-nav { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; flex-wrap: wrap; }
.wv-page { display: flex; align-items: center; gap: 8px; }
.wv-arrow { width: 26px; padding: 0 !important; font-size: 15px; line-height: 1; }
.wv-zoom { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.wv-winsize { color: var(--tz-muted); font-size: 10.5px; font-family: var(--tz-mono); min-width: 46px; text-align: center; }
.wv-range-input {
  width: 100%;
  height: 20px;
  margin: 2px 0 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.wv-range-input::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: rgba(150,185,225,.16); }
.wv-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--tz-accent);
  border: 2px solid var(--tz-surface);
  box-shadow: 0 0 6px var(--tz-accent-line);
}
.wv-range-input:disabled { opacity: .35; }
.wv-note { color: var(--tz-muted); font-size: 10px; margin-top: 3px; }

.pt-stepper input#wvNum { width: 62px; height: 24px; border: 0; background: transparent; color: var(--tz-text); text-align: center; font-family: var(--tz-mono); font-size: 12px; outline: none; }


.pt-toolbar.pt-toolbar-hidden { display: none; }


.wv-betcount { font-style: normal; font-size: 10.5px; color: var(--tz-accent); margin-left: 6px; }


/* 简易趋势 */
.st-wrap { display: flex; flex-direction: column; gap: 10px; }
.st-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--tz-muted); }
.st-modes { display: flex; gap: 4px; overflow-x: auto; max-width: 560px; padding-bottom: 2px; }
.st-mode {
  height: 24px; padding: 0 9px;
  border: 1px solid var(--tz-line);
  border-radius: 5px;
  background: var(--tz-surface);
  color: var(--tz-text-2);
  font-size: 11px;
  white-space: nowrap;
}
.st-mode.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); }
.st-mock { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.st-mockcount { color: var(--tz-muted); font-size: 11px; }
.st-number { border: 1px solid var(--tz-line); border-radius: 9px; background: var(--tz-surface); padding: 8px 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-tabs { display: flex; gap: 5px; }
.st-tab { height: 26px; padding: 0 10px; border: 1px solid var(--tz-line); border-radius: 5px; background: var(--tz-surface-2); color: var(--tz-text-2); font-size: 11.5px; }
.st-tab.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.st-number-body { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.st-digits { display: flex; gap: 4px; flex-wrap: wrap; }
.st-digit { width: 26px; height: 26px; border: 1px solid var(--tz-line); border-radius: 5px; background: var(--tz-surface-2); color: var(--tz-text-2); font-family: var(--tz-mono); font-size: 12px; }
.st-digit.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 700; }
.st-input-block { flex: 1; min-width: 260px; }
.st-ta { height: 46px !important; }
.st-random-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11.5px; color: var(--tz-muted); }
.st-random-row input { width: 64px; height: 26px; padding: 0 8px; border: 1px solid var(--tz-line); border-radius: 5px; background: var(--tz-surface-2); color: var(--tz-text); text-align: center; }
.st-same { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--tz-muted); cursor: pointer; }
.st-display { border: 1px solid var(--tz-line); border-radius: 10px; background: var(--tz-surface); padding: 8px 10px; }
.st-indicators { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.st-ind { height: 22px; padding: 0 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--tz-muted); font-size: 10.5px; font-family: var(--tz-mono); }
.st-ind:hover { color: var(--tz-text-2); background: rgba(150,185,225,.06); }
.st-ind.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); }
.st-chart { width: 100%; height: 360px; }
.st-footer { display: flex; align-items: center; gap: 18px; padding: 6px 10px; border: 1px solid var(--tz-line); border-radius: 8px; background: var(--tz-surface); font-size: 11.5px; color: var(--tz-muted); flex-wrap: wrap; }
.st-footer b { color: var(--tz-text); font-family: var(--tz-mono); font-weight: 600; }
.st-range { margin-left: auto; font-family: var(--tz-mono); }

/* 简易趋势：按源站尺寸收紧 */
.st-wrap .pt-stepper { width: 112px; height: 30px; }
.st-wrap .pt-stepper input#stNum {
  width: 58px; height: 28px;
  border: 0; background: transparent;
  color: var(--tz-text); text-align: center;
  font-family: var(--tz-mono); font-size: 12px; outline: none;
}
.st-toolbar { flex-wrap: nowrap; overflow-x: auto; }
.st-modes { max-width: none; }
.st-number { min-height: 47px; flex-wrap: nowrap; overflow-x: auto; }
.st-number-body { flex-wrap: nowrap; }
.st-chart { height: 520px; }
.st-footer { min-height: 28px; }

/* 简易趋势：指标参数设置弹窗 */
.st-dlg-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .38); z-index: 80; }
.st-dlg {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 566px; max-width: calc(100vw - 32px); height: 364px;
  z-index: 81;
  display: flex; flex-direction: column;
  background: var(--tz-surface-2);
  border: 1px solid var(--tz-line-strong);
  border-radius: 10px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.9);
}
.st-dlg header { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--tz-line); }
.st-dlg header strong { font-size: 13px; }
.st-dlg-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 7px 12px; border-bottom: 1px solid var(--tz-line); max-height: 66px; overflow: auto; }
.st-dlg-tab { height: 22px; padding: 0 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--tz-muted); font-size: 10.5px; font-family: var(--tz-mono); }
.st-dlg-tab.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); }
.st-dlg-tab:hover { color: var(--tz-text-2); }
.st-dlg-body { flex: 1; overflow: auto; padding: 10px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; align-content: start; }
.st-ma-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--tz-text-2); }
.st-ma-row label { display: flex; align-items: center; gap: 5px; width: 62px; }
.st-ma-row input[type=color] { width: 26px; height: 22px; padding: 0; border: 1px solid var(--tz-line); border-radius: 3px; background: transparent; }
.st-ma-row input[type=number] { width: 62px; height: 22px; padding: 0 6px; border: 1px solid var(--tz-line); border-radius: 4px; background: var(--tz-surface); color: var(--tz-text); font-size: 11.5px; text-align: center; }
.st-dlg-empty { grid-column: 1 / -1; padding: 50px 0; text-align: center; color: var(--tz-muted); font-size: 12px; }
.st-dlg footer { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--tz-line); }

/* 立体玻璃按钮（对齐源站） */
.om-btn, .st-ind, .st-mode, .st-tab, .st-digit, .st-dlg-tab, .pt-stepper, .st-dlg-close {
  background: linear-gradient(180deg, #1b2532 0%, #0f1720 100%);
  border: 1px solid rgba(150, 185, 225, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 2px 4px -2px rgba(0, 0, 0, .85);
}
.om-btn:hover, .st-ind:hover, .st-mode:hover, .st-tab:hover, .st-digit:hover, .st-dlg-tab:hover, .st-dlg-close:hover {
  background: linear-gradient(180deg, #23303f 0%, #131c26 100%);
}
.om-btn:active, .st-ind:active, .st-mode:active, .st-tab:active, .st-digit:active, .st-dlg-tab:active, .st-dlg-close:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .55);
  transform: translateY(1px);
}
.om-btn.primary {
  background: linear-gradient(180deg, #4df0c1 0%, #16c99a 100%);
  border-color: #1bd2a1;
  color: #04150f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 8px -3px rgba(22, 201, 154, .55);
}
.st-mode.on, .st-tab.on, .st-digit.on, .st-dlg-tab.on {
  background: linear-gradient(180deg, rgba(46, 230, 176, .22), rgba(46, 230, 176, .10));
  border-color: var(--tz-accent-line);
  color: var(--tz-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 5px -2px rgba(0, 0, 0, .8);
}
.st-ind.on {
  background: linear-gradient(180deg, rgba(46, 230, 176, .18), rgba(46, 230, 176, .08));
  border-color: var(--tz-accent-line);
  color: var(--tz-accent);
}

/* 参数设置弹窗：左侧指标网格 + 右侧参数 */
.st-dlg { overflow: hidden; }
.st-dlg-main { flex: 1; display: flex; min-height: 0; }
.st-dlg-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 192px;
  padding: 10px;
  border-right: 1px solid var(--tz-line);
  border-bottom: 0;
  max-height: none;
  align-content: start;
  overflow: auto;
}
.st-dlg-tab { height: 32px; border-radius: 6px; font-size: 11px; }
.st-dlg-body { flex: 1; display: block; padding: 12px 16px; }
.st-ma-row { margin-bottom: 11px; gap: 10px; }
.st-ma-row label { width: 74px; }
.st-ma-row input[type=color] { width: 34px; height: 26px; border-radius: 4px; }
.st-ma-row input[type=number] {
  flex: 1;
  width: auto;
  height: 26px;
  background: linear-gradient(180deg, #0d141c, #131c26);
  border: 1px solid rgba(150, 185, 225, .2);
  box-shadow: inset 0 2px 4px -1px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .05);
}
.st-dlg-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--tz-text-2);
  font-size: 16px;
}
.st-dlg footer .om-btn { height: 30px; padding: 0 16px; }

/* 简易趋势：图表高度自适应，避免整页出现竖向滚动条 */
.st-chart { height: calc(100vh - 470px); min-height: 260px; max-height: 560px; }


.st-chart { height: calc(100vh - 476px); }
.pt-table-wrap { max-height: calc(100vh - 272px); }


.st-dlg-tabs { gap: 5px; padding: 8px; overflow: hidden; }
.st-dlg-tab { height: 26px; font-size: 10.5px; }


.st-pos { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 1px solid rgba(150,185,225,.22); border-radius: 5px; background: linear-gradient(180deg,#1b2532,#0f1720); color: var(--tz-text-2); font-size: 11px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 4px -2px rgba(0,0,0,.85); }
.st-pos input { display: none; }
.st-pos.on { border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.22), rgba(46,230,176,.10)); color: var(--tz-accent); font-weight: 600; }


/* 简易趋势：单参数行（SMA/MACD/BBI 等） */
.st-param-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; font-size: 12px; color: var(--tz-text-2); }
.st-param-row input[type=number] { width: 132px; height: 26px; padding: 0 8px; text-align: center; color: var(--tz-text); font-size: 11.5px; border-radius: 4px; border: 1px solid rgba(150,185,225,.2); background: linear-gradient(180deg,#0d141c,#131c26); box-shadow: inset 0 2px 4px -1px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.05); }
.st-param-row input[type=checkbox] { width: 16px; height: 16px; accent-color: #2ee6b0; }


/* 单参数行：与源站一致的 242px + 88px 栅格 */
.st-param-row { display: grid; grid-template-columns: 1fr 88px; align-items: center; height: 37px; gap: 0; font-size: 13px; color: var(--tz-text-2); }
.st-param-row input[type=number] { width: 88px; height: 28px; padding: 0 8px; text-align: left; font-size: 12px; border-radius: 4px; }
.st-param-row input[type=checkbox] { width: 13px; height: 13px; justify-self: start; }


/* MACD 阴柱/阳柱颜色行 */
.st-ind-colors { display: flex; align-items: center; gap: 18px; height: 37px; font-size: 13px; color: var(--tz-text-2); }
.st-ind-colors label { display: inline-flex; align-items: center; gap: 8px; }
.st-ind-colors input[type=color] { width: 40px; height: 26px; padding: 0; border: 1px solid rgba(150,185,225,.2); border-radius: 4px; background: transparent; }


/* 统计位置按钮：勾选标记 */
button.st-pos { font-family: inherit; }
.st-pos-tick { display: inline-block; width: 9px; margin-right: 3px; font-size: 10px; line-height: 1; text-align: center; }
.st-pos.on .st-pos-tick { color: var(--tz-accent); }


/* 自适应：控件不换行折叠，窄屏时区域内横向滚动（对齐源站） */
.st-indicators { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; gap: 4px; padding: 2px 2px 4px; }
.st-indicators .st-ind { flex: 0 0 auto; }
.st-digits { flex-wrap: nowrap; }
.st-number-body { overflow-x: auto; scrollbar-width: thin; }
.st-modes { flex-wrap: nowrap; }
.st-toolbar { min-width: 0; }
.st-footer { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.st-chart { height: calc(100vh - 476px); min-height: 300px; max-height: none; }


.pt-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.st-tabs .st-tab, .st-digits .st-digit, .st-modes .st-pos, .st-toolbar .om-btn, .st-mock .om-btn { flex: 0 0 auto; white-space: nowrap; }

/* 统计位置：完全按源站样式（圆点 + 金色选中） */
.st-modes.position-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  overflow: visible;
  padding: 0;
}
.st-pos-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  font-size: 12px;
  color: #b7b7b7;
  white-space: nowrap;
}
.st-pos-caption svg { flex: none; }
.st-modes .st-pos {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  color: #b7b7b7;
  border: 1px solid rgba(255, 255, 255, .094);
  background: radial-gradient(at 18% 0%, rgba(255, 255, 255, .055), rgba(0, 0, 0, 0) 68%),
    linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035) 58%, rgba(0, 0, 0, .2));
  box-shadow: rgba(255, 255, 255, .133) .5px 1px 1px 0 inset, rgba(0, 0, 0, .4) -1px -1px 1px 0 inset, rgba(0, 0, 0, .5) 0 2px 3px -1px;
}
.st-modes .st-pos input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.st-modes .st-pos .position-check {
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid #b7b7b7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9b651a;
}
.st-modes .st-pos.selected {
  color: #f6deb0;
  border-color: rgba(255, 255, 255, .08);
  background: linear-gradient(155deg, rgba(0, 0, 0, .48), rgba(0, 0, 0, .25) 56%, rgba(255, 255, 255, .05));
  box-shadow: rgba(0, 0, 0, .65) 1px 2px 3px -1px inset, rgba(255, 255, 255, .05) -1px -1px 2px 0 inset;
}
.st-modes .st-pos.selected .position-check { border-color: #9b651a; }
.st-modes .st-pos.selected .position-check svg { display: block; }
/* 统一各分析页的位置选择按钮：与简易趋势一致（圆点 + 金色选中） */
.pos-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  margin-right: 2px;
  font-size: 12px;
  color: #b7b7b7;
  white-space: nowrap;
}
.pos-caption svg { flex: none; }

.wv-bits,
.om-positions {
  flex-wrap: wrap;
  gap: 5px;
}

.wv-bit,
.om-pos,
.pt-cold-pos label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 13px;
  color: #b7b7b7;
  border: 1px solid rgba(255, 255, 255, .094);
  background: radial-gradient(at 18% 0%, rgba(255, 255, 255, .055), rgba(0, 0, 0, 0) 68%),
    linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035) 58%, rgba(0, 0, 0, .2));
  box-shadow: rgba(255, 255, 255, .133) .5px 1px 1px 0 inset, rgba(0, 0, 0, .4) -1px -1px 1px 0 inset, rgba(0, 0, 0, .5) 0 2px 3px -1px;
}
.wv-bit::before,
.om-pos::before,
.pt-cold-pos label::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #b7b7b7;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

.wv-bit.on,
.om-pos.on,
.pt-cold-pos label.on {
  color: #f6deb0;
  border-color: rgba(255, 255, 255, .08);
  background: linear-gradient(155deg, rgba(0, 0, 0, .48), rgba(0, 0, 0, .25) 56%, rgba(255, 255, 255, .05));
  box-shadow: rgba(0, 0, 0, .65) 1px 2px 3px -1px inset, rgba(255, 255, 255, .05) -1px -1px 2px 0 inset;
}
.wv-bit.on::before,
.om-pos.on::before,
.pt-cold-pos label.on::before {
  content: "\2713";
  color: #f6deb0;
  border-color: #9b651a;
}
/* 导入号码 / 随机出胆 面板（对齐源站） */
.st-panel { display: flex; gap: 8px; flex: 1; min-width: 0; align-items: flex-start; }
.st-panel .st-ta { flex: 1; min-width: 0; height: 68px; }
.st-panel-actions { display: grid; gap: 6px; align-content: start; }
.st-panel-actions .om-btn {
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 12px;
}
.st-panel-actions .om-btn svg { flex: none; }
.st-random-actions { grid-template-columns: auto auto; }
.st-random-actions label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--tz-muted);
  font-size: 12px;
}
.st-random-actions input {
  width: 70px;
  height: 30px;
  padding: 0 6px;
  text-align: center;
  color: var(--tz-text);
  font-size: 12px;
  border: 1px solid var(--tz-line);
  border-radius: 6px;
  background: var(--tz-surface);
}
.st-feedback { margin: 0; flex-basis: 100%; font-size: 12px; color: #e08b73; }

.st-panel .st-ta { height: 68px !important; }


/* 走势图表：下拉菜单脱离工具栏裁剪 + 底部统计/模拟选号固定 */
.pt-series-menu { position: fixed; top: auto; left: auto; }
.pt-table tfoot { position: sticky; bottom: 0; z-index: 6; }
.pt-table tfoot td { background: var(--tz-surface-2); box-shadow: inset 0 1px 0 var(--tz-line); }


/* 显示设置浮层：脱离工具栏裁剪，显示在最上层 */
.pt-settings { position: fixed; right: auto; top: auto; z-index: 60; }

/* 数据监控（按源站结构） */
.mon-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.mon-period-label { font-size: 12px; color: var(--tz-muted); white-space: nowrap; }
.mon-stepper { width: 132px; height: 30px; }
.mon-stepper input { width: 62px; text-align: center; background: transparent; border: 0; color: var(--tz-text); font-size: 12px; font-family: var(--tz-mono); }
.mon-actions { margin-left: auto; display: flex; gap: 8px; flex: none; }
.mon-results { border: 1px solid var(--tz-line); border-radius: 10px; background: var(--tz-surface); overflow: hidden; }
.mon-heading { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--tz-line); font-size: 12.5px; color: var(--tz-text); }
.mon-heading strong { font-weight: 600; }
.mon-count { color: var(--tz-muted); font-size: 11px; font-family: var(--tz-mono); }
.mon-alert-count { margin-left: auto; color: #f0b56a; font-size: 11px; }
.mon-table { overflow: auto; max-height: calc(100vh - 330px); }
.mon-records { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.mon-records th { position: sticky; top: 0; z-index: 1; background: var(--tz-surface-2); color: var(--tz-muted); font-weight: 500; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--tz-line); white-space: nowrap; }
.mon-records td { padding: 7px 10px; border-bottom: 1px solid var(--tz-line); color: var(--tz-text-2); }
.mon-records tr:last-child td { border-bottom: 0; }
.mon-records tr.mon-even td { background: rgba(255,255,255,.015); }
.mon-name-cell { display: flex; align-items: center; gap: 6px; }
.mon-gear { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--tz-muted); cursor: pointer; border-radius: 4px; font-size: 13px; padding: 0; }
.mon-gear:hover { border-color: var(--tz-line); color: var(--tz-text); }
.mon-name { color: var(--tz-text); font-size: 12.5px; }
.mon-state { display: inline-block; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.05); color: var(--tz-text-2); font-size: 11.5px; white-space: nowrap; }
.mon-state.missing { color: #ffb08a; background: rgba(255,120,70,.12); }
.mon-state.hitting { color: #8fe0b0; background: rgba(46,230,176,.12); }
.mon-field { display: inline-flex; align-items: center; gap: 4px; }
.mon-field input { width: 50px; height: 26px; padding: 0 4px; text-align: center; background: linear-gradient(180deg, #0d141c, #131c26); border: 1px solid rgba(150,185,225,.2); border-radius: 4px; color: var(--tz-text); font-size: 11.5px; }
.mon-field span { color: var(--tz-muted); font-size: 11px; }
button.mon-road { height: 24px; padding: 0 9px; border-radius: 4px; border: 1px solid var(--tz-line); background: var(--tz-surface-2); color: var(--tz-muted); font-size: 11.5px; cursor: pointer; white-space: nowrap; }
button.mon-road.on { color: #f6deb0; border-color: #9b651a; background: rgba(155,101,26,.12); }
.mon-hist { color: var(--tz-muted); font-family: var(--tz-mono); }
.mon-empty td { text-align: center; color: var(--tz-muted); padding: 26px 10px; }

.mon-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70; }
.mon-dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 71; background: var(--tz-surface-2); border: 1px solid var(--tz-line-strong); border-radius: 10px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); display: flex; flex-direction: column; max-height: calc(100vh - 60px); }
.mon-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--tz-line); font-size: 13px; color: var(--tz-text); }
.mon-x { width: 26px; height: 26px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--tz-muted); cursor: pointer; font-size: 15px; padding: 0; }
.mon-x:hover { border-color: var(--tz-line); color: var(--tz-text); }
.mon-quick { width: 877px; height: 522px; max-width: calc(100vw - 40px); }
.mon-quick-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--tz-line); font-size: 12px; color: var(--tz-muted); }
.mon-quick-toolbar select, .mon-fields select { height: 26px; background: var(--tz-surface); border: 1px solid var(--tz-line); border-radius: 4px; color: var(--tz-text); font-size: 12px; padding: 0 6px; }
.mon-link { border: 0; background: transparent; color: var(--tz-accent); font-size: 11.5px; cursor: pointer; padding: 0 4px; }
.mon-checks { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(var(--mon-cols, 5), minmax(0, 1fr)); gap: 6px; padding: 12px 14px; align-content: start; scrollbar-width: thin; }
.mon-check { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px; border: 1px solid var(--tz-line); border-radius: 5px; background: var(--tz-surface); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer; white-space: nowrap; overflow: hidden; }
.mon-check input { display: none; }
.mon-check-mark { width: 13px; height: 13px; border: 1px solid var(--tz-muted); border-radius: 50%; display: grid; place-items: center; font-size: 9px; line-height: 1; flex: none; }
.mon-check.selected { border-color: var(--tz-accent-line); background: rgba(46,230,176,.10); color: var(--tz-text); }
.mon-check.selected .mon-check-mark { border-color: var(--tz-accent); color: var(--tz-accent); }
.mon-quick footer { padding: 9px 14px; border-top: 1px solid var(--tz-line); text-align: right; }
.mon-custom { width: 380px; }
.mon-fields { display: grid; gap: 12px; padding: 14px; font-size: 12px; color: var(--tz-muted); }
.mon-fields label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mon-fields p { margin: 0; color: var(--tz-muted); font-size: 12px; }
.mon-fields .om-btn { justify-self: start; }
.mon-message { width: 320px; }
.mon-message p { margin: 0; padding: 18px 16px; font-size: 12.5px; color: var(--tz-text); }
.mon-message footer { padding: 0 14px 12px; text-align: right; }
.mon-road-dialog { width: 360px; }
.mon-road-body { padding: 12px 14px; display: grid; gap: 10px; }
.mon-road-body textarea { width: 100%; height: 64px; resize: none; background: var(--tz-surface); border: 1px solid var(--tz-line); border-radius: 6px; color: var(--tz-text); font-size: 13px; padding: 8px 10px; }
.mon-road-shortcuts { display: flex; gap: 8px; }
.mon-menu { position: fixed; z-index: 80; width: 180px; background: var(--tz-surface-2); border: 1px solid var(--tz-line-strong); border-radius: 8px; box-shadow: var(--tz-shadow); padding: 5px; }
.mon-menu-title { padding: 5px 8px 7px; color: var(--tz-muted); font-size: 11px; border-bottom: 1px solid var(--tz-line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-menu button { display: block; width: 100%; text-align: left; height: 28px; border: 0; border-radius: 5px; background: transparent; color: var(--tz-text-2); font-size: 12px; cursor: pointer; padding: 0 8px; }
.mon-menu button:hover { background: var(--tz-surface-3); }

.mon-notice { position: fixed; right: 20px; top: 70px; z-index: 60; width: 360px; background: var(--tz-surface-2); border: 1px solid var(--tz-line-strong); border-radius: 10px; box-shadow: 0 18px 50px -18px rgba(0,0,0,.9); overflow: hidden; }
.mon-notice header { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--tz-line); font-size: 12.5px; }
.mon-notice header button { border: 0; background: transparent; color: var(--tz-muted); cursor: pointer; font-size: 12px; padding: 2px 6px; }
.mon-notice-table { max-height: 240px; overflow: auto; }
.mon-notice-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
.mon-notice-table th { text-align: left; padding: 6px 10px; color: var(--tz-muted); font-weight: 500; background: var(--tz-surface); }
.mon-notice-table td { padding: 6px 10px; border-top: 1px solid var(--tz-line); color: var(--tz-text-2); }
.mon-notice-state.missing { color: #ffb08a; }
.mon-notice-state.hitting { color: #8fe0b0; }
.mon-missing-rule { color: #ffb08a; }

.mon-gear svg { display:block; }
.mon-notice header span { display:inline-flex; align-items:center; gap:6px; }


.mon-period-feedback { margin: -4px 0 8px; font-size: 11.5px; color: #e0b36a; }


/* 监控达标提醒固定在右下角 */
.mon-notice { top: auto; bottom: 20px; }


.mon-import { display: grid; justify-items: center; gap: 10px; padding: 12px 0 2px; border-top: 1px solid var(--tz-line); }
.mon-import p { margin: 0; text-align: center; color: var(--tz-muted); font-size: 12px; }
.mon-import .om-btn { min-width: 112px; justify-content: center; }


.mon-fields .mon-import .om-btn { justify-self: center; }

/* 好路天眼 */
.rd-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.rd-period-label { font-size: 12px; color: var(--tz-muted); white-space: nowrap; }
.rd-stepper { width: 132px; height: 30px; }
.rd-stepper input { width: 64px; text-align: center; background: transparent; border: 0; color: var(--tz-text); font-size: 12px; font-family: var(--tz-mono); }
.rd-positions { flex: 1; min-width: 0; }
.rd-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr) 300px; gap: 10px; height: calc(100vh - 330px); min-height: 380px; }
.rd-panel { border: 1px solid var(--tz-line); border-radius: 10px; background: var(--tz-surface); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.rd-panel-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--tz-line); flex: none; }
.rd-panel-head h3 { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--tz-text); }
.rd-count { margin-left: auto; color: var(--tz-muted); font-size: 11px; font-family: var(--tz-mono); }
.rd-params { overflow: auto; scrollbar-width: thin; }
.rd-codes { padding: 8px 10px; }
.rd-codes-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; color: var(--tz-muted); font-size: 11.5px; }
.rd-codes-actions { display: flex; gap: 4px; }
.rd-mini { height: 22px; padding: 0 8px; border: 1px solid var(--tz-line); border-radius: 4px; background: var(--tz-surface-2); color: var(--tz-text-2); font-size: 11px; cursor: pointer; white-space: nowrap; }
.rd-mini:hover { border-color: var(--tz-accent-line); color: var(--tz-accent); }
.rd-codes textarea { width: 100%; height: 92px; resize: vertical; background: var(--tz-surface); border: 1px solid var(--tz-line); border-radius: 6px; color: var(--tz-text); font-size: 12px; padding: 7px 8px; line-height: 1.5; }
.rd-message { margin: 4px 0 0; color: #e0b36a; font-size: 11.5px; }
.rd-fieldset { border: 1px solid var(--tz-line); border-radius: 8px; margin: 0 10px 8px; padding: 8px; min-width: 0; }
.rd-fieldset legend { padding: 0 4px; color: var(--tz-muted); font-size: 11.5px; }
.rd-filters { display: flex; gap: 6px; margin-bottom: 8px; }
.rd-choice { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; height: 28px; border: 1px solid var(--tz-line); border-radius: 5px; background: var(--tz-surface-2); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer; user-select: none; }
.rd-choice input { display: none; }
.rd-choice.chosen { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.rd-cond { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--tz-muted); flex-wrap: wrap; }
.rd-cond select, .rd-cond input { height: 26px; border: 1px solid var(--tz-line); border-radius: 4px; background: var(--tz-surface); color: var(--tz-text); font-size: 11.5px; }
.rd-cond select { width: 62px; padding: 0 4px; }
.rd-cond input { width: 58px; text-align: center; }
.rd-pattern { display: flex; gap: 6px; width: 100%; }
.rd-pattern textarea { flex: 1; height: 54px; resize: none; background: var(--tz-surface); border: 1px solid var(--tz-line); border-radius: 6px; color: var(--tz-text); font-size: 12px; padding: 6px 8px; }
.rd-pattern-actions { display: flex; flex-direction: column; gap: 4px; }
.rd-error { margin: 0 10px 8px; color: #ffb08a; font-size: 11.5px; }
.rd-query-row { padding: 0 10px 10px; }
.rd-query { width: 100%; height: 32px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.rd-table-wrap { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.rd-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
.rd-table th { position: sticky; top: 0; z-index: 1; background: var(--tz-surface-2); color: var(--tz-muted); font-weight: 500; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--tz-line); white-space: nowrap; }
.rd-table td { padding: 4px 8px; border-bottom: 1px solid var(--tz-line); color: var(--tz-text-2); vertical-align: middle; }
.rd-table tbody tr { cursor: pointer; }
.rd-table tbody tr:hover td { background: rgba(46, 230, 176, .045); }
.rd-table tr.selected td { background: var(--tz-accent-soft); }
.rd-range { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.rd-index { min-width: 24px; color: var(--tz-muted); font-family: var(--tz-mono); }
.rd-len { display: flex; align-items: center; gap: 8px; }
.rd-bar { flex: 0 0 64px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.rd-bar i { display: block; height: 100%; background: linear-gradient(90deg,#4da3ff,#6fc0ff); }
.rd-sequence { display: inline-flex; align-items: center; gap: 2px; }
.rd-sequence i { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 3px; font-style: normal; font-size: 9px; }
.rd-sequence i.hit { background: var(--tz-accent-soft); color: var(--tz-accent); }
.rd-sequence i.miss { background: rgba(255,120,70,.15); color: #ffb08a; }
.rd-sequence small { color: var(--tz-muted); }
.rd-len-text { color: var(--tz-muted); font-family: var(--tz-mono); }
.rd-len-text small { margin-left: 1px; }
.rd-time { color: var(--tz-muted); font-family: var(--tz-mono); white-space: nowrap; }
.rd-empty { margin: 0; padding: 26px 12px; text-align: center; color: var(--tz-muted); font-size: 11.5px; }
.rd-detail-tabs { display: flex; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--tz-line); flex: none; }
.rd-detail-tab { flex: 1; height: 26px; border: 1px solid var(--tz-line); border-radius: 5px; background: var(--tz-surface-2); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer; }
.rd-detail-tab.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); }
.rd-detail-tab:disabled { opacity: .45; cursor: default; }
.rd-issue, .rd-code { font-family: var(--tz-mono); }
.rd-state { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 10.5px; }
.rd-state.hit { color: #8fe0b0; background: rgba(46, 230, 176, .12); }
.rd-state.miss { color: #ffb08a; background: rgba(255, 120, 70, .12); }
@media (max-width: 1200px) {
  .rd-layout { grid-template-columns: 300px minmax(0, 1fr); }
  .rd-details { display: none; }
}
/* 有迹可循 */
.trace-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.trace-period-label { font-size: 12px; color: var(--tz-muted); white-space: nowrap; }
.trace-stepper { width: 142px; height: 30px; }
.trace-stepper input { width: 74px; text-align: center; background: transparent; border: 0; color: var(--tz-text); font-size: 12px; font-family: var(--tz-mono); }
.trace-selection-limit { color: var(--tz-muted); font-size: 11px; white-space: nowrap; }
.trace-results { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; height: calc(100vh - 300px); min-height: 380px; }
.trace-primary, .trace-form-section { border: 1px solid var(--tz-line); border-radius: 10px; background: var(--tz-surface); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.trace-heading { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--tz-line); flex: none; min-height: 38px; }
.trace-heading h3 { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--tz-text); display: flex; align-items: center; gap: 6px; min-width: 0; }
.trace-heading h3 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace-title-icon { width: 18px; height: 18px; flex: none; }
.trace-order { margin-left: auto; color: var(--tz-muted); font-size: 11px; white-space: nowrap; }
.trace-retained { color: #e0b36a; font-size: 11px; white-space: nowrap; }
.trace-chart-scroll { flex: 1; min-height: 0; overflow: auto; padding: 14px 12px 6px; scrollbar-width: thin; }
.trace-chart { position: relative; height: 100%; min-height: 290px; padding-left: 34px; padding-bottom: 46px; }
.trace-count-axis { position: absolute; left: 0; top: 2px; bottom: 46px; width: 30px; }
.trace-count-axis > span { position: absolute; right: 3px; transform: translateY(50%); font-size: 10px; color: var(--tz-muted); font-family: var(--tz-mono); }
.trace-count-axis > span.trace-axis-unit { top: -2px; bottom: auto; transform: none; font-size: 10px; right: 0; }
.trace-plot-grid { position: absolute; left: 34px; right: 0; top: 2px; bottom: 46px; }
.trace-plot-grid i { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(150,185,225,.13); }
.trace-columns { position: absolute; left: 34px; right: 0; top: 2px; bottom: 0; margin: 0; padding: 0; list-style: none; display: flex; align-items: stretch; gap: 4px; }
.trace-column { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.trace-bar-space { flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.trace-bar { width: 66%; height: var(--trace-height); min-height: 2px; background: var(--trace-color); border-radius: 3px 3px 0 0; position: relative; }
.trace-count { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; color: #cfd9e4; font-family: var(--tz-mono); }
.trace-count small { margin-left: 1px; font-size: 9px; color: var(--tz-muted); }
.trace-number-label { height: 44px; padding-top: 5px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.trace-number-label strong { font-size: 12px; color: var(--tz-text); font-weight: 600; }
.trace-probability { font-size: 10px; color: var(--tz-muted); font-family: var(--tz-mono); }
.trace-no-matches { margin: 0; padding: 24px 14px; color: var(--tz-muted); font-size: 12px; }
.trace-shapes { flex: 1; min-height: 0; overflow: auto; padding: 12px; display: grid; gap: 14px; align-content: start; scrollbar-width: thin; }
.trace-shape h4 { margin: 0 0 6px; font-size: 11.5px; color: var(--tz-text-2); font-weight: 500; }
.trace-shape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.trace-shape-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 54px 54px; align-items: center; gap: 8px; font-size: 11.5px; }
.trace-shape-row strong { color: var(--tz-text); font-weight: 500; }
.trace-shape-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.trace-shape-track i { display: block; height: 100%; background: var(--trace-color); }
.trace-shape-count { text-align: right; color: var(--tz-muted); font-family: var(--tz-mono); }
.trace-shape-count small { margin-left: 1px; font-size: 9px; }
.trace-shape-probability { text-align: right; color: var(--tz-muted); font-family: var(--tz-mono); }
.trace-empty { display: grid; place-items: center; gap: 8px; min-height: 320px; color: var(--tz-muted); font-size: 12px; border: 1px solid var(--tz-line); border-radius: 10px; background: var(--tz-surface); }
@media (max-width: 1100px) {
  .trace-results { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .trace-chart { min-height: 260px; }
}

/* 分析页签图标（源站 20px 图标） */
.pt-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.pt-tab-icon { width: 20px; height: 20px; flex: none; object-fit: contain; }
.pt-tabs button svg.pt-tab-icon { stroke: currentColor; }


/* 走势图表：模拟选号按钮 3D 立体质感 */
.pt-table tr.pt-stat td { padding: 3px 2px; }
.pt-table .pt-sim {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 20px; padding: 0 6px;
  border-radius: 4px;
  border: 1px solid rgba(150,185,225,.22);
  background: linear-gradient(180deg, #1b2532 0%, #0f1720 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -1px 0 rgba(0,0,0,.5), 0 2px 4px -2px rgba(0,0,0,.9);
  color: var(--tz-text-2);
  font-size: 10.5px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
  transition: filter .12s ease, transform .08s ease;
}
.pt-table .pt-sim:hover { filter: brightness(1.18); color: var(--tz-text); }
.pt-table .pt-sim:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0,0,0,.6); }
.pt-table .pt-sim.on {
  border-color: var(--tz-accent-line);
  background: linear-gradient(180deg, rgba(46,230,176,.26), rgba(46,230,176,.09));
  color: var(--tz-accent);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.35), 0 2px 6px -2px rgba(0,0,0,.85);
}


.pt-table .pt-sim { white-space: nowrap; height: 21px; padding: 0 7px; }
.pt-table tr.pt-stat td { white-space: nowrap; }


/* 模拟选号按钮：加强立体高光 */
.pt-table .pt-sim {
  background: linear-gradient(180deg, #27384b 0%, #0c1219 100%);
  border-color: rgba(160,195,230,.30);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(0,0,0,.68), 0 2px 5px -1px rgba(0,0,0,.95);
}
.pt-table .pt-sim:hover { filter: brightness(1.22); border-color: rgba(190,220,250,.45); }
.pt-table .pt-sim.on {
  background: linear-gradient(180deg, rgba(46,230,176,.40) 0%, rgba(20,150,115,.18) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(0,0,0,.45), 0 2px 7px -1px rgba(0,0,0,.9);
}

/* 左侧导航：3D 立体图标 */
.nav-item { display: flex; align-items: center; gap: 10px; }
.nav-item .ico {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ni, #8aa0b6);
  border: 1px solid rgba(255, 255, 255, .09);
  background:
    radial-gradient(120% 100% at 30% 12%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, #253140 0%, #0d131b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .55), 0 3px 7px -4px rgba(0, 0, 0, .9);
  transition: transform .15s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
}
.nav-item .ico svg { width: 17px; height: 17px; display: block; }
.nav-item:hover .ico {
  color: var(--ni);
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ni) 35%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .5), 0 5px 12px -6px rgba(0, 0, 0, .95);
}
.nav-item:active .ico { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6); }
.nav-item.active .ico {
  color: var(--ni);
  border-color: color-mix(in srgb, var(--ni) 55%, transparent);
  background:
    radial-gradient(120% 100% at 30% 12%, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--ni) 32%, #1a2430) 0%, color-mix(in srgb, var(--ni) 8%, #0d131b) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 0 0 1px color-mix(in srgb, var(--ni) 28%, transparent), 0 4px 12px -5px color-mix(in srgb, var(--ni) 55%, transparent);
}
.nav-item[data-page="overview"] .ico { --ni: #e6b45c; }
.nav-item[data-page="auto"] .ico { --ni: #ef8a6a; }
.nav-item[data-page="scheme"] .ico { --ni: #7fb0e6; }
.nav-item[data-page="adv"] .ico { --ni: #b39ae6; }
.nav-item[data-page="history"] .ico { --ni: #7fc7c0; }
.nav-item[data-page="trend"] .ico { --ni: #e1ae4d; }
.nav-item[data-page="science"] .ico { --ni: #7fd0b0; }
.nav-item[data-page="plan"] .ico { --ni: #e6c06a; }
.nav-item[data-page="pk10"] .ico { --ni: #e0796a; }
.nav-item[data-page="supertrend"] .ico { --ni: #c09be0; }
.nav-item[data-page="protrend"] .ico { --ni: #7fb8e6; }
.nav-item[data-page="shrink"] .ico { --ni: #86d39a; }
.nav-item[data-page="tools"] .ico { --ni: #8db4e0; }
/* 冷热统计：3D 立体卡片与号码按钮 */
.pt-cold-temp { gap: 12px; }
.pt-cold-temp-card {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 10px 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%),
    linear-gradient(170deg, #1b2532 0%, #101821 60%, #0c1219 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 -1px 0 rgba(0, 0, 0, .55), 0 8px 20px -14px rgba(0, 0, 0, .95);
}
.pt-cold-temp-card::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--cold-accent, #7a8da5), transparent);
  opacity: .85;
}
.pt-cold-temp-card.hot { --cold-accent: #ff6b7f; --cold-deep: #b01522; }
.pt-cold-temp-card.warm { --cold-accent: #ffbf5e; --cold-deep: #8d6400; }
.pt-cold-temp-card.cold { --cold-accent: #5db0ff; --cold-deep: #1e5fa8; }
.pt-cold-temp-title { color: var(--cold-accent); font-weight: 600; letter-spacing: .4px; }
.pt-cold-temp-title i {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 14px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02) 60%),
    linear-gradient(180deg, #2a3646, #0d131b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .20), inset 0 -2px 3px rgba(0, 0, 0, .5), 0 3px 7px -4px rgba(0, 0, 0, .9);
}
.pt-cold-chips { gap: 12px; margin-top: 9px; }
.pt-cold-chip {
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 15px; font-weight: 700;
  color: #e6eef8;
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .18), rgba(255, 255, 255, .02) 62%),
    linear-gradient(180deg, #2a3646, #0d131b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -2px 4px rgba(0, 0, 0, .55), 0 4px 10px -4px rgba(0, 0, 0, .95);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.pt-cold-chip:hover {
  transform: translateY(-1px);
  border-color: var(--cold-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 4px rgba(0, 0, 0, .5), 0 5px 12px -5px rgba(0, 0, 0, .95);
}
.pt-cold-chip:active { transform: translateY(1px); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .6); }
.pt-cold-chip.hot.on {
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .48), rgba(255, 255, 255, .05) 60%), linear-gradient(180deg, #ff8796, #b01522);
  border-color: #ffb3bd;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 2px rgba(255, 107, 127, .22), 0 6px 14px -6px rgba(255, 107, 127, .85);
}
.pt-cold-chip.warm.on {
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .48), rgba(255, 255, 255, .05) 60%), linear-gradient(180deg, #ffd08c, #96680a);
  border-color: #ffe0ae;
  color: #241800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 2px rgba(255, 191, 94, .22), 0 6px 14px -6px rgba(255, 191, 94, .8);
}
.pt-cold-chip.cold.on {
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .48), rgba(255, 255, 255, .05) 60%), linear-gradient(180deg, #8ecbff, #1e5fa8);
  border-color: #b6dcff;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 2px rgba(93, 176, 255, .22), 0 6px 14px -6px rgba(93, 176, 255, .85);
}
.pt-cold-bars { display: grid; gap: 2px; padding: 2px; }
.pt-cold-row { padding: 3px 6px; border-radius: 8px; gap: 12px; }
.pt-cold-row:hover { background: rgba(255, 255, 255, .025); }
.pt-cold-pill {
  min-width: 64px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-family: var(--tz-mono); font-size: 11.5px; font-weight: 600;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 3px 8px -3px rgba(0, 0, 0, .85);
}
.pt-cold-row.hot .pt-cold-pill { background: linear-gradient(180deg, #ff7b8b, #b01522); color: #fff; }
.pt-cold-row.warm .pt-cold-pill { background: linear-gradient(180deg, #ffc978, #96680a); color: #1f1500; }
.pt-cold-row.cold .pt-cold-pill { background: linear-gradient(180deg, #6fbdff, #1e5fa8); color: #fff; }
.pt-cold-num {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .10);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #232e3c, #0e141c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -2px 3px rgba(0, 0, 0, .5), 0 3px 8px -4px rgba(0, 0, 0, .9);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55);
}
.pt-cold-row.hot .pt-cold-num { color: #ff9aa6; }
.pt-cold-row.warm .pt-cold-num { color: #ffcf84; }
.pt-cold-row.cold .pt-cold-num { color: #8ecbff; }
.pt-cold-num:hover { transform: translateY(-1px); border-color: rgba(190, 220, 250, .4); }
.pt-cold-num.on {
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .05) 60%), linear-gradient(180deg, #39f0c2, #12a97f);
  color: #04150f;
  border-color: #8bf7d8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 3px rgba(46, 230, 176, .18), 0 4px 10px -4px rgba(18, 169, 127, .9);
  text-shadow: none;
}
.pt-cold-track {
  height: 9px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .05));
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(255, 255, 255, .06);
}
.pt-cold-track span { border-radius: 99px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38); }
.pt-cold-row.hot .pt-cold-track span { background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%), linear-gradient(90deg, #c62828, #ff7c8e); }
.pt-cold-row.warm .pt-cold-track span { background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%), linear-gradient(90deg, #96680a, #ffc978); }
.pt-cold-row.cold .pt-cold-track span { background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%), linear-gradient(90deg, #1e5fa8, #6fbdff); }
/* 冷热统计：选中态也保持立体 */
.pt-cold-row .pt-cold-num { border-radius: 50%; }
.pt-cold-row.hot .pt-cold-num.on {
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .05) 60%), linear-gradient(180deg, #ff8796, #b01522);
  border-radius: 50%;
  color: #fff;
  border-color: #ffb3bd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 2px rgba(255, 107, 127, .22), 0 6px 14px -6px rgba(255, 107, 127, .85);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}
.pt-cold-row.warm .pt-cold-num.on {
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .05) 60%), linear-gradient(180deg, #ffd08c, #96680a);
  border-radius: 50%;
  color: #241800;
  border-color: #ffe0ae;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 2px rgba(255, 191, 94, .22), 0 6px 14px -6px rgba(255, 191, 94, .8);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}
.pt-cold-row.cold .pt-cold-num.on {
  background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .05) 60%), linear-gradient(180deg, #8ecbff, #1e5fa8);
  border-radius: 50%;
  color: #fff;
  border-color: #b6dcff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 2px rgba(93, 176, 255, .22), 0 6px 14px -6px rgba(93, 176, 255, .85);
}
.pt-cold-row.picked .pt-cold-pill,
.pt-cold-row.hot.picked .pt-cold-pill,
.pt-cold-row.warm.picked .pt-cold-pill,
.pt-cold-row.cold.picked .pt-cold-pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 3px 8px -3px rgba(0, 0, 0, .85);
}
.pt-cold-row.picked .pt-cold-track {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .65), inset 0 -1px 0 rgba(255, 255, 255, .06);
}
/* 顶部公告：加高 + 炫彩滚动文字 */
.marquee {
  height: 38px;
  border-radius: 19px;
  padding: 0 16px;
  border: 1px solid rgba(150, 185, 225, .16);
  background:
    radial-gradient(120% 120% at 12% 0%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(24, 34, 46, .92), rgba(10, 16, 23, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(0, 0, 0, .5), 0 6px 18px -14px rgba(46, 230, 176, .45);
}
.marquee::before {
  content: "公告";
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #c8fff1;
  background: linear-gradient(180deg, rgba(46, 230, 176, .34), rgba(46, 230, 176, .10));
  border: 1px solid rgba(46, 230, 176, .35);
  border-radius: 999px;
  padding: 2px 9px;
  margin-right: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 6px -2px rgba(0, 0, 0, .8);
}
.marquee-track {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .3px;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #f6deb0 0%, #8fe0ff 32%, #c4b5fd 64%, #f6deb0 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: marquee 34s linear infinite, marquee-shine 9s linear infinite;
  filter: drop-shadow(0 0 6px rgba(143, 224, 255, .16));
}
.marquee-track span { padding-right: 60px; }
.marquee:hover .marquee-track { animation-play-state: paused, paused; }
@keyframes marquee-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
/* 公告徽章置顶 + 跑马灯渐变文字兼容兜底 */
.marquee::before {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #dcfff6;
  -webkit-text-fill-color: #dcfff6;
  background: linear-gradient(180deg, #1d705d 0%, #0c3d33 100%);
  border: 1px solid rgba(46, 230, 176, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .45), 0 2px 7px -2px rgba(0, 0, 0, .85);
}
.marquee-track { position: relative; z-index: 1; }

.marquee-track {
  color: #eadfc6;
  -webkit-text-fill-color: #eadfc6;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .marquee-track {
    color: transparent;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(90deg, #f6deb0 0%, #8fe0ff 32%, #c4b5fd 64%, #f6deb0 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: marquee 34s linear infinite, marquee-shine 9s linear infinite;
    filter: drop-shadow(0 0 6px rgba(143, 224, 255, .16));
  }
}
/* 科学数据 · 数学模型 */
.science-view { display: flex; flex-direction: column; gap: 10px; }
.sc-tabs { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--tz-line); padding-bottom: 8px; }
.sc-tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); color: var(--tz-text-2);
  font-size: 12.5px; cursor: pointer;
}
.sc-tab svg { width: 16px; height: 16px; }
.sc-tab.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.sc-controls { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.sc-field { display: inline-flex; align-items: center; gap: 8px; }
.sc-field-label { font-size: 12px; color: var(--tz-muted); white-space: nowrap; }
.sc-stepper { width: 112px; height: 30px; }
.sc-stepper input { width: 52px; text-align: center; background: transparent; border: 0; color: var(--tz-text); font-size: 12px; font-family: var(--tz-mono); }
.sc-positions { flex: 1; min-width: 0; }
.sc-content { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 10px; align-items: start; max-width: 1216px; }
.sc-main { display: grid; gap: 10px; min-width: 0; }
.sc-queue { min-width: 0; }
.sc-queue .pbq-list { max-height: 420px; }
.sc-next, .sc-chart-panel, .sc-history-panel {
  border: 1px solid var(--tz-line);
  border-radius: 10px;
  background: var(--tz-surface);
  overflow: hidden;
}
.sc-next { padding: 10px 12px; }
.sc-next-head { display: flex; align-items: center; gap: 8px; }
.sc-next-head h3 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--tz-text); }
.sc-next-head h3 svg { width: 15px; height: 15px; color: var(--tz-accent); }
.sc-next-pos { margin-left: auto; color: var(--tz-muted); font-size: 11px; }
.sc-pred-numbers { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.sc-pred-num {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: #fff;
  font-family: var(--tz-mono);
  font-size: 16px; font-weight: 700;
  background: linear-gradient(180deg, color-mix(in srgb, var(--series-color) 72%, #ffffff 12%), var(--series-color));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 3px rgba(0, 0, 0, .35), 0 3px 8px -3px rgba(0, 0, 0, .85);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
.sc-pred-source { margin: 0; color: var(--tz-muted); font-size: 11px; }
.sc-view-tabs { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--tz-line); }
.sc-view-tabs button {
  height: 26px; padding: 0 10px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); color: var(--tz-text-2);
  font-size: 11.5px; cursor: pointer;
}
.sc-view-tabs button.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); }
.sc-range { margin-left: auto; color: var(--tz-muted); font-size: 11px; }
.sc-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--tz-line); }
.sc-panel-head h3 { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--tz-text); }
.sc-panel-head span { color: var(--tz-muted); font-size: 11px; }
.sc-chart-viewport { padding: 6px 8px 0; }
.sc-chart-svg { width: 100%; height: auto; display: block; }
.sc-grid-line { stroke: rgba(150, 185, 225, .10); stroke-dasharray: 3 4; }
.sc-axis-text { fill: #7a8da5; font-size: 10px; font-family: var(--tz-mono); }
.sc-future-area { fill: rgba(46, 230, 176, .045); }
.sc-future-divider { stroke: rgba(46, 230, 176, .38); stroke-dasharray: 5 4; }
.sc-guide { stroke: rgba(190, 214, 240, .45); stroke-dasharray: 3 3; }
.sc-readout { display: flex; gap: 16px; padding: 2px 10px 8px; font-size: 11px; color: var(--tz-muted); min-height: 20px; }
.sc-readout b { color: var(--tz-text); font-family: var(--tz-mono); font-weight: 500; }
.sc-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 10px 10px; }
.sc-legend-preds { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-legend-item {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 8px;
  border: 1px solid var(--tz-line); border-radius: 5px;
  background: var(--tz-surface-2); color: var(--tz-faint);
  font-size: 11px; cursor: pointer;
}
.sc-legend-item i { width: 10px; height: 3px; border-radius: 2px; background: var(--series-color); opacity: .35; }
.sc-legend-item.on { color: var(--tz-text-2); border-color: rgba(150, 185, 225, .3); }
.sc-legend-item.on i { opacity: 1; }
.sc-history-panel { display: flex; flex-direction: column; min-height: 0; }
.sc-history-table-wrap { overflow: auto; max-height: calc(100vh - 330px); scrollbar-width: thin; }
.sc-history-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
.sc-history-table th {
  position: sticky; top: 0; z-index: 1;
  background: var(--tz-surface-2); color: var(--tz-muted);
  font-weight: 500; text-align: left;
  padding: 6px 8px; border-bottom: 1px solid var(--tz-line);
}
.sc-history-table td { padding: 5px 8px; border-bottom: 1px solid var(--tz-line); color: var(--tz-text-2); white-space: nowrap; }
.sc-history-table tr.even td { background: rgba(255, 255, 255, .015); }
.sc-draw-num { color: #f0a08f; font-family: var(--tz-mono); font-weight: 600; }
.sc-pred-list { color: var(--tz-muted); font-family: var(--tz-mono); letter-spacing: .5px; }
.sc-status { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 10.5px; }
.sc-status.hit { color: #8fe0b0; background: rgba(46, 230, 176, .12); }
.sc-status.miss { color: #ffb08a; background: rgba(255, 120, 70, .12); }
.sc-table-empty { text-align: center; color: var(--tz-muted); padding: 20px 8px !important; }
.sc-empty { padding: 30px; text-align: center; color: var(--tz-muted); }
.sc-empty strong { display: block; color: var(--tz-text-2); margin-bottom: 6px; }
.sc-empty p { margin: 0; font-size: 12px; }
@media (max-width: 1200px) {
  .sc-content { grid-template-columns: minmax(0, 1fr); }
  .sc-history-table-wrap { max-height: 340px; }
}

/* 科学数据：状态列按源站样式（中奖=绿底白字，未中=绿字无底色） */
.sc-status { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 20px; padding: 0 6px; border-radius: 3px; font-size: 11.5px; font-weight: 600; line-height: 1; }
.sc-status.hit { color: #fff; background: #1a8f4c; }
.sc-status.miss { color: #74c69a; background: transparent; padding: 0; min-width: 0; font-weight: 500; }


/* 科学数据：预测类型 / 组合下拉、组合预测号码 */
.sc-select select { height: 30px; padding: 0 8px; border: 1px solid var(--tz-line); border-radius: 6px; background: var(--tz-surface); color: var(--tz-text); font-size: 12px; }
.sc-select select:focus { outline: none; border-color: var(--tz-accent-line); }
.sc-pred-num.wide { width: auto; min-width: 34px; padding: 0 9px; font-size: 14px; }
.sc-history-table td.sc-pred-list { white-space: normal; overflow-wrap: anywhere; max-width: 220px; line-height: 1.45; }


/* 科学数据：预测号码显示框 */
.sc-pred-meta { display: flex; align-items: center; gap: 4px; margin: 10px 0 4px; color: var(--tz-muted); font-size: 11.5px; }
.sc-pred-meta b { color: var(--tz-text); font-family: var(--tz-mono); font-size: 12.5px; margin: 0 1px; }
.sc-pred-box { display: flex; align-items: stretch; gap: 8px; margin: 0 0 4px; }
.sc-pred-field { flex: 1; min-width: 0; height: 56px; resize: none; overflow: auto; padding: 6px 9px; border: 1px solid var(--tz-line); border-radius: 6px; background: linear-gradient(180deg, #0d141c, #131c26); color: var(--tz-text); font: 13px/1.55 var(--tz-mono); letter-spacing: .6px; box-shadow: inset 0 2px 4px -1px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .04); }
.sc-pred-field:focus { outline: none; border-color: var(--tz-accent-line); }
.sc-copy { align-self: flex-start; height: 30px; padding: 0 14px; }


.sc-legend-more { color: var(--tz-muted); font-size: 11px; }


.sc-pred-field { height: 64px; }


.sc-legend-preds { display: contents; }
.sc-stepper { width: 152px; }
.sc-stepper input { width: 88px; }


.sc-positions { align-items: center; }


.sc-range { gap: 6px; }
.sc-range input { width: 78px; height: 30px; padding: 0 6px; text-align: center; border: 1px solid var(--tz-line); border-radius: 6px; background: var(--tz-surface); color: var(--tz-text); font-size: 12px; font-family: var(--tz-mono); }
.sc-range input:focus { outline: none; border-color: var(--tz-accent-line); }
.sc-range-sep { color: var(--tz-muted); font-size: 12px; }


.sc-field.sc-range { margin-left: 0; color: var(--tz-text-2); font-size: 12px; }


.sc-stepper { width: 100px; }
.sc-stepper input { width: 38px; }


.sc-periods-input { width: 72px; height: 30px; padding: 0 6px; text-align: center; border: 1px solid var(--tz-line); border-radius: 6px; background: var(--tz-surface); color: var(--tz-text); font-size: 12px; font-family: var(--tz-mono); }
.sc-periods-input:focus { outline: none; border-color: var(--tz-accent-line); }


.sc-smart { display: inline-flex; align-items: center; gap: 5px; height: 30px; color: var(--tz-text-2); font-size: 12px; user-select: none; }
.sc-smart input { width: 14px; height: 14px; accent-color: var(--tz-accent); }
.sc-backtest { margin: 4px 0 0; color: var(--tz-muted); font-size: 11px; }

/* 计划系统框架 */
.plan-view { display: flex; flex-direction: column; gap: 10px; }
.plan-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--tz-line); padding-bottom: 8px; flex-wrap: wrap; }
.plan-tab {
  height: 30px; padding: 0 14px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); color: var(--tz-text-2);
  font-size: 12.5px; cursor: pointer;
}
.plan-tab.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.plan-work { border: 1px solid var(--tz-line); border-radius: 10px; background: var(--tz-surface); min-height: 460px; overflow: hidden; }
.plan-formula { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 520px; }
.plan-aside { border-right: 1px solid var(--tz-line); padding: 10px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan-aside h4 { margin: 0 0 8px; font-size: 12px; color: var(--tz-muted); font-weight: 500; }
.plan-pos-list { gap: 5px; align-items: center; }
.plan-play-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; max-height: 380px; overflow: auto; scrollbar-width: thin; }
.plan-play-check {
  display: flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 6px;
  border: 1px solid var(--tz-line); border-radius: 5px;
  background: var(--tz-surface-2); color: var(--tz-text-2);
  font-size: 11px; cursor: pointer; white-space: nowrap; overflow: hidden;
}
.plan-play-check input { display: none; }
.plan-play-check.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); }
.plan-main { padding: 12px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.plan-selected-tabs { display: flex; gap: 6px; flex-wrap: wrap; min-height: 28px; }
.plan-play-tab {
  height: 28px; padding: 0 10px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); color: var(--tz-text-2);
  font-size: 11.5px; cursor: pointer;
}
.plan-play-tab.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); }
.plan-settings { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--tz-muted); }
.plan-settings label { display: inline-flex; align-items: center; gap: 6px; }
.plan-stepper { width: 102px; height: 28px; }
.plan-stepper input { width: 36px; text-align: center; background: transparent; border: 0; color: var(--tz-text); font-size: 12px; font-family: var(--tz-mono); }
.plan-unit { color: var(--tz-muted); font-size: 11px; }
.plan-engine-pending { border: 1px dashed var(--tz-line-strong); border-radius: 8px; padding: 34px 16px; text-align: center; color: var(--tz-muted); }
.plan-engine-pending strong { display: block; color: var(--tz-text-2); font-size: 13px; margin-bottom: 6px; }
.plan-engine-pending p { margin: 0; font-size: 12px; }
.plan-placeholder-panel { padding: 70px 20px; text-align: center; color: var(--tz-muted); }
.plan-placeholder-panel strong { display: block; color: var(--tz-text); font-size: 14px; margin-bottom: 8px; }

/* ===== 计划系统 · 公式计划（源站结构） ===== */
#page-plan { min-height: 0; }
#page-plan .plan-view { flex: 1; min-height: 0; }
#page-plan .plan-work { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#page-plan .plan-formula { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.plan-position-row {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 8px 12px; border-bottom: 1px solid var(--tz-line); min-width: 0;
}
.plan-position-row .plan-position-picker { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.plan-position-row .position-caption {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--tz-muted); font-size: 12px; margin-right: 3px;
}
.plan-selected-tabs {
  display: flex; align-items: center; gap: 5px; flex: 1 1 76px; min-width: 0;
  padding-left: 12px; border-left: 1px solid var(--tz-line); overflow-x: auto; scrollbar-width: thin;
}
.plan-selected-tabs .plan-play-tab {
  flex: none; height: 26px; padding: 0 11px; white-space: nowrap;
  border: 1px solid var(--tz-line); border-radius: 5px;
  background: var(--tz-surface-2); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer;
}
.plan-selected-tabs .plan-play-tab.on {
  border-color: var(--tz-accent-line); background: var(--tz-accent-soft);
  color: var(--tz-accent); font-weight: 600;
}
.plan-formula-layout { display: flex; flex: 1; min-height: 0; }
.plan-formula .plan-list {
  flex: 0 0 168px; border-right: 1px solid var(--tz-line);
  display: flex; flex-direction: column; min-height: 0;
  background: color-mix(in srgb, var(--tz-surface-2) 46%, transparent);
}
.plan-formula .plan-options {
  flex: 1; display: grid; grid-auto-rows: min-content; align-content: start;
  gap: 4px; padding: 8px; overflow-y: auto; scrollbar-width: thin;
}
.plan-play-check {
  display: flex; align-items: center; gap: 6px; height: 27px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 5px;
  color: var(--tz-text-2); font-size: 11.5px; cursor: pointer;
  white-space: nowrap; overflow: hidden;
}
.plan-play-check:hover { background: rgba(255, 255, 255, .04); }
.plan-play-check input { display: none; }
.plan-play-check.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.play-check-box {
  flex: none; width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid rgba(150, 185, 225, .40);
  background: linear-gradient(180deg, #1b2532, #0f1720);
  display: grid; place-items: center; color: #f4c66a;
}
.plan-play-check.on .play-check-box { border-color: #9b651a; background: radial-gradient(circle at 35% 30%, #ffe9a8, #d99a31); color: #3a2402; }
.plan-formula .plan-detail { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.plan-formula .plan-settings {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px 16px; flex: none;
  padding: 7px 12px; border-bottom: 1px solid var(--tz-line);
  background: color-mix(in srgb, var(--tz-surface-2) 42%, transparent);
  font-size: 12px; color: var(--tz-text-2);
}
.plan-formula .plan-settings label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.plan-formula .plan-label { color: var(--tz-muted); font-size: 12px; font-weight: 500; }
.plan-formula .plan-formula-choice select {
  height: 28px; min-width: 108px; max-width: 190px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); color: var(--tz-text); font-size: 12px; padding: 0 6px;
}
.plan-stepper {
  display: inline-flex; align-items: center; height: 28px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: linear-gradient(180deg, #1b2532, #0f1720);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 4px -2px rgba(0, 0, 0, .85);
  overflow: hidden;
}
.plan-stepper button {
  width: 24px; height: 100%; border: 0; background: transparent;
  color: var(--tz-text-2); font-size: 14px; cursor: pointer; line-height: 1;
}
.plan-stepper button:hover:not(:disabled) { color: var(--tz-accent); background: rgba(255, 255, 255, .05); }
.plan-stepper button:disabled { opacity: .35; cursor: default; }
.plan-stepper input {
  width: 36px; height: 100%; border: 0; border-left: 1px solid var(--tz-line); border-right: 1px solid var(--tz-line);
  background: transparent; color: var(--tz-text); font: 12px var(--tz-mono); text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.plan-stepper input::-webkit-inner-spin-button,
.plan-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.plan-formula .plan-unit { color: var(--tz-muted); font-size: 11px; }
.plan-formula .plan-kill-setting { padding: 0 8px; height: 28px; border-radius: 6px; border: 1px solid var(--tz-line); }
.plan-formula .plan-kill-setting .position-check {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid rgba(150, 185, 225, .40);
  display: grid; place-items: center; color: #f4c66a;
}
.plan-formula .plan-kill-setting.selected .position-check { border-color: #9b651a; background: radial-gradient(circle at 35% 30%, #ffe9a8, #d99a31); color: #3a2402; }
.plan-formula .plan-kill-setting input { display: none; }
.plan-search-btn {
  margin-left: auto; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--tz-line); border-radius: 7px; color: var(--tz-text); font-size: 12px; cursor: pointer;
}
.plan-search-btn .search-icon { font-size: 15px; line-height: 1; }
.plan-formula .plan-result-scroll { flex: 1; min-height: 110px; overflow: auto; }
.plan-records { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.plan-records th {
  position: sticky; top: 0; z-index: 2; text-align: left;
  padding: 7px 9px; background: var(--tz-surface-2); color: var(--tz-muted);
  font-weight: 500; border-bottom: 1px solid var(--tz-line); white-space: nowrap;
}
.plan-records td { padding: 5px 9px; border-bottom: 1px solid rgba(120, 150, 180, .12); white-space: nowrap; color: var(--tz-text-2); }
.plan-records tbody tr:hover { background: rgba(255, 255, 255, .025); }
.plan-records td.result-empty { height: 85px; text-align: center; color: var(--tz-muted); }
.result-state {
  display: inline-block; min-width: 30px; padding: 2px 6px; border-radius: 3px;
  text-align: center; font-size: 11.5px; line-height: 1.4;
}
.result-state.hit { background: #1f8a4c; color: #fff; }
.result-state.miss { color: #35d07f; background: transparent; }
.result-state.pending { color: var(--tz-muted); background: transparent; }
.plan-records td.result-numbers { min-width: 230px; width: 45%; }
.record-number-field { display: flex; align-items: center; gap: 4px; }
.record-number-field input {
  flex: 1; min-width: 0; height: 24px; padding: 0 6px;
  border: 1px solid var(--tz-line); border-radius: 4px;
  background: rgba(0, 0, 0, .18); color: var(--tz-text-2);
  font: 11.5px var(--tz-mono); text-overflow: ellipsis;
}
.record-copy {
  flex: none; width: 24px; height: 24px; border: 1px solid var(--tz-line); border-radius: 4px;
  background: var(--tz-surface-2); color: var(--tz-muted); cursor: pointer; font-size: 12px; line-height: 1;
}
.record-copy:hover { color: var(--tz-accent); border-color: var(--tz-accent-line); }
.plan-formula .formula-numbers { flex: none; border-top: 1px solid var(--tz-line); background: color-mix(in srgb, var(--tz-surface-2) 34%, transparent); }
.numbers-summary { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; }
.numbers-disclosure {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px;
  border: 0; background: transparent; color: var(--tz-text); font-size: 12px; cursor: pointer; text-align: left;
}
.numbers-disclosure strong { font-weight: 600; }
.numbers-arrow { width: 10px; color: var(--tz-muted); }
.number-count { color: var(--tz-accent); font: 11.5px var(--tz-mono); }
.number-preview { color: var(--tz-muted); font: 11px var(--tz-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-copy { height: 26px; padding: 0 9px; font-size: 11.5px; }
.numbers-body { padding: 0 10px 10px; }
.numbers-heading { display: flex; align-items: center; gap: 10px; padding: 5px 0 7px; color: var(--tz-muted); font-size: 11.5px; }
.numbers-heading strong { color: var(--tz-text-2); font-weight: 600; }
.numbers-heading .page-status { margin-left: auto; font-family: var(--tz-mono); }
.numbers-body textarea {
  width: 100%; height: 92px; resize: vertical; padding: 7px 8px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: rgba(0, 0, 0, .20); color: var(--tz-text-2);
  font: 11.5px/1.7 var(--tz-mono); word-break: break-all;
}
.numbers-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.numbers-actions .analysis-glass-control { height: 27px; padding: 0 9px; font-size: 11.5px; }
.numbers-pager { margin-left: auto; display: flex; align-items: center; gap: 7px; color: var(--tz-muted); font-size: 11.5px; }
.plan-formula .plan-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--tz-text); }
.plan-formula .plan-empty strong { font-size: 17px; font-weight: 500; }
.plan-formula .plan-empty p { margin: 0; color: var(--tz-muted); font-size: 12px; }

/* ===== 计划系统 · 公式搜索弹窗 ===== */
.plan-search-layer { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; }
.plan-search-mask { position: absolute; inset: 0; background: rgba(4, 8, 12, .66); backdrop-filter: blur(2px); }
.plan-search-dialog {
  position: relative; display: flex; flex-direction: column;
  width: min(1180px, calc(100vw - 40px)); height: min(600px, calc(100dvh - 40px));
  border: 1px solid var(--tz-line); border-radius: 12px; overflow: hidden;
  background: var(--tz-surface); box-shadow: 0 26px 70px rgba(0, 0, 0, .62);
}
.plan-search-dialog > header {
  flex: 0 0 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; border-bottom: 1px solid var(--tz-line);
  background: color-mix(in srgb, var(--tz-surface-2) 55%, transparent);
}
.plan-search-dialog > header strong { color: var(--tz-text); font-size: 13.5px; font-weight: 600; }
.plan-search-dialog > header strong span { color: var(--tz-accent); font-weight: 500; margin-left: 4px; }
.search-status { color: var(--tz-accent); font-size: 11.5px; }
.plan-search-close {
  margin-left: auto; width: 28px; height: 28px; border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); color: var(--tz-text-2); font-size: 18px; line-height: 1; cursor: pointer;
}
.plan-search-close:hover { color: var(--tz-danger, #ff6b6b); border-color: rgba(255, 107, 107, .5); }
.plan-search-tabs { display: none; flex: none; gap: 5px; padding: 6px 10px; border-bottom: 1px solid var(--tz-line); }
.plan-search-tabs button {
  flex: 1; height: 29px; border: 1px solid var(--tz-line); border-radius: 8px;
  background: var(--tz-surface-2); color: var(--tz-text-2); font-size: 12px; cursor: pointer;
}
.plan-search-tabs button[aria-pressed="true"] { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.plan-search-body { flex: 1; min-height: 0; display: flex; }
.plan-search-settings {
  flex: 0 0 240px; min-height: 0; overflow: auto; padding: 8px 12px 14px;
  border-right: 1px solid var(--tz-line); background: color-mix(in srgb, var(--tz-surface-2) 32%, transparent);
}
.plan-search-settings h3 { margin: 7px 0 10px; color: var(--tz-muted); font-size: 12px; font-weight: 600; }
.plan-search-settings .filter-title { margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--tz-line); }
.search-parameters { display: grid; gap: 7px; }
.search-parameters label { display: flex; align-items: center; gap: 8px; color: var(--tz-text-2); font-size: 12px; }
.search-parameters input {
  width: 82px; height: 28px; margin-left: auto; padding: 0 7px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); color: var(--tz-text); font: 12px var(--tz-mono);
}
.plan-filter { display: grid; grid-template-columns: minmax(0, 1fr) 52px 58px; align-items: center; gap: 5px; margin-bottom: 5px; }
.plan-filter label { display: flex; align-items: center; gap: 5px; color: var(--tz-text-2); font-size: 11.5px; white-space: nowrap; }
.plan-filter input[type="checkbox"] { width: 13px; height: 13px; accent-color: var(--tz-accent); }
.plan-filter select, .plan-filter input[type="number"] {
  height: 26px; border: 1px solid var(--tz-line); border-radius: 5px;
  background: var(--tz-surface-2); color: var(--tz-text); font-size: 11.5px; padding: 0 4px; min-width: 0;
}
.plan-search-results { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.results-caption { flex: none; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--tz-line); }
.results-caption strong { color: var(--tz-text); font-size: 12.5px; }
.results-caption > span { color: var(--tz-muted); font: 11.5px var(--tz-mono); }
.results-caption .searching { color: var(--tz-accent); font-family: inherit; }
.results-caption .analysis-glass-control { margin-left: auto; height: 28px; padding: 0 10px; font-size: 11.5px; }
.result-table-scroll { flex: 1; min-height: 0; overflow: auto; }
.result-table-scroll .monitor-records { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.result-table-scroll .monitor-records th {
  position: sticky; top: 0; z-index: 2; padding: 6px 7px; text-align: left;
  background: var(--tz-surface-2); border-bottom: 1px solid var(--tz-line);
}
.result-table-scroll .monitor-records th button { border: 0; background: transparent; color: var(--tz-muted); font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.result-table-scroll .monitor-records td { padding: 5px 7px; border-bottom: 1px solid rgba(120, 150, 180, .12); color: var(--tz-text-2); white-space: nowrap; }
.result-table-scroll .monitor-records td.numbers { max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-family: var(--tz-mono); }
.result-table-scroll .monitor-records td.percentage { color: var(--tz-accent); }
.result-table-scroll .monitor-records tr { cursor: pointer; outline: none; }
.result-table-scroll .monitor-records tbody tr:hover { background: rgba(255, 255, 255, .03); }
.result-table-scroll .monitor-records tbody tr.selected { background: var(--tz-accent-soft); box-shadow: inset 2px 0 var(--tz-accent); }
.search-empty { padding: 40px 16px; text-align: center; color: var(--tz-muted); }
.search-empty strong { font-size: 12.5px; font-weight: 500; }
.plan-saved-formulas {
  flex: 0 0 252px; min-height: 0; display: flex; flex-direction: column;
  border-left: 1px solid var(--tz-line); background: color-mix(in srgb, var(--tz-surface-2) 32%, transparent);
}
.plan-saved-formulas > header { flex: 0 0 38px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--tz-line); }
.plan-saved-formulas > header strong { color: var(--tz-text); font-size: 12.5px; }
.plan-saved-formulas > header span { color: var(--tz-muted); font: 11.5px var(--tz-mono); }
.saved-list { flex: 1; min-height: 0; overflow: auto; padding: 6px; }
.plan-saved-formula { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 5px; }
.plan-saved-formula:hover { background: rgba(255, 255, 255, .035); }
.plan-saved-formula > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tz-text-2); font-size: 12px; }
.plan-saved-formula button { height: 23px; padding: 0 6px; border: 1px solid var(--tz-line); border-radius: 4px; background: var(--tz-surface-2); color: var(--tz-muted); font-size: 11px; cursor: pointer; }
.plan-saved-formula button:hover { color: var(--tz-accent); border-color: var(--tz-accent-line); }
.saved-empty { color: var(--tz-muted); font-size: 11.5px; text-align: center; padding: 18px 0; margin: 0; }
.plan-save-form { flex: none; padding: 9px 10px 10px; border-top: 1px solid var(--tz-line); }
.plan-save-form strong { display: block; color: var(--tz-text-2); font-size: 12px; margin-bottom: 7px; }
.plan-save-form label { display: flex; flex-direction: column; gap: 4px; color: var(--tz-muted); font-size: 11.5px; }
.plan-save-form input {
  height: 27px; padding: 0 7px; border: 1px solid var(--tz-line); border-radius: 5px;
  background: var(--tz-surface-2); color: var(--tz-text); font-size: 12px;
}
.plan-save-form .save-error { color: #ff7b7b; font-size: 11px; margin: 5px 0 0; }
.plan-save-form > div { display: flex; gap: 6px; margin-top: 7px; }
.plan-save-form .analysis-glass-control { flex: 1; height: 27px; font-size: 11.5px; }
.plan-search-actions {
  flex: 0 0 46px; display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 0 12px; border-top: 1px solid var(--tz-line);
  background: color-mix(in srgb, var(--tz-surface-2) 40%, transparent);
}
.plan-search-actions .analysis-glass-control { height: 29px; padding: 0 13px; font-size: 12px; }
@media (max-width: 1100px) {
  .plan-search-tabs { display: flex; }
  .plan-search-body > .plan-tab-hidden { display: none; }
  .plan-search-settings, .plan-search-results, .plan-saved-formulas { flex: 1 1 auto; width: 100%; border: 0; }
}

/* ===== 计划系统 · 钻石计划 ===== */
.plan-diamond { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.plan-diamond-picker { flex: none; display: flex; flex-direction: column; gap: 7px; padding: 9px 12px; border-bottom: 1px solid var(--tz-line); }
.plan-diamond-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-diamond .field-label { color: var(--tz-muted); font-size: 12px; flex: none; }
.plan-diamond-cats { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.plan-diamond-cats .analysis-glass-control {
  height: 28px; padding: 0 12px; border-radius: 6px; font-size: 12px;
  border: 1px solid var(--tz-line); color: var(--tz-text-2); background: var(--tz-surface-2); cursor: pointer;
}
.plan-diamond-cats .analysis-glass-control.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.plan-diamond-search {
  margin-left: auto; display: flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 8px; border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); min-width: 180px;
}
.plan-diamond-search .search-icon { color: var(--tz-muted); font-size: 14px; }
.plan-diamond-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  color: var(--tz-text); font-size: 12px; outline: none;
}
.plan-diamond-search input::-webkit-search-cancel-button { display: none; }
.plan-diamond-positions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-height: 26px; }
.plan-diamond-plan {
  height: 26px; padding: 0 10px; border-radius: 5px;
  border: 1px solid transparent; background: transparent; color: var(--tz-text-2);
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.plan-diamond-plan:hover { background: rgba(255, 255, 255, .05); color: var(--tz-text); }
.plan-diamond-plan.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.plan-diamond-nomatch { color: var(--tz-muted); font-size: 11.5px; padding: 4px 0; }
.plan-diamond-output { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.plan-diamond-toolbar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; border-bottom: 1px solid var(--tz-line);
}
.plan-diamond-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.plan-diamond-title strong { font-size: 13px; color: var(--tz-text); font-weight: 600; }
.plan-diamond-title span { color: var(--tz-muted); font-size: 11px; }
.plan-diamond-tabs { margin-left: auto; display: flex; border: 1px solid var(--tz-line); border-radius: 6px; overflow: hidden; }
.plan-diamond-tabs button {
  height: 27px; padding: 0 12px; border: 0; border-left: 1px solid var(--tz-line);
  background: var(--tz-surface-2); color: var(--tz-muted); font-size: 11.5px; cursor: pointer;
}
.plan-diamond-tabs button:first-child { border-left: 0; }
.plan-diamond-tabs button[aria-pressed="true"] { color: var(--tz-accent); background: var(--tz-accent-soft); font-weight: 600; }
.plan-diamond-output .plan-result-scroll { flex: 1; min-height: 0; overflow: auto; }
.diamond-record-table th, .diamond-record-table td { text-align: center; }
.diamond-record-table .record-period { white-space: nowrap; font-family: var(--tz-mono); font-size: 11.5px; }
.diamond-record-table .record-period span { display: inline; }
.diamond-record-table .record-period span:last-child { color: var(--tz-muted); font-size: 10.5px; margin-left: 2px; }
.diamond-record-table .record-draw { white-space: nowrap; font-family: var(--tz-mono); font-weight: 500; }
.diamond-record-table .record-numbers { text-align: left; min-width: 200px; }
.diamond-record-table .record-numbers .record-number-field input { height: 23px; }
.diamond-record-numbers { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--tz-mono); color: var(--tz-text-2); font-size: 11.5px; }
.diamond-record-table .record-current { background: var(--tz-accent-soft); }
.diamond-record-table .record-current .record-numbers { color: var(--tz-accent); font-weight: 600; }
.record-state { display: inline-block; white-space: nowrap; border-radius: 4px; min-width: 24px; padding: 2px 4px; font-size: 10.5px; }
.record-state.hit { color: #96d8b3; background: #1b3125; }
.record-state.miss { color: #efb0a4; background: #38231f; }
.record-state.pending, .record-state.incomplete { color: var(--tz-muted); background: transparent; padding-inline: 1px; }
.diamond-record-table td small { display: block; color: var(--tz-muted); font-size: 10px; line-height: 13px; }
.plan-diamond-text {
  flex: 1; min-height: 0; width: 100%; resize: none; border: 0; outline: none;
  background: rgba(0, 0, 0, .15); color: var(--tz-text-2);
  font: 12px/1.75 var(--tz-mono); white-space: pre; overflow: auto; padding: 10px 12px;
}
.plan-diamond-error { margin: 0; padding: 7px 12px; color: #ff9f8f; font-size: 11.5px; }
.plan-diamond-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--tz-muted); font-size: 12px; min-height: 120px; }
.diamond-config-choices { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; }
.diamond-config-choices .analysis-glass-control { flex: none; height: 23px; padding: 0 8px; font-size: 11px; }
.diamond-config-choices .analysis-glass-control.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }

/* ===== 计划系统 · 白金计划 ===== */
.plan-platinum {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}
.plat-toolbar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-bottom: 1px solid var(--tz-line); min-width: 0;
}
.plat-tabs { display: flex; align-items: center; gap: 5px; flex: none; }
.plat-tabs .analysis-glass-control {
  height: 28px; padding: 0 11px; border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); color: var(--tz-text-2); font-size: 12px; cursor: pointer;
}
.plat-tabs .analysis-glass-control.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.plat-items {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px;
  overflow-x: auto; scrollbar-width: thin; border-left: 1px solid var(--tz-line); padding-left: 10px;
}
.plat-items .analysis-glass-control {
  flex: none; height: 26px; padding: 0 10px; border: 1px solid var(--tz-line); border-radius: 5px;
  background: var(--tz-surface-2); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer; white-space: nowrap;
}
.plat-items .analysis-glass-control.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.plat-search {
  margin-left: auto; display: flex; align-items: center; gap: 5px; flex: none;
  height: 28px; padding: 0 8px; border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); width: 168px;
}
.plat-search .search-icon { color: var(--tz-muted); font-size: 14px; }
.plat-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--tz-text); font-size: 12px; outline: none; }
.plat-search input::-webkit-search-cancel-button { display: none; }
.plat-catalog {
  border-right: 1px solid var(--tz-line); min-height: 0; display: flex;
  background: color-mix(in srgb, var(--tz-surface-2) 34%, transparent);
}
.plat-catalog-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.plat-catalog-option {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 6px;
  min-height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 5px;
  background: transparent; color: var(--tz-text-2); font-size: 12px; cursor: pointer; text-align: left;
}
.plat-catalog-option:hover { background: rgba(255, 255, 255, .045); color: var(--tz-text); }
.plat-catalog-option.selected { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.plat-catalog-option.hot { grid-template-columns: 20px minmax(0, 1fr) auto; }
.plat-catalog-option .position-check {
  width: 13px; height: 13px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(150, 185, 225, .40); background: linear-gradient(180deg, #1b2532, #0f1720); color: #f4c66a;
}
.plat-catalog-option.selected .position-check { border-color: #9b651a; background: radial-gradient(circle at 35% 30%, #ffe9a8, #d99a31); color: #3a2402; }
.plat-rank { color: var(--tz-muted); font: 11px var(--tz-mono); }
.plat-heat { color: var(--tz-accent); font: 11px var(--tz-mono); }
.plat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat-catalog-option small { color: var(--tz-muted); font: 11px var(--tz-mono); }
.plat-empty { color: var(--tz-muted); font-size: 11.5px; padding: 12px 6px; margin: 0; }
.plat-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.plat-records-wrap { flex: 1; min-height: 0; display: flex; }
.plat-records-scroll { flex: 1; min-height: 0; overflow: auto; }
.plat-records th, .plat-records td { text-align: center; }
.plat-records th:nth-child(2) small { color: var(--tz-muted); font-size: 10.5px; font-weight: 400; margin-left: 4px; }
.plat-records .record-period { white-space: nowrap; font-family: var(--tz-mono); font-size: 11.5px; }
.plat-records .record-period span { color: var(--tz-muted); font-size: 10.5px; }
.plat-records .record-numbers { text-align: left; min-width: 220px; }
.plat-records .record-draw { white-space: nowrap; font-family: var(--tz-mono); font-weight: 500; }
.plat-number-cell { display: flex; align-items: center; gap: 2px; }
.plat-number-cell .diamond-record-numbers { flex: 1; min-width: 0; }
.plat-records .record-current { background: var(--tz-accent-soft); }
.plat-records .record-current .record-numbers { color: var(--tz-accent); font-weight: 600; }
.current-scheme {
  flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  padding: 7px 12px; border-top: 1px solid var(--tz-line);
}
.current-scheme > strong { color: var(--tz-text-2); font-size: 12px; }
.current-scheme b { color: var(--tz-text); font: 500 12px var(--tz-mono); overflow-wrap: anywhere; }
.current-scheme .analysis-glass-control { margin-left: auto; height: 27px; padding: 0 9px; font-size: 11.5px; }

/* ===== 计划系统 · 人工计划 ===== */
.plan-manual { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.manual-parameters {
  flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 16px;
  padding: 7px 12px; border-bottom: 1px solid var(--tz-line);
  background: color-mix(in srgb, var(--tz-surface-2) 38%, transparent);
}
.manual-parameters label, .manual-param { display: inline-flex; align-items: center; gap: 6px; color: var(--tz-text-2); font-size: 12px; white-space: nowrap; }
.manual-parameters label > span, .manual-param > span:first-child { color: var(--tz-muted); font-size: 12px; }
.manual-parameters select {
  height: 28px; padding: 0 6px; border: 1px solid var(--tz-line); border-radius: 6px;
  background: var(--tz-surface-2); color: var(--tz-text); font-size: 12px;
}
.manual-parameters .plan-stepper { height: 28px; }
.manual-parameters input[type="number"] {
  width: 40px; height: 100%; border: 0; border-left: 1px solid var(--tz-line); border-right: 1px solid var(--tz-line);
  background: transparent; color: var(--tz-text); font: 12px var(--tz-mono); text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.manual-parameters input[type="number"]::-webkit-inner-spin-button,
.manual-parameters input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.manual-content { flex: 1; min-height: 0; display: flex; }
.manual-directory {
  flex: 0 0 214px; min-height: 0; display: flex; flex-direction: column;
  border-right: 1px solid var(--tz-line); background: color-mix(in srgb, var(--tz-surface-2) 32%, transparent);
}
.manual-dir-head { flex: 0 0 34px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--tz-line); color: var(--tz-muted); font-size: 11.5px; }
.manual-plan-options { flex: 1; min-height: 0; overflow: auto; padding: 6px; display: grid; grid-auto-rows: min-content; gap: 3px; scrollbar-width: thin; }
.manual-plan-option {
  display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 7px;
  border: 1px solid transparent; border-radius: 5px; color: var(--tz-text-2);
  font-size: 12px; cursor: pointer; user-select: none;
}
.manual-plan-option:hover { background: rgba(255, 255, 255, .04); }
.manual-plan-option.selected { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.manual-plan-option.current { box-shadow: inset 2px 0 var(--tz-accent); }
.manual-plan-option input { display: none; }
.manual-plan-option .position-check {
  width: 13px; height: 13px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(150, 185, 225, .40); background: linear-gradient(180deg, #1b2532, #0f1720); color: #f4c66a;
}
.manual-plan-option.selected .position-check { border-color: #9b651a; background: radial-gradient(circle at 35% 30%, #ffe9a8, #d99a31); color: #3a2402; }
.manual-plan-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manual-hit { color: var(--tz-accent); font: 11px var(--tz-mono); }
.manual-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.manual-main-top {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-bottom: 1px solid var(--tz-line);
}
.manual-plan-tabs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.manual-plan-tab { flex: none; height: 25px; padding: 0 9px; border: 1px solid var(--tz-line); border-radius: 5px; background: var(--tz-surface-2); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer; }
.manual-plan-tab.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.manual-current-hit { flex: none; color: var(--tz-muted); font-size: 11.5px; }
.manual-current-hit strong { color: var(--tz-accent); font: 13px var(--tz-mono); }
.manual-current-hit small { color: var(--tz-accent); }
.manual-main-top .analysis-glass-control { flex: none; height: 26px; padding: 0 8px; font-size: 11.5px; }
.manual-records-scroll { flex: 1; min-height: 0; overflow: auto; }
.manual-records th, .manual-records td { text-align: center; }
.manual-records .record-period { white-space: nowrap; font-family: var(--tz-mono); font-size: 11.5px; }
.manual-records .record-period span:last-child { color: var(--tz-muted); font-size: 10.5px; }
.manual-records .record-numbers { text-align: left; min-width: 220px; }
.manual-records .record-draw { white-space: nowrap; font-family: var(--tz-mono); font-weight: 500; }
.manual-records .record-current { background: var(--tz-accent-soft); }
.manual-records .record-current .record-numbers { color: var(--tz-accent); font-weight: 600; }
.plan-manual .formula-numbers { flex: none; }
.manual-empty { padding: 36px 12px; text-align: center; color: var(--tz-muted); font-size: 12px; margin: 0; }
.plan-manual-results { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.result-navigation {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-bottom: 1px solid var(--tz-line);
}
.result-navigation .analysis-glass-control { flex: none; height: 27px; padding: 0 9px; font-size: 11.5px; }
.manual-result-tabs { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.manual-result-tabs .analysis-glass-control { flex: none; height: 26px; padding: 0 9px; font-size: 11.5px; }
.manual-result-tabs .analysis-glass-control[aria-selected="true"] { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.manual-result-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.manual-result-panel .plan-result-scroll { flex: 1; min-height: 0; overflow: auto; }

/* ===== 计划系统 · 立体玻璃控件 ===== */
:where(#page-plan, .plan-search-layer) .analysis-glass-control {
  background: linear-gradient(180deg, rgba(48, 68, 90, .72), rgba(13, 21, 29, .92));
  border: 1px solid rgba(150, 185, 225, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 3px 7px -4px rgba(0, 0, 0, .9);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
:where(#page-plan, .plan-search-layer) .analysis-glass-control:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(46, 230, 176, .40);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 7px 15px -7px rgba(0, 0, 0, .95), 0 0 14px -7px rgba(46, 230, 176, .65);
}
:where(#page-plan, .plan-search-layer) .analysis-glass-control:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45);
}
:where(#page-plan, .plan-search-layer) .analysis-glass-control:disabled {
  opacity: .45;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
:where(#page-plan) .plan-tab {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, rgba(48, 68, 90, .72), rgba(13, 21, 29, .92));
  border: 1px solid rgba(150, 185, 225, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 3px 7px -4px rgba(0, 0, 0, .9);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
:where(#page-plan) .plan-tab:hover { transform: translateY(-1px); border-color: rgba(150, 185, 225, .40); }
:where(#page-plan) .plan-tab::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: #8da3b8; box-shadow: 0 0 6px rgba(141, 163, 184, .6);
}
:where(#page-plan) .plan-tab[data-planpage="formula"]::before { background: #4fd1c5; box-shadow: 0 0 7px rgba(79, 209, 197, .7); }
:where(#page-plan) .plan-tab[data-planpage="diamond"]::before { background: #7fb3ff; box-shadow: 0 0 7px rgba(127, 179, 255, .7); }
:where(#page-plan) .plan-tab[data-planpage="platinum"]::before { background: #e7c97a; box-shadow: 0 0 7px rgba(231, 201, 122, .7); }
:where(#page-plan) .plan-tab[data-planpage="manual"]::before { background: #f09b7a; box-shadow: 0 0 7px rgba(240, 155, 122, .7); }
:where(#page-plan) .plan-tab.on {
  border-color: var(--tz-accent-line);
  background: linear-gradient(180deg, rgba(46, 230, 176, .22), rgba(20, 52, 47, .55));
  color: var(--tz-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 14px -6px rgba(46, 230, 176, .75);
}

:where(#page-plan) .plan-kill-setting.selected { border-color: var(--tz-accent-line) !important; background: linear-gradient(180deg, rgba(46,230,176,.22), rgba(20,52,47,.55)) !important; color: var(--tz-accent) !important; }


.manual-menu { position: fixed; z-index: 320; height: 32px; padding: 0 12px; border-radius: 7px; color: var(--tz-text); font-size: 12px; cursor: pointer; }

/* 有迹可循 · 统计位置横排对齐 */
.trace-toolbar .trace-period-label {
  display: inline-flex;
  align-items: center;
  height: 30px;
  line-height: 30px;
}
.trace-toolbar .st-modes {
  height: 30px;
  padding: 0;
  align-items: center;
}
.trace-toolbar .st-pos-caption {
  height: 30px;
  align-items: center;
  color: var(--tz-muted);
  line-height: 30px;
}
.trace-toolbar .st-pos-caption svg {
  width: 14px;
  height: 14px;
}

/* 各分析页：统计位置标题与位置按钮同高居中 */
.st-modes > .st-pos-caption { height: 30px; line-height: 30px; }


/* 计划类型源站图标 */
:where(#page-plan) .plan-tab::before { display: none; content: none; }
:where(#page-plan) .plan-tab .plan-type-icon { width: 18px; height: 18px; flex: none; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }


/* 计划系统按钮文字颜色（避免深色底上继承黑色） */
:where(#page-plan, .plan-search-layer) .analysis-glass-control { color: var(--tz-text-2); }
:where(#page-plan, .plan-search-layer) .analysis-glass-control:hover:not(:disabled) { color: var(--tz-text); }


/* ===== PK10 · 页面框架与走势参数 ===== */
#page-pk10 { min-height: 0; }
.pk10-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.pk10-tabs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; flex: none; }
.pk10-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border: 1px solid rgba(150, 185, 225, .22); border-radius: 7px;
  background: linear-gradient(180deg, rgba(48, 68, 90, .72), rgba(13, 21, 29, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 3px 7px -4px rgba(0, 0, 0, .9);
  color: var(--tz-text-2); font-size: 12.5px; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.pk10-tab svg { flex: none; opacity: .9; }
.pk10-tab:hover { transform: translateY(-1px); border-color: rgba(150, 185, 225, .42); color: var(--tz-text); }
.pk10-tab.on {
  border-color: var(--tz-accent-line);
  background: linear-gradient(180deg, rgba(46, 230, 176, .22), rgba(20, 52, 47, .55));
  color: var(--tz-accent); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 14px -6px rgba(46, 230, 176, .75);
}
.pk10-work {
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--tz-line); border-radius: 10px; background: var(--tz-surface);
}
.pk10-trade { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk10-toolbar {
  flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px;
  padding: 8px 12px; border-bottom: 1px solid var(--tz-line);
  background: color-mix(in srgb, var(--tz-surface-2) 42%, transparent);
}
.pk10-period-field { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.pk10-period-label { color: var(--tz-muted); font-size: 12px; white-space: nowrap; }
.pk10-period-stepper {
  display: inline-flex; align-items: center; height: 30px; overflow: hidden;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: linear-gradient(180deg, #1b2532, #0f1720);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 4px -2px rgba(0, 0, 0, .85);
}
.pk10-period-stepper button { width: 24px; height: 100%; border: 0; background: transparent; color: var(--tz-text-2); font-size: 14px; cursor: pointer; }
.pk10-period-stepper button:hover { color: var(--tz-accent); background: rgba(255, 255, 255, .05); }
.pk10-period-stepper input {
  width: 70px; height: 100%; border: 0; border-left: 1px solid var(--tz-line); border-right: 1px solid var(--tz-line);
  background: transparent; color: var(--tz-text); text-align: center; font: 12px var(--tz-mono);
  -moz-appearance: textfield; appearance: textfield;
}
.pk10-period-stepper input::-webkit-inner-spin-button,
.pk10-period-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pk10-period-suffix { color: var(--tz-muted); font-size: 11.5px; }
.pk10-series-controls { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; position: relative; }
.pk10-series-menu { position: relative; flex: none; }
.pk10-series-button {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: linear-gradient(180deg, rgba(48, 68, 90, .72), rgba(13, 21, 29, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 3px 7px -4px rgba(0, 0, 0, .9);
  color: var(--tz-text-2); font-size: 12px; cursor: pointer; white-space: nowrap;
}
.pk10-series-button:hover { border-color: rgba(150, 185, 225, .42); color: var(--tz-text); }
.pk10-series-button.active { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.pk10-series-label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.pk10-chevron { flex: none; color: var(--tz-muted); }
.pk10-series-dropdown {
  position: absolute; top: calc(100% + 5px); left: 0; z-index: 90;
  width: 240px; max-height: 320px; overflow: auto;
  border: 1px solid var(--tz-line); border-radius: 8px;
  background: linear-gradient(180deg, #18222e, #0c141c);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 5px;
}
.pk10-series-dropdown-inner { display: flex; flex-direction: column; gap: 2px; }
.pk10-series-item {
  display: flex; align-items: center; gap: 7px; width: 100%; min-height: 28px; padding: 0 8px;
  border: 1px solid transparent; border-radius: 5px; background: transparent;
  color: var(--tz-text-2); font-size: 12px; text-align: left; cursor: pointer; white-space: nowrap;
}
.pk10-series-item:hover { background: rgba(255, 255, 255, .05); color: var(--tz-text); }
.pk10-series-item.active { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.pk10-series-check { flex: none; color: var(--tz-accent); }
.pk10-series-check-space { width: 14px; flex: none; }
.pk10-series-sep { width: 100%; border: 0; border-top: 1px solid var(--tz-line); margin: 3px 0; }
.pk10-trade-caption { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.pk10-trade-caption strong {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--tz-text); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.pk10-trade-caption strong svg { color: var(--tz-accent); }
.pk10-order-button {
  display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 10px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: linear-gradient(180deg, rgba(48, 68, 90, .72), rgba(13, 21, 29, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 3px 7px -4px rgba(0, 0, 0, .9);
  color: var(--tz-text-2); font-size: 11.5px; cursor: pointer;
}
.pk10-order-button:hover { border-color: var(--tz-accent-line); color: var(--tz-accent); }
.pk10-trade-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.pk10-table-placeholder { text-align: center; color: var(--tz-muted); padding: 30px; }
.pk10-table-placeholder strong { display: block; color: var(--tz-text); font-size: 15px; font-weight: 500; margin-bottom: 7px; }
.pk10-table-placeholder p { margin: 0; font-size: 12px; }
.pk10-pending { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--tz-muted); }
.pk10-pending strong { color: var(--tz-text); font-size: 17px; font-weight: 500; }
.pk10-pending p { margin: 0; font-size: 12px; }

/* ===== PK10 · 走势表格 ===== */
.pk10-game-picker { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.pk10-game-picker > span { color: var(--tz-muted); font-size: 12px; white-space: nowrap; }
.pk10-game-picker select {
  height: 30px; min-width: 132px; max-width: 190px; padding: 0 7px;
  border: 1px solid rgba(150, 185, 225, .22); border-radius: 7px;
  background: linear-gradient(180deg, rgba(48, 68, 90, .72), rgba(13, 21, 29, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 3px 7px -4px rgba(0, 0, 0, .9);
  color: var(--tz-text-2); font-size: 12px;
}
.pk10-trade-body { align-items: stretch; justify-content: flex-start; }
.pk10-grid-area { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk10-grid-scroll {
  flex: 1; min-height: 0; overflow: auto; position: relative;
  background: #0e161f; scrollbar-width: thin;
}
.pk10-grid-scroll table, .pk10-footer-scroll table {
  border-collapse: separate; border-spacing: 0; table-layout: fixed;
  border: 0; margin: 0;
}
.pk10-grid-scroll th, .pk10-grid-scroll td {
  height: 28px; padding: 0; border-right: 1px solid rgba(120, 150, 180, .13);
  border-bottom: 1px solid rgba(120, 150, 180, .13);
  text-align: center; vertical-align: middle; white-space: nowrap;
  overflow: hidden; text-overflow: clip; font-size: 12px; font-weight: 400;
}
.pk10-grid-scroll thead th { color: #c7d7e7; }
.pk10-th-group { position: sticky; top: 0; z-index: 4; font-weight: 500; }
.pk10-th-col { position: sticky; top: 28px; z-index: 4; color: var(--tz-muted); }
.pk10-grid-scroll .pk10-sticky-col { position: sticky; left: 0; z-index: 3; }
.pk10-grid-scroll thead .pk10-sticky-col { z-index: 7; }
.pk10-issue { background: #141d28 !important; color: #d4e4f4 !important; font-family: var(--tz-mono); font-size: 11.5px; }
.pk10-grid-scroll tbody td { color: #9db0c4; }
.pk10-grid-scroll tbody td.pk10-hit { color: #fff !important; font-weight: 600; }
.pk10-spacer td { border: 0 !important; padding: 0 !important; background: transparent !important; }
.pk10-tone-neutral { background: #171f2b; }
.pk10-tone-blue { background: #142433; }
.pk10-tone-teal { background: #12282a; }
.pk10-tone-sand { background: #282216; }
.pk10-tone-purple { background: #211b30; }
.pk10-tone-green { background: #14271d; }
.pk10-grid-scroll thead .pk10-tone-neutral { background: #1b2532; }
.pk10-grid-scroll thead .pk10-tone-blue { background: #172a3b; }
.pk10-grid-scroll thead .pk10-tone-teal { background: #152f31; }
.pk10-grid-scroll thead .pk10-tone-sand { background: #302a1b; }
.pk10-grid-scroll thead .pk10-tone-purple { background: #271f39; }
.pk10-grid-scroll thead .pk10-tone-green { background: #172e22; }
.pk10-grid-footer {
  flex: none; height: 196px; overflow: hidden;
  border-top: 1px solid rgba(120, 150, 180, .24);
  background: #0e161f;
}
.pk10-footer-scroll { width: 100%; height: 100%; overflow: hidden; }
.pk10-footer-scroll td {
  height: 28px; padding: 0; border-right: 1px solid rgba(120, 150, 180, .13);
  border-bottom: 1px solid rgba(120, 150, 180, .13);
  text-align: center; vertical-align: middle; white-space: nowrap;
  overflow: hidden; text-overflow: clip; font-size: 12px; color: #9db0c4;
}
.pk10-ft-name {
  position: sticky; left: 0; z-index: 3;
  background: #141d28 !important; color: #d4e4f4 !important;
  font-size: 11px !important; white-space: nowrap;
}
.pk10-ft-cell { cursor: pointer; }
.pk10-ft-cell:hover { box-shadow: inset 0 0 0 1px rgba(46, 230, 176, .55); }
.pk10-ft-cell.selected { background: inherit !important; }
.pk10-grid-state {
  flex: 1; min-height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: var(--tz-muted);
}
.pk10-grid-state strong { color: var(--tz-text); font-size: 13px; font-weight: 500; }
.pk10-grid-state.is-error strong { color: #ff9f8f; }
.pk10-grid-state .analysis-glass-control {
  height: 29px; padding: 0 12px; border: 1px solid var(--tz-line); border-radius: 6px;
  background: linear-gradient(180deg, rgba(48, 68, 90, .72), rgba(13, 21, 29, .92));
  color: var(--tz-text-2); font-size: 12px; cursor: pointer;
}

.pk10-hit-badge { display: flex; align-items: center; justify-content: center; height: 24px; margin: 2px; border-radius: 4px; color: #fff; font-weight: 600; font-size: 11.5px; }


/* PK10 模拟选号：立体玻璃按键 */
.pk10-ft-pick { padding: 2px !important; }
.pk10-ft-key {
  display: flex; align-items: center; justify-content: center;
  height: 24px; border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .10);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .03) 46%, rgba(0, 0, 0, .30));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .42), 0 1px 2px rgba(0, 0, 0, .55);
  color: #cfe0ee; font-size: 11.5px; font-weight: 600;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background-color .14s ease;
}
.pk10-ft-pick:hover .pk10-ft-key {
  transform: translateY(-1px); border-color: rgba(46, 230, 176, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(0, 0, 0, .42), 0 4px 8px -3px rgba(0, 0, 0, .8), 0 0 10px -5px rgba(46, 230, 176, .7);
}
.pk10-ft-pick:active .pk10-ft-key {
  transform: translateY(0); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55);
}
.pk10-ft-cell.selected .pk10-ft-key {
  border-color: rgba(46, 230, 176, .75);
  background-image: linear-gradient(180deg, #57f0c8, #19b98a 58%, #0d8f69);
  color: #03241c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .30), 0 3px 8px -3px rgba(46, 230, 176, .85);
}
.pk10-series-item {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(0, 0, 0, .10));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}


/* ===== PK10 · 历史开奖 ===== */
.pk10-history { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk10-history-toolbar {
  flex: none; display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 6px 12px; border-bottom: 1px solid var(--tz-line);
}
.pk10-history-toolbar strong { color: var(--tz-text); font-size: 14px; font-weight: 600; }
.pk10-history-count { color: var(--tz-muted); font-size: 12px; }
.pk10-history-modes { display: flex; align-items: center; gap: 5px; margin-left: 4px; }
.pk10-history-modes button {
  min-width: 52px; height: 30px; padding: 0 12px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: linear-gradient(180deg, rgba(48, 68, 90, .72), rgba(13, 21, 29, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 3px 7px -4px rgba(0, 0, 0, .9);
  color: var(--tz-text-2); font-size: 12px; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.pk10-history-modes button:hover { transform: translateY(-1px); border-color: rgba(150, 185, 225, .42); color: var(--tz-text); }
.pk10-history-modes button.active {
  border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46, 230, 176, .22), rgba(20, 52, 47, .55));
  color: var(--tz-accent); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 12px -6px rgba(46, 230, 176, .7);
}
.pk10-history-scroll { flex: 1; min-height: 0; overflow: auto; }
.pk10-history-table {
  table-layout: fixed; border-collapse: separate; border-spacing: 0;
  width: min(100%, 968px); min-width: 762px; font-size: 13px;
}
.pk10-col-time { width: 148px; }
.pk10-col-issue { width: 128px; }
.pk10-col-sum { width: 95px; }
.pk10-col-dragon { width: 117px; }
.pk10-history-table th {
  position: sticky; top: 0; z-index: 2; height: 28px;
  padding: 0 5px; background: var(--tz-surface-2); border-bottom: 1px solid var(--tz-line);
  color: var(--tz-muted); font-size: 12px; font-weight: 500;
}
.pk10-history-table td {
  height: 28px; padding: 0 5px; text-align: center; vertical-align: middle;
  border-bottom: 1px solid rgba(120, 150, 180, .12);
  color: var(--tz-text-2); font-size: 12px;
}
.pk10-history-table th + th, .pk10-history-table td + td { border-left: 1px solid rgba(120, 150, 180, .10); }
.pk10-history-table tbody tr:nth-child(2n) { background: rgba(255, 255, 255, .018); }
.pk10-history-table tbody tr.latest-row { background: var(--tz-accent-soft); }
.pk10-history-table tbody tr:hover:not(.latest-row) { background: rgba(255, 255, 255, .035); }
.pk10-time-cell { color: var(--tz-muted); font-family: var(--tz-mono); font-size: 11.5px; white-space: nowrap; }
.pk10-issue-cell { color: var(--tz-text); font-family: var(--tz-mono); font-size: 11.5px; }
.pk10-mobile-time { display: none; }
.pk10-rank-labels, .pk10-rank-grid {
  display: grid; grid-template-columns: repeat(10, minmax(24px, 1fr));
  align-items: center; gap: 2px;
}
.pk10-rank-labels { font-size: 11.5px; color: var(--tz-muted); }
.pk10-rank-number {
  width: 100%; max-width: 40px; height: 24px; justify-self: center;
  border: 0; border-radius: 4px; margin: 0; padding: 0;
  color: #fff; font: 600 12.5px/24px var(--tz-mono); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(0, 0, 0, .28), 0 1px 2px rgba(0, 0, 0, .45);
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}
.pk10-rank-number:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 7px -3px rgba(0, 0, 0, .8); }
.pk10-rank-number.faded { opacity: .22; }
.pk10-number-chip { background: var(--pk10-number-color); }
.pk10-rank-number.color11 { background: #92590f; }
.pk10-rank-number.color12 { background: #536782; }
.pk10-sum-values, .pk10-dragon-values { display: flex; align-items: center; justify-content: space-around; gap: 2px; }
.pk10-sum-values strong { color: var(--tz-text); font-family: var(--tz-mono); font-size: 12px; }
.pk10-sum-values .colorred, .pk10-dragon-values .colorred { color: #f07a6a; }
.pk10-sum-values .colorblue, .pk10-dragon-values .colorblue { color: #5aa9ff; }
.pk10-history-empty { height: 160px !important; color: var(--tz-muted) !important; }

/* ===== PK10 · 全胜计划 ===== */
.pk10-plan-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk10-plan-tabs { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--tz-line); }
.pk10-plan-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border: 1px solid rgba(150, 185, 225, .22); border-radius: 6px;
  background: linear-gradient(180deg, rgba(48, 68, 90, .72), rgba(13, 21, 29, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 3px 7px -4px rgba(0, 0, 0, .9);
  color: var(--tz-text-2); font-size: 13px; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.pk10-plan-tab img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.pk10-plan-tab:hover { transform: translateY(-1px); border-color: rgba(150, 185, 225, .42); color: var(--tz-text); }
.pk10-plan-tab.on { border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46, 230, 176, .22), rgba(20, 52, 47, .55)); color: var(--tz-accent); font-weight: 600; }
.pk10-plan-work { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.pk10-plan-diamond { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk10-plan-filters { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--tz-line); }
.pk10-plan-filter-row { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 0; padding-left: 40px; }
.pk10-plan-filter-row > span { position: absolute; left: 0; top: 0; height: 30px; display: flex; align-items: center; color: var(--tz-muted); font-size: 12px; font-weight: 500; }
.pk10-plan-filter-row button {
  min-width: 50px; height: 30px; padding: 0 10px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: linear-gradient(180deg, rgba(48, 68, 90, .72), rgba(13, 21, 29, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 3px 7px -4px rgba(0, 0, 0, .9);
  color: var(--tz-text-2); font-size: 13px; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.pk10-plan-filter-row button:hover { transform: translateY(-1px); border-color: rgba(150, 185, 225, .42); color: var(--tz-text); }
.pk10-plan-filter-row button.active { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 12px -6px rgba(46, 230, 176, .7); }
.pk10-plan-reading { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 12px; overflow: auto; }
.pk10-plan-heading { display: flex; align-items: baseline; gap: 9px; flex: none; }
.pk10-plan-heading strong { color: var(--tz-text); font-size: 15px; font-weight: 600; }
.pk10-plan-heading small { color: var(--tz-muted); font-size: 12px; }
.pk10-plan-items { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.pk10-plan-items button {
  min-width: 58px; height: 28px; padding: 0 9px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: linear-gradient(180deg, rgba(48, 68, 90, .62), rgba(13, 21, 29, .9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 2px 5px -3px rgba(0, 0, 0, .85);
  color: var(--tz-text-2); font-size: 12px; cursor: pointer;
}
.pk10-plan-items button.active { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.pk10-plan-detail-card {
  flex: none; display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 10px 12px;
  border: 1px solid var(--tz-line); border-radius: 8px;
  background: color-mix(in srgb, var(--tz-surface-2) 38%, transparent);
}
.pk10-plan-detail-card span { color: var(--tz-muted); font-size: 12px; }
.pk10-plan-detail-card strong { color: var(--tz-text); font-size: 13px; font-weight: 500; }
.pk10-plan-pending {
  flex: 1; min-height: 120px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; color: var(--tz-muted); text-align: center;
}
.pk10-plan-pending strong { color: var(--tz-text-2); font-size: 14px; font-weight: 500; }
.pk10-plan-pending p { margin: 0; font-size: 12px; }

.pk10-plan-results { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 10px; gap: 8px; }
.pk10-plan-result-scroll { flex: 1; min-height: 120px; overflow: auto; border: 1px solid var(--tz-line); border-radius: 8px; background: #0e161f; }
.pk10-plan-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.pk10-plan-table th { position: sticky; top: 0; z-index: 2; height: 28px; padding: 0 6px; background: var(--tz-surface-2); border-bottom: 1px solid var(--tz-line); color: var(--tz-muted); font-size: 11.5px; font-weight: 500; text-align: left; }
.pk10-plan-table th:nth-child(3), .pk10-plan-table th:nth-child(5) { text-align: center; }
.pk10-plan-table td { height: 28px; padding: 0 6px; border-bottom: 1px solid rgba(120,150,180,.12); color: var(--tz-text-2); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk10-plan-table td:nth-child(3), .pk10-plan-table td:nth-child(5) { text-align: center; }
.pk10-plan-period { font-family: var(--tz-mono); font-size: 11px; color: var(--tz-muted); }
.pk10-plan-numbers span { font-family: var(--tz-mono); color: var(--tz-text); }
.pk10-plan-numbers small { color: var(--tz-muted); font-size: 10.5px; }
.pk10-plan-draw { font-family: var(--tz-mono); font-size: 11px; }
.pk10-plan-current { background: var(--tz-accent-soft); }
.pk10-plan-state { display: inline-block; min-width: 28px; padding: 1px 5px; border-radius: 3px; font-size: 11px; text-align: center; }
.pk10-plan-state.hit { background: #1f8a4c; color: #fff; }
.pk10-plan-state.miss { color: #35d07f; }
.pk10-plan-state.pending { color: var(--tz-accent); }
.pk10-plan-state.incomplete { color: var(--tz-muted); }
.pk10-plan-empty { height: 80px !important; text-align: center !important; color: var(--tz-muted) !important; }
.pk10-plan-recommend { flex: none; display: flex; align-items: flex-end; gap: 8px; }
.pk10-plan-recommend label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; color: var(--tz-muted); font-size: 12px; }
.pk10-plan-recommend label small { color: var(--tz-accent); font-size: 11px; }
.pk10-plan-recommend textarea { width: 100%; height: 54px; resize: vertical; padding: 6px 8px; border: 1px solid var(--tz-line); border-radius: 6px; background: rgba(0,0,0,.18); color: var(--tz-text-2); font: 11.5px/1.7 var(--tz-mono); }
.pk10-plan-recommend button { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--tz-line); border-radius: 6px; background: linear-gradient(180deg, rgba(48,68,90,.72), rgba(13,21,29,.92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 3px 7px -4px rgba(0,0,0,.9); color: var(--tz-text-2); font-size: 12px; cursor: pointer; }


/* ===== PK10 · 铂金计划 ===== */
.pk10-platinum { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk10-plat-toolbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--tz-line); }
.pk10-plat-tabs { display: flex; align-items: center; gap: 5px; flex: none; }
.pk10-plat-tabs .analysis-glass-control { height: 30px; padding: 0 11px; border: 1px solid var(--tz-line); border-radius: 6px; background: linear-gradient(180deg, rgba(48,68,90,.72), rgba(13,21,29,.92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 3px 7px -4px rgba(0,0,0,.9); color: var(--tz-text-2); font-size: 13px; cursor: pointer; }
.pk10-plat-tabs .analysis-glass-control.active { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.pk10-plat-search { margin-left: auto; display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; width: 190px; border: 1px solid var(--tz-line); border-radius: 6px; background: linear-gradient(180deg, rgba(48,68,90,.55), rgba(13,21,29,.85)); }
.pk10-plat-search > span { color: var(--tz-muted); font-size: 14px; }
.pk10-plat-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--tz-text); font-size: 12px; outline: none; }
.pk10-plat-search input::-webkit-search-cancel-button { display: none; }
.pk10-plat-body { flex: 1; min-height: 0; display: flex; }
.pk10-plat-list { flex: 0 0 238px; min-height: 0; overflow-y: auto; padding: 8px; border-right: 1px solid var(--tz-line); background: color-mix(in srgb, var(--tz-surface-2) 34%, transparent); display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin; }
.pk10-plat-list.all { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 4px; }
.pk10-plat-item { display: flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 6px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--tz-text-2); font-size: 12px; text-align: left; cursor: pointer; min-width: 0; }
.pk10-plat-item:hover { background: rgba(255,255,255,.045); color: var(--tz-text); }
.pk10-plat-item.selected { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.pk10-plat-item .position-check { width: 13px; height: 13px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(150,185,225,.40); background: linear-gradient(180deg,#1b2532,#0f1720); color: #f4c66a; }
.pk10-plat-item.selected .position-check { border-color: #9b651a; background: radial-gradient(circle at 35% 30%, #ffe9a8, #d99a31); color: #3a2402; }
.pk10-plat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk10-plat-hot { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 6px; min-height: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--tz-text-2); font-size: 12px; text-align: left; cursor: pointer; }
.pk10-plat-hot:hover { background: rgba(255,255,255,.045); }
.pk10-plat-hot.selected { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.pk10-plat-rank { color: var(--tz-muted); font: 11px var(--tz-mono); }
.pk10-plat-hot small { color: var(--tz-accent); font: 11px var(--tz-mono); }
.pk10-plat-empty { color: var(--tz-muted); font-size: 11.5px; text-align: center; padding: 18px 0; margin: 0; grid-column: 1/-1; }
.pk10-plat-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.pk10-plat-reading { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk10-plat-reading > header { flex: none; display: flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-bottom: 1px solid var(--tz-line); }
.pk10-plat-reading > header strong { color: var(--tz-text); font-size: 13.5px; font-weight: 600; }
.pk10-plat-reading > header small { color: var(--tz-muted); font-size: 11.5px; }
.pk10-plat-text { flex: 1; min-height: 0; margin: 0; padding: 10px 12px; overflow: auto; color: var(--tz-text-2); background: rgba(0,0,0,.10); font: 12px/1.75 var(--tz-mono); white-space: pre; tab-size: 4; }

/* ===== PK10 · 人工计划 ===== */
.pk10-manual-plan { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk10-manual-controls { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 8px 12px; border-bottom: 1px solid var(--tz-line); background: color-mix(in srgb, var(--tz-surface-2) 38%, transparent); }
.pk10-manual-sel { display: inline-flex; align-items: center; gap: 6px; color: var(--tz-muted); font-size: 12px; white-space: nowrap; }
.pk10-manual-sel select { height: 29px; min-width: 92px; padding: 0 6px; border: 1px solid var(--tz-line); border-radius: 6px; background: linear-gradient(180deg, rgba(48,68,90,.72), rgba(13,21,29,.92)); color: var(--tz-text-2); font-size: 12px; }
.pk10-manual-num { display: inline-flex; align-items: center; gap: 6px; color: var(--tz-muted); font-size: 12px; white-space: nowrap; }
.pk10-manual-num .plan-stepper { height: 28px; }
.pk10-manual-sort { margin-left: auto; }
.pk10-manual-body { flex: 1; min-height: 0; display: flex; }
.pk10-manual-list { flex: 0 0 222px; min-height: 0; overflow-y: auto; border-right: 1px solid var(--tz-line); background: color-mix(in srgb, var(--tz-surface-2) 32%, transparent); padding: 6px; scrollbar-width: thin; }
.pk10-manual-list-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 7px; color: var(--tz-muted); font-size: 11.5px; }
.pk10-manual-list-head small { color: var(--tz-muted); font-size: 11px; }
.pk10-manual-row { display: flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 5px; border: 1px solid transparent; border-radius: 5px; }
.pk10-manual-row:hover { background: rgba(255,255,255,.04); }
.pk10-manual-row.selected { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); }
.pk10-manual-row.current { box-shadow: inset 2px 0 var(--tz-accent); }
.pk10-manual-check { display: inline-flex; align-items: center; flex: none; cursor: pointer; }
.pk10-manual-check input { display: none; }
.pk10-manual-check .position-check { width: 13px; height: 13px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(150,185,225,.40); background: linear-gradient(180deg,#1b2532,#0f1720); color: #f4c66a; }
.pk10-manual-row.selected .pk10-manual-check .position-check { border-color: #9b651a; background: radial-gradient(circle at 35% 30%, #ffe9a8, #d99a31); color: #3a2402; }
.pk10-manual-name { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--tz-text-2); font-size: 12px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; }
.pk10-manual-row.selected .pk10-manual-name { color: var(--tz-accent); font-weight: 600; }
.pk10-manual-name:disabled { opacity: .55; cursor: default; }
.pk10-manual-row > small { color: var(--tz-accent); font: 10.5px var(--tz-mono); flex: none; }
.pk10-manual-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.pk10-manual-result { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 9px 10px 10px; gap: 7px; }
.pk10-manual-tabs { flex: none; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pk10-manual-tab { display: inline-flex; align-items: center; gap: 4px; height: 27px; padding: 0 9px; border: 1px solid var(--tz-line); border-radius: 5px; background: linear-gradient(180deg, rgba(48,68,90,.62), rgba(13,21,29,.9)); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer; }
.pk10-manual-tab.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.pk10-manual-tab span { color: var(--tz-muted); font-size: 13px; line-height: 1; }
.pk10-manual-tab span:hover { color: #ff8a7a; }
.pk10-manual-stats { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 7px 9px; border: 1px solid var(--tz-line); border-radius: 7px; background: color-mix(in srgb, var(--tz-surface-2) 36%, transparent); color: var(--tz-muted); font-size: 11.5px; }
.pk10-manual-stats strong { color: var(--tz-text); font-size: 12.5px; font-weight: 600; }
.pk10-manual-stats b { color: var(--tz-accent); font-family: var(--tz-mono); font-size: 12px; }
.pk10-manual-result .pk10-plan-result-scroll { flex: 1; min-height: 100px; }
.pk10-manual-result .pk10-plan-recommend { padding-top: 2px; }
.pk10-manual-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--tz-muted); font-size: 12px; }
.pk10-manual-empty strong { font-weight: 500; }


/* ===== PK10 · 简易趋势 ===== */
.pk10-tide { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk10-tide-controls { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; padding: 8px 12px; border-bottom: 1px solid var(--tz-line); background: color-mix(in srgb, var(--tz-surface-2) 38%, transparent); }
.pk10-tide-period { display: inline-flex; align-items: center; gap: 6px; color: var(--tz-muted); font-size: 12px; }
.pk10-tide-period .plan-stepper { height: 28px; }
.pk10-tide-period input { width: 58px; }
.pk10-tide-sel { display: inline-flex; align-items: center; gap: 6px; color: var(--tz-muted); font-size: 12px; white-space: nowrap; }
.pk10-tide-sel select { height: 29px; min-width: 88px; max-width: 140px; padding: 0 6px; border: 1px solid var(--tz-line); border-radius: 6px; background: linear-gradient(180deg, rgba(48,68,90,.72), rgba(13,21,29,.92)); color: var(--tz-text-2); font-size: 12px; }
.pk10-tide-mock { display: flex; align-items: center; gap: 5px; margin-left: auto; color: var(--tz-muted); font-size: 11.5px; }
.pk10-tide-mock .analysis-glass-control { height: 27px; padding: 0 8px; border: 1px solid var(--tz-line); border-radius: 5px; background: linear-gradient(180deg, rgba(48,68,90,.62), rgba(13,21,29,.9)); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer; }
.pk10-tide-tabs { flex: none; display: flex; align-items: center; gap: 4px; padding: 6px 12px 0; }
.pk10-tide-tabs button { height: 28px; padding: 0 10px; border: 1px solid var(--tz-line); border-radius: 5px; background: var(--tz-surface-2); color: var(--tz-muted); font-size: 11.5px; cursor: pointer; }
.pk10-tide-tabs button.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.pk10-tide-inputs { flex: none; padding: 7px 12px; border-bottom: 1px solid var(--tz-line); }
.pk10-tide-digits { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pk10-tide-digits > span { color: var(--tz-muted); font-size: 12px; }
.pk10-tide-keys { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pk10-tide-keys button { width: 34px; height: 27px; border: 1px solid var(--tz-line); border-radius: 5px; background: linear-gradient(180deg, rgba(48,68,90,.62), rgba(13,21,29,.9)); color: var(--tz-text-2); font: 11.5px var(--tz-mono); cursor: pointer; }
.pk10-tide-keys button.selected { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 700; }
.pk10-tide-bit { display: inline-flex; align-items: center; gap: 5px; color: var(--tz-text-2); font-size: 12px; margin-left: auto; }
.pk10-tide-bit input { width: 13px; height: 13px; accent-color: var(--tz-accent); }
.pk10-tide-text { display: flex; align-items: flex-start; gap: 6px; }
.pk10-tide-text textarea { flex: 1; min-width: 0; height: 44px; resize: none; padding: 6px 8px; border: 1px solid var(--tz-line); border-radius: 6px; background: rgba(0,0,0,.18); color: var(--tz-text-2); font: 11.5px/1.6 var(--tz-mono); }
.pk10-tide-text .analysis-glass-control { height: 28px; padding: 0 9px; border: 1px solid var(--tz-line); border-radius: 5px; background: linear-gradient(180deg, rgba(48,68,90,.62), rgba(13,21,29,.9)); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer; }
.pk10-tide-feedback { flex: none; margin: 0; padding: 3px 12px; color: var(--tz-accent); font-size: 11px; }
.pk10-tide-chart-wrap { flex: 1; min-height: 0; position: relative; background: rgba(0,0,0,.08); }
.pk10-tide-chart { position: absolute; inset: 0; }
.pk10-tide-empty { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--tz-muted); background: linear-gradient(180deg, rgba(14,22,31,.55), rgba(14,22,31,.25)); }
.pk10-tide-empty strong { color: var(--tz-text-2); font-size: 13px; font-weight: 500; }
.pk10-tide-empty p { margin: 0; font-size: 11.5px; }

/* ===== PK10 · 频率统计 ===== */
.pk10-rate { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pk10-rate-controls { flex: none; padding: 8px 12px; border-bottom: 1px solid var(--tz-line); background: color-mix(in srgb, var(--tz-surface-2) 38%, transparent); display: flex; flex-direction: column; gap: 8px; }
.pk10-rate-period { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pk10-rate-period strong { color: var(--tz-text); font-size: 14px; font-weight: 600; }
.pk10-rate-period label { display: inline-flex; align-items: center; gap: 6px; color: var(--tz-muted); font-size: 12px; }
.pk10-rate-period .plan-stepper { height: 28px; }
.pk10-rate-period input { width: 66px; }
.pk10-rate-hint { color: var(--tz-muted); font-size: 11.5px; }
.pk10-rate-positions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.pk10-rate-positions > span { color: var(--tz-muted); font-size: 12px; margin-right: 3px; }
.pk10-rate-positions > small { color: var(--tz-muted); font-size: 11px; margin-left: 4px; }
.pk10-rate-pos { display: inline-flex; align-items: center; gap: 4px; height: 29px; padding: 0 8px; border: 1px solid var(--tz-line); border-radius: 6px; background: linear-gradient(180deg, rgba(48,68,90,.62), rgba(13,21,29,.9)); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer; }
.pk10-rate-pos input { display: none; }
.pk10-rate-pos.selected { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); color: var(--tz-accent); font-weight: 600; }
.pk10-rate-pos.disabled { opacity: .5; cursor: default; }
.pk10-rate-pos-num { color: var(--tz-muted); font: 10.5px var(--tz-mono); }
.pk10-rate-pos.selected .pk10-rate-pos-num { color: var(--tz-accent); }
.pk10-rate-results { flex: 1; min-height: 0; overflow: auto; padding: 10px 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-content: start; gap: 9px; }
.pk10-rate-group { border: 1px solid var(--tz-line); border-radius: 8px; background: rgba(0,0,0,.10); overflow: hidden; }
.pk10-rate-group h3 { margin: 0; padding: 7px 10px; border-bottom: 1px solid var(--tz-line); color: var(--tz-text); font-size: 12.5px; font-weight: 600; }
.pk10-rate-group table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.pk10-rate-group th { height: 26px; padding: 0 8px; text-align: left; color: var(--tz-muted); font-weight: 500; background: var(--tz-surface-2); border-bottom: 1px solid var(--tz-line); }
.pk10-rate-group td { height: 27px; padding: 0 8px; border-bottom: 1px solid rgba(120,150,180,.10); color: var(--tz-text-2); }
.pk10-rate-group tr.above td { color: #ff8b7d; }
.pk10-rate-group tr.below td { color: #5ed39b; }
.pk10-rate-name { font-family: var(--tz-mono); }
.pk10-rate-bar { position: relative; display: flex; align-items: center; gap: 6px; min-width: 90px; }
.pk10-rate-bar i { display: block; height: 8px; border-radius: 3px; background: currentColor; opacity: .65; min-width: 1px; }
.pk10-rate-bar span { font-family: var(--tz-mono); font-size: 10.5px; white-space: nowrap; }
.pk10-rate-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--tz-muted); }
.pk10-rate-empty strong { font-weight: 500; font-size: 12.5px; }

.pk10-tide-indicators { flex: none; padding: 5px 12px; margin-bottom: 0; border-bottom: 1px solid var(--tz-line); background: rgba(0,0,0,.08); }
.pk10-tide-indicators .st-ind { height: 24px; }


/* ================= 超级趋势 LegacyProView ================= */
.pro-page { flex: 1; min-height: 0; height: 100%; display: flex; }
.pro-shell { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 10px; }
.pro-top { flex: none; display: grid; grid-template-columns: minmax(400px, .92fr) minmax(540px, 1.18fr); gap: 8px; }
.pro-settings, .pro-selection { position: relative; border: 1px solid rgba(150,185,225,.16); border-radius: 10px; background: linear-gradient(180deg, rgba(32,46,62,.72), rgba(16,25,35,.82)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.28); padding: 9px 10px; }
.pro-label { color: var(--tz-muted); font-size: 11px; letter-spacing: .04em; }
.pro-label.pro-gap { margin-left: 8px; }
.pro-settings-head { display: flex; align-items: center; gap: 10px; }
.pro-levels { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pro-level { display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px; border-radius: 6px; border: 1px solid rgba(150,185,225,.14); background: linear-gradient(180deg, rgba(58,78,100,.55), rgba(20,30,42,.85)); color: var(--tz-text-2); font-size: 11px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 8px rgba(0,0,0,.25); }
.pro-level input { display: none; }
.pro-level:has(input:checked) { border-color: var(--tz-accent-line); color: var(--tz-accent); background: linear-gradient(180deg, rgba(46,230,176,.18), rgba(18,42,38,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(46,230,176,.12), 0 4px 10px rgba(0,0,0,.28); }
.pro-select { height: 26px; min-width: 92px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: linear-gradient(180deg, rgba(44,60,78,.9), rgba(18,27,38,.95)); color: var(--tz-text); font-size: 11.5px; padding: 0 8px; outline: none; }
.pro-cate { margin-left: auto; }
.pro-periods { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.pro-period { display: inline-flex; align-items: center; gap: 5px; color: var(--tz-muted); font-size: 11px; }
.pro-period input { width: 62px; height: 26px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: rgba(10,17,25,.72); color: var(--tz-text); text-align: center; font-size: 11.5px; outline: none; }
.pro-period i { font-style: normal; color: var(--tz-muted); font-size: 10.5px; }
.pro-tools-row { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.pro-mini { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: linear-gradient(180deg, rgba(60,80,102,.72), rgba(19,29,40,.92)); color: var(--tz-text-2); font-size: 11px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 3px 8px rgba(0,0,0,.26); }
.pro-mini:hover { color: var(--tz-text); border-color: rgba(150,185,225,.32); }
.pro-mini:disabled { opacity: .42; cursor: default; }
.pro-mini.pro-primary { color: #06231c; border-color: rgba(46,230,176,.5); background: linear-gradient(180deg, #7dffd9, #2ee6b0 55%, #14a381); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px rgba(20,163,129,.3); font-weight: 600; }
.pro-mini.mock-hit { color: #ffb3ab; }
.pro-mini.mock-miss { color: #8fe6c8; }

.pro-selection { display: flex; flex-direction: column; gap: 7px; min-height: 0; }
.pro-selection-head { display: flex; align-items: center; gap: 10px; }
.pro-methods { display: flex; flex-wrap: wrap; gap: 4px; }
.pro-method { height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(150,185,225,.14); background: linear-gradient(180deg, rgba(54,72,92,.55), rgba(18,27,38,.9)); color: var(--tz-muted); font-size: 11px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 3px 8px rgba(0,0,0,.22); }
.pro-method.on { color: var(--tz-accent); border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.16), rgba(17,38,34,.92)); }
.pro-selection-body { flex: 1; min-height: 0; overflow: auto; padding-right: 2px; }
.pro-choice-row { display: flex; align-items: center; gap: 8px; min-height: 30px; flex-wrap: wrap; }
.pro-choice-label { flex: none; width: 34px; color: var(--tz-muted); font-size: 11px; }
.pro-choice-actions { display: inline-flex; gap: 4px; margin-left: auto; }
.pro-numgrid { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.pro-numbtn { min-width: 27px; height: 27px; padding: 0 5px; border-radius: 5px; border: 1px solid rgba(150,185,225,.14); background: linear-gradient(180deg, rgba(58,76,96,.55), rgba(18,27,38,.9)); color: var(--tz-text-2); font-size: 11.5px; font-family: var(--tz-mono); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 6px rgba(0,0,0,.22); }
.pro-numbtn.on { color: var(--tz-accent); border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.2), rgba(17,38,34,.92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(46,230,176,.1), 0 3px 9px rgba(20,163,129,.25); }
.pro-random { display: inline-flex; align-items: center; gap: 4px; }
.pro-random input, .pro-num-input { width: 56px; height: 26px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: rgba(10,17,25,.72); color: var(--tz-text); text-align: center; font-size: 11px; outline: none; }
.pro-row-tools { gap: 6px; }
.pro-sync-actions, .pro-dt-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.pro-dm-advanced { margin-top: 5px; }
.pro-adv { color: var(--tz-accent); }
.pro-position-list { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.pro-pos { height: 26px; padding: 0 9px; border-radius: 5px; border: 1px solid rgba(150,185,225,.14); background: linear-gradient(180deg, rgba(58,76,96,.5), rgba(18,27,38,.9)); color: var(--tz-text-2); font-size: 11px; cursor: pointer; }
.pro-pos.on { color: var(--tz-accent); border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.18), rgba(17,38,34,.92)); }
.pro-dt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--tz-muted); font-size: 11px; }
.pro-input { flex: 1; min-width: 120px; height: 27px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: rgba(10,17,25,.72); color: var(--tz-text); padding: 0 8px; font-size: 11.5px; outline: none; }
.pro-check { display: inline-flex; align-items: center; gap: 4px; color: var(--tz-muted); font-size: 11px; }
.pro-check input { accent-color: #2ee6b0; }
.pro-fs-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.pro-pos-label { flex: none; width: 38px; color: var(--tz-muted); font-size: 11px; }
.pro-fs .pro-select { min-width: 84px; }

.pro-workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid rgba(150,185,225,.14); border-radius: 10px; background: linear-gradient(180deg, rgba(23,34,45,.7), rgba(11,18,26,.86)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; }
.pro-work-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; border-bottom: 1px solid rgba(150,185,225,.12); background: rgba(0,0,0,.12); }
.pro-chart-tabs { display: flex; gap: 4px; }
.pro-chart-tab { display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(150,185,225,.14); background: linear-gradient(180deg, rgba(58,76,96,.55), rgba(18,27,38,.9)); color: var(--tz-muted); font-size: 11px; cursor: pointer; }
.pro-chart-tab.on { color: var(--tz-accent); border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.16), rgba(17,38,34,.92)); }
.pro-indicators { flex: 1; justify-content: flex-end; margin: 0; border: 0; background: transparent; padding: 0; }
.pro-chart-area { flex: 1; min-height: 0; overflow: auto; padding: 4px 4px 6px; }
.pro-charts-grid { height: 100%; min-height: 320px; display: grid; grid-template-columns: minmax(0, 1fr); }
.pro-charts-grid.multi { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 380px; gap: 6px; }
.pro-chart-card { min-height: 0; display: flex; flex-direction: column; border: 1px solid rgba(150,185,225,.1); border-radius: 8px; background: rgba(9,15,22,.32); overflow: hidden; }
.pro-chart-card-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 8px; font-size: 10.5px; color: var(--tz-muted); border-bottom: 1px solid rgba(150,185,225,.08); }
.pro-chart-card-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pro-chart-card-title b { color: var(--tz-text-2); font-weight: 600; }
.pro-chart-issue b, .pro-chart-num b { color: var(--tz-text); }
.pro-chart-ind-values { color: var(--tz-muted); font-family: var(--tz-mono); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-chart-canvas { flex: 1; min-height: 0; }
.pro-chart-single { height: 100%; min-height: 320px; display: flex; flex-direction: column; }
.pro-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 220px; color: var(--tz-muted); gap: 6px; }
.pro-empty strong { color: var(--tz-text-2); font-size: 13px; font-weight: 500; }
.pro-empty p { margin: 0; font-size: 11px; }

/* 弹窗 */
.pro-dlg-mask { position: fixed; inset: 0; background: rgba(0,0,0,.46); z-index: 90; }
.pro-dlg { position: fixed; z-index: 91; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(640px, calc(100vw - 40px)); max-height: 86vh; display: flex; flex-direction: column; border-radius: 12px; border: 1px solid rgba(150,185,225,.22); background: linear-gradient(180deg, rgba(30,44,58,.98), rgba(13,21,30,.99)); box-shadow: 0 24px 64px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.pro-dlg header { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid rgba(150,185,225,.14); }
.pro-dlg header strong { font-size: 13px; }
.pro-dlg-close { width: 24px; height: 24px; border-radius: 5px; border: 1px solid rgba(150,185,225,.16); background: rgba(255,255,255,.04); color: var(--tz-muted); cursor: pointer; }
.pro-dlg-body { flex: 1; min-height: 0; overflow: auto; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 9px; }
.pro-dlg textarea { width: 100%; resize: vertical; box-sizing: border-box; border-radius: 7px; border: 1px solid rgba(150,185,225,.18); background: rgba(8,14,21,.7); color: var(--tz-text); padding: 7px 9px; font-family: var(--tz-mono); font-size: 11.5px; line-height: 1.6; outline: none; }
.pro-dlg-actions { display: flex; align-items: center; gap: 6px; }
.pro-dlg-toolbar { flex: none; display: flex; gap: 6px; padding: 6px 14px; border-bottom: 1px solid rgba(150,185,225,.1); }
.pro-dlg-dds { width: min(780px, calc(100vw - 40px)); }
.pro-dds-body { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.pro-dds-group { border: 1px solid rgba(150,185,225,.1); border-radius: 7px; padding: 6px; background: rgba(0,0,0,.12); }
.pro-dds-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.pro-dds-head b { font-size: 11px; color: var(--tz-text-2); font-weight: 500; }
.pro-dds-head button { margin-left: auto; }

.pro-toast { position: absolute; z-index: 95; top: 10px; left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 7px; background: rgba(20,32,44,.96); border: 1px solid rgba(46,230,176,.35); color: var(--tz-accent); font-size: 11.5px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }

/* 倍投 */
.pro-dlg-bt { width: min(560px, calc(100vw - 40px)); }
.pro-bt-modes { display: flex; gap: 5px; }
.pro-bt-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px 10px; }
.pro-bt-form label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--tz-muted); }
.pro-bt-form input, .pro-bt-form select { height: 28px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: rgba(10,17,25,.72); color: var(--tz-text); padding: 0 8px; font-size: 11.5px; outline: none; }
.pro-bt-mode-field { grid-column: 1 / -1; }
.pro-bt-error { color: #ff9d94; font-size: 11px; margin-right: auto; }
.pro-bt-result { min-height: 120px; max-height: 40vh; overflow: auto; border-top: 1px solid rgba(150,185,225,.1); padding-top: 8px; }
.pro-bt-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.pro-bt-table th { text-align: left; padding: 5px 6px; color: var(--tz-muted); font-weight: 500; border-bottom: 1px solid rgba(150,185,225,.14); position: sticky; top: 0; background: rgba(20,32,44,.98); }
.pro-bt-table td { padding: 4px 6px; border-bottom: 1px solid rgba(150,185,225,.07); font-family: var(--tz-mono); }
.pro-empty-line { color: var(--tz-muted); font-size: 11px; text-align: center; padding: 18px 0; }

/* 交集 */
.pro-dlg-jj { width: min(760px, calc(100vw - 40px)); }
.pro-jj-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 10px; }
.pro-jj-group { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; color: var(--tz-muted); }
.pro-jj-group textarea { rows: 2; }
.pro-jj-bottom { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(150,185,225,.1); padding-top: 8px; }
.pro-jj-result-head { display: flex; align-items: center; justify-content: space-between; }
.pro-jj-result-head strong { font-size: 12px; }
.pro-jj-tolerance { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--tz-muted); }
.pro-jj-tolerance select { height: 26px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: rgba(10,17,25,.72); color: var(--tz-text); padding: 0 6px; }

/* 综合随机 */
.pro-dlg-zh { width: min(860px, calc(100vw - 40px)); }
.pro-zh-tabs, .pro-zh-params { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pro-zh-params label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--tz-muted); }
.pro-zh-params input, .pro-zh-params select { height: 26px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: rgba(10,17,25,.72); color: var(--tz-text); padding: 0 8px; font-size: 11px; }
.pro-zh-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.pro-zh-columns h4 { margin: 0 0 5px; font-size: 11.5px; font-weight: 500; color: var(--tz-text-2); }
.pro-zh-groups { display: flex; flex-direction: column; gap: 3px; max-height: 40vh; overflow: auto; }
.pro-zh-group { display: grid; grid-template-columns: 18px 70px 52px minmax(0,1fr); align-items: center; gap: 5px; padding: 4px 6px; border-radius: 5px; border: 1px solid rgba(150,185,225,.08); background: rgba(255,255,255,.02); font-size: 10.5px; color: var(--tz-muted); }
.pro-zh-group b { color: var(--tz-text-2); font-weight: 500; }
.pro-zh-group i { font-style: normal; color: var(--tz-accent); }
.pro-zh-group span { font-family: var(--tz-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= 缩水工具 ================= */
.shrink-page, .numtools-page { flex: 1; min-height: 0; height: 100%; display: flex; }
.shrink-shell { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 8px 12px 10px; }
.sh-rail { flex: none; width: 118px; min-height: 0; overflow: auto; padding: 9px 8px; border: 1px solid rgba(150,185,225,.16); border-radius: 10px; background: linear-gradient(180deg, rgba(32,46,62,.72), rgba(16,25,35,.82)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.28); }
.sh-rail-title { font-size: 12px; font-weight: 600; color: var(--tz-text); padding: 2px 4px 8px; letter-spacing: .06em; }
.sh-rail-group { margin-bottom: 10px; }
.sh-rail-group p { margin: 0 0 4px; padding: 0 4px; font-size: 10.5px; color: var(--tz-muted); }
.sh-rail-btn { display: block; width: 100%; height: 28px; margin-bottom: 4px; border-radius: 6px; border: 1px solid rgba(150,185,225,.14); background: linear-gradient(180deg, rgba(58,76,96,.52), rgba(18,27,38,.9)); color: var(--tz-text-2); font-size: 11.5px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 6px rgba(0,0,0,.22); }
.sh-rail-btn.on { color: var(--tz-accent); border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.18), rgba(17,38,34,.92)); }
.sh-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid rgba(150,185,225,.14); border-radius: 10px; background: linear-gradient(180deg, rgba(23,34,45,.7), rgba(11,18,26,.86)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; position: relative; }
.sh-main-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid rgba(150,185,225,.12); background: rgba(0,0,0,.12); flex-wrap: wrap; }
.sh-title { display: flex; align-items: baseline; gap: 8px; }
.sh-title h3 { margin: 0; font-size: 14px; font-weight: 600; }
.sh-title span { font-size: 10.5px; color: var(--tz-muted); }
.sh-tolerance { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--tz-muted); }
.sh-select, .sh-text, .sh-num { height: 26px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: rgba(10,17,25,.72); color: var(--tz-text); padding: 0 7px; font-size: 11px; outline: none; }
.sh-select { min-width: 52px; }
.sh-text { min-width: 80px; }
.sh-run { height: 28px; padding: 0 14px; border-radius: 6px; border: 1px solid rgba(46,230,176,.5); background: linear-gradient(180deg, #7dffd9, #2ee6b0 55%, #14a381); color: #06231c; font-weight: 600; font-size: 11.5px; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px rgba(20,163,129,.3); }
.sh-run:disabled { opacity: .55; cursor: default; }
.sh-main-tabs { flex: none; display: flex; gap: 4px; padding: 6px 10px; border-bottom: 1px solid rgba(150,185,225,.1); background: rgba(0,0,0,.06); }
.sh-main-tab { height: 27px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(150,185,225,.14); background: linear-gradient(180deg, rgba(58,76,96,.5), rgba(18,27,38,.9)); color: var(--tz-muted); font-size: 11px; cursor: pointer; }
.sh-main-tab.on { color: var(--tz-accent); border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.16), rgba(17,38,34,.92)); }
.sh-main-body { flex: 1; min-height: 0; overflow: auto; padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.sh-card { flex: none; border: 1px solid rgba(150,185,225,.1); border-radius: 8px; background: rgba(9,15,22,.32); padding: 7px 9px; }
.sh-card-title { margin: 0 0 5px; font-size: 11.5px; font-weight: 500; color: var(--tz-text-2); }
.sh-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 27px; }
.sh-label { color: var(--tz-muted); font-size: 11px; margin: 0 2px; }
.sh-sep { flex-basis: 100%; height: 1px; background: rgba(150,185,225,.08); margin: 1px 0; }
.sh-btns { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.sh-pick { min-width: 26px; height: 25px; padding: 0 6px; border-radius: 5px; border: 1px solid rgba(150,185,225,.14); background: linear-gradient(180deg, rgba(58,76,96,.5), rgba(18,27,38,.9)); color: var(--tz-text-2); font-size: 11px; font-family: var(--tz-mono); cursor: pointer; }
.sh-pick.on { color: var(--tz-accent); border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.2), rgba(17,38,34,.92)); }
.sh-rowbtn { height: 25px; padding: 0 8px; border-radius: 5px; border: 1px solid rgba(150,185,225,.16); background: rgba(255,255,255,.03); color: var(--tz-text-2); font-size: 10.5px; cursor: pointer; }
.sh-rowbtn:hover { color: var(--tz-text); border-color: rgba(150,185,225,.3); }
.sh-check, .sh-radio { display: inline-flex; align-items: center; gap: 4px; color: var(--tz-muted); font-size: 11px; }
.sh-check input, .sh-radio input { accent-color: #2ee6b0; }
.sh-group { display: flex; flex-direction: column; gap: 6px; }
.sh-sec-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.sh-sec-tab { height: 25px; padding: 0 9px; border-radius: 5px; border: 1px solid rgba(150,185,225,.12); background: rgba(255,255,255,.02); color: var(--tz-muted); font-size: 10.5px; cursor: pointer; }
.sh-sec-tab.on { color: var(--tz-accent); border-color: var(--tz-accent-line); background: rgba(46,230,176,.1); }
.sh-selected header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sh-selected header strong { font-size: 11.5px; color: var(--tz-text-2); }
.sh-selected header span { color: var(--tz-accent); font-size: 11px; }
.sh-selected-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px dashed rgba(150,185,225,.08); }
.sh-selected-row b { display: inline-block; min-width: 90px; color: var(--tz-text-2); font-size: 11px; font-weight: 500; }
.sh-selected-row span { color: var(--tz-muted); font-size: 10.5px; font-family: var(--tz-mono); }
.sh-empty-inline { color: var(--tz-muted); font-size: 10.5px; }
.sh-hint { display: block; color: var(--tz-muted); font-size: 10px; margin: 2px 0 4px; }
.sh-compound { display: flex; flex-direction: column; gap: 3px; }
.sh-compound-item { text-align: left; border: 1px solid rgba(150,185,225,.1); border-radius: 5px; background: rgba(255,255,255,.02); color: var(--tz-text-2); font-size: 10.5px; padding: 3px 6px; cursor: pointer; }
.sh-compound-item.on { border-color: var(--tz-accent-line); color: var(--tz-accent); }
.sh-import { display: flex; flex-direction: column; gap: 8px; }
.sh-import-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.sh-import-card header strong { font-size: 11.5px; color: var(--tz-text-2); font-weight: 500; }
.sh-import-card header span { color: var(--tz-accent); font-size: 10.5px; }
.sh-import-card header .sh-rowbtn { margin-left: auto; }
.sh-import-card header .sh-radios { margin-left: auto; }
.sh-import textarea, .sh-results textarea { width: 100%; box-sizing: border-box; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: rgba(8,14,21,.7); color: var(--tz-text); padding: 6px 8px; font-family: var(--tz-mono); font-size: 11px; line-height: 1.55; resize: vertical; outline: none; }
.sh-results { display: flex; flex-direction: column; gap: 8px; }
.sh-counts { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--tz-muted); }
.sh-counts b { color: var(--tz-accent); font-weight: 600; }
.sh-result-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.sh-btn { height: 27px; padding: 0 11px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: linear-gradient(180deg, rgba(58,76,96,.55), rgba(18,27,38,.9)); color: var(--tz-text-2); font-size: 11px; cursor: pointer; }
.sh-btn-ghost { color: #ffb3ab; }
.sh-result-text { min-height: 200px; }
.sh-checkrow { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 11px; color: var(--tz-muted); }
.sh-checkrow .sh-text { width: 150px; }
.sh-checkmsg { color: var(--tz-accent); font-size: 11px; }
.sh-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(5,10,15,.45); color: var(--tz-accent); font-size: 12px; z-index: 5; }

/* ================= 号码工具 ================= */
#numToolsHost { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nt-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 12px 10px; gap: 8px; }
.nt-head { flex: none; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 7px 11px; border: 1px solid rgba(150,185,225,.14); border-radius: 10px; background: linear-gradient(180deg, rgba(30,44,58,.72), rgba(14,22,31,.85)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.nt-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.nt-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.nt-tab { height: 27px; padding: 0 11px; border-radius: 6px; border: 1px solid rgba(150,185,225,.14); background: linear-gradient(180deg, rgba(58,76,96,.5), rgba(18,27,38,.9)); color: var(--tz-muted); font-size: 11px; cursor: pointer; }
.nt-tab.on { color: var(--tz-accent); border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.16), rgba(17,38,34,.92)); }
.nt-body { flex: 1; min-height: 0; overflow: auto; }
.nt-tool { display: flex; flex-direction: column; gap: 8px; }
.nt-panel { border: 1px solid rgba(150,185,225,.12); border-radius: 9px; background: linear-gradient(180deg, rgba(24,36,48,.55), rgba(12,20,28,.72)); padding: 9px 11px; }
.nt-panel > h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--tz-text-2); display: flex; align-items: center; gap: 8px; }
.nt-panel > h3 small { color: var(--tz-accent); font-size: 10.5px; font-weight: 400; }
.nt-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px 12px; }
.nt-form-grid label { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; color: var(--tz-muted); }
.nt-form-grid label.nt-wide { grid-column: 1 / -1; }
.nt-form-grid input, .nt-form-grid select, .nt-tool select, .nt-tool textarea, .nt-tool input[type=text] { border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: rgba(9,16,23,.72); color: var(--tz-text); padding: 0 8px; font-size: 11px; outline: none; }
.nt-form-grid input, .nt-form-grid select, .nt-tool select, .nt-tool input[type=text] { height: 27px; }
.nt-tool textarea { width: 100%; box-sizing: border-box; padding: 6px 8px; font-family: var(--tz-mono); font-size: 11px; line-height: 1.55; resize: vertical; }
.nt-bt-modes { display: flex; gap: 4px; margin-bottom: 8px; }
.nt-mode { height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(150,185,225,.14); background: linear-gradient(180deg, rgba(58,76,96,.5), rgba(18,27,38,.9)); color: var(--tz-muted); font-size: 10.5px; cursor: pointer; }
.nt-mode.on { color: var(--tz-accent); border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.16), rgba(17,38,34,.92)); }
.nt-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 10.5px; color: var(--tz-muted); }
.nt-btn { height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(150,185,225,.18); background: rgba(255,255,255,.03); color: var(--tz-text-2); font-size: 10.5px; cursor: pointer; }
.nt-btn.primary { color: #06231c; border-color: rgba(46,230,176,.5); background: linear-gradient(180deg, #7dffd9, #2ee6b0 55%, #14a381); font-weight: 600; }
.nt-btn:disabled { opacity: .45; cursor: default; }
.nt-error { color: #ff9d94; margin-right: auto; }
.nt-table-wrap { overflow: auto; max-height: 46vh; }
.nt-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.nt-table th { position: sticky; top: 0; text-align: left; padding: 5px 6px; color: var(--tz-muted); font-weight: 500; border-bottom: 1px solid rgba(150,185,225,.14); background: rgba(18,28,38,.98); }
.nt-table td { padding: 4px 6px; border-bottom: 1px solid rgba(150,185,225,.07); font-family: var(--tz-mono); }
.nt-empty { color: var(--tz-muted); font-size: 11px; text-align: center; padding: 16px 0; margin: 0; }
.nt-jj-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 10px; }
.nt-jj-group header { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--tz-muted); margin-bottom: 3px; }
.nt-jj-group header small { color: var(--tz-accent); }
.nt-jj-group header .nt-mini { margin-left: auto; }
.nt-jj-group header .nt-mini + .nt-mini { margin-left: 0; }
.nt-mini { height: 22px; padding: 0 7px; border-radius: 5px; border: 1px solid rgba(150,185,225,.16); background: rgba(255,255,255,.03); color: var(--tz-text-2); font-size: 10px; cursor: pointer; }
.nt-jj-result { min-height: 90px; }
.nt-jj-bottom { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 10.5px; color: var(--tz-muted); }
.nt-join-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.nt-join-head h3 { margin: 0; }
.nt-join-modes { display: flex; gap: 4px; flex-wrap: wrap; }
.nt-join-positions { display: flex; flex-direction: column; gap: 5px; }
.nt-join-pos { display: flex; align-items: center; gap: 7px; }
.nt-join-pos > span { flex: none; width: 70px; color: var(--tz-muted); font-size: 10.5px; font-family: var(--tz-mono); }
.nt-join-pos textarea { flex: 1; min-height: 30px; height: 30px; }
.nt-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 10.5px; color: var(--tz-muted); margin-bottom: 6px; }
.nt-check { display: inline-flex; align-items: center; gap: 4px; color: var(--tz-muted); font-size: 10.5px; }
.nt-check input { accent-color: #2ee6b0; }
.nt-split-result { min-height: 110px; }
.nt-rand-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.nt-count-input { width: 130px; }
.nt-pager { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 10.5px; color: var(--tz-muted); }
.nt-rand-result { min-height: 110px; }
.nt-checkmsg { color: var(--tz-accent); font-size: 11px; }
.sh-head-total { color: var(--tz-accent); font-size: 10.5px; font-weight: 500; }

.nt-jj-group textarea.invalid { border-color: #ff9d94; box-shadow: 0 0 0 1px rgba(255,157,148,.18); }


/* 三维玻璃按钮统一（缩水 / 号码工具） */
.sh-rowbtn, .nt-btn, .nt-mini {
  background: linear-gradient(180deg, rgba(62,82,104,.62), rgba(19,29,40,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 3px 8px rgba(0,0,0,.26);
}
.sh-rowbtn:hover, .nt-btn:hover, .nt-mini:hover {
  color: var(--tz-text);
  border-color: rgba(150,185,225,.34);
}
.nt-btn.primary, .sh-run {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px rgba(20,163,129,.3);
}
.sh-main-tab, .nt-tab, .nt-mode, .sh-sec-tab, .sh-rail-btn {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 3px 8px rgba(0,0,0,.24);
}


/* ================= 缩水工具（源站桌面版式，1:1 结构） ================= */
.shrink-page > .legacy-shrink { flex: 1; min-width: 0; min-height: 0; height: 100%; }
.legacy-shrink {
  --ui-surface: #0c1620;
  --ui-surface-solid: #09121a;
  --ui-glass: rgba(20,32,44,.72);
  --ui-panel-surface: #101d29;
  --ui-border: rgba(150,185,225,.16);
  --ui-border-strong: rgba(150,185,225,.34);
  --ui-muted: #7a8da5;
  --ui-text: #e9f1f9;
  --ui-accent: #2ee6b0;
  --ui-accent-strong: #1cc79a;
  --ui-accent-soft: rgba(46,230,176,.14);
  --ui-on-accent: #06231c;
  --ui-hover: rgba(150,185,225,.08);
  --ui-table-head: rgba(255,255,255,.045);
  --ui-table-head-strong: rgba(255,255,255,.08);
  --ui-table-line: rgba(150,185,225,.09);
  --ui-table-group: rgba(150,185,225,.18);
  --ui-table-stripe: rgba(255,255,255,.015);
  --ui-control-height: 26px;
  --ui-control-compact: 24px;
  --ui-radius: 6px;
  --ui-font-size: 11.5px;
  --ui-font: inherit;
  --ui-primary-bg: linear-gradient(180deg, #7dffd9, #2ee6b0 55%, #14a381);
  --ui-primary-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px rgba(20,163,129,.3);
  --ui-danger-text: #ff9d94;
  --ui-danger-surface: rgba(255,90,80,.12);
  --ui-dialog-scrim: rgba(0,0,0,.5);
  --panel-radius: 8px;
  --panel-border: rgba(150,185,225,.16);
  --workspace-bg: transparent;
  background: transparent;
}
.legacy-shrink{min-width:0;min-height:0;color:var(--ui-text);background:var(--ui-surface);font:var(--ui-font-size) var(--ui-font);font-variant-numeric:tabular-nums;flex-direction:column;display:flex;overflow:hidden}.legacy-shrink--embedded{height:100%}.legacy-shrink .shrink-pages{border-bottom:1px solid var(--ui-border);background:var(--ui-glass);flex-wrap:wrap;flex:none;align-items:center;gap:12px 24px;padding:8px 12px;display:flex}.legacy-shrink .shrink-family{align-items:center;gap:4px;display:flex}.legacy-shrink .shrink-family+.shrink-family{border-left:1px solid var(--ui-border);padding-left:24px}.legacy-shrink .shrink-pages p{color:var(--ui-muted);margin:0 8px 0 0;font-size:12px;font-weight:600}.legacy-shrink .shrink-busy{color:var(--ui-accent);margin-left:auto}.legacy-shrink button,.legacy-shrink input,.legacy-shrink select,.legacy-shrink textarea{font:inherit;color:inherit}.legacy-shrink button{min-height:var(--ui-control-height);border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface);cursor:pointer;padding:3px 7px;line-height:18px}.legacy-shrink button:hover{border-color:var(--ui-border-strong);background:var(--ui-hover)}.legacy-shrink button.selected:where(:not(.analysis-glass-control)){color:var(--ui-on-accent);background:var(--ui-accent-strong);border-color:var(--ui-accent-strong)}.legacy-shrink button:disabled{cursor:default;color:var(--ui-muted);background:var(--ui-glass);border-color:var(--ui-border)}.legacy-shrink .shrink-pages button{background:0 0;border-color:#0000;min-width:54px}.legacy-shrink .shrink-content{flex:1;grid-template-rows:auto auto minmax(0,1fr);grid-template-columns:minmax(0,1fr) 360px;gap:10px 12px;min-width:0;min-height:0;padding:10px 12px 12px;display:grid;overflow:hidden}.legacy-shrink .shrink-pane{min-width:0;min-height:0}.legacy-shrink .shrink-pane--conditions{border-right:1px solid var(--ui-border);scrollbar-gutter:stable;grid-area:1/1/4;padding-right:10px;overflow:auto}.legacy-shrink .shrink-pane--inputs{flex-direction:column;grid-area:1/2;display:flex}.legacy-shrink .shrink-pane--inputs>.shrink-heading{margin:0 0 6px}.legacy-shrink .input-tabs{box-sizing:border-box;flex:none;align-items:flex-start;gap:4px;height:42px;padding:0 0 6px;display:flex}.legacy-shrink .input-tabs button{flex-wrap:wrap;flex:0 auto;place-content:center;align-items:center;gap:0 2px;min-width:0;height:36px;padding:0 4px;line-height:16px;display:flex}.legacy-shrink .input-tabs button:focus-visible{outline-offset:-2px}.legacy-shrink .input-tab-name,.legacy-shrink .input-tab-count{white-space:nowrap}.legacy-shrink .input-tab-count{box-sizing:border-box;background:var(--ui-table-head-strong);min-width:18px;height:18px;color:var(--ui-muted);border-radius:9px;justify-content:center;align-items:center;padding:0 4px;font-size:11px;font-weight:600;line-height:1;display:inline-flex}.legacy-shrink .input-tabs button.selected .input-tab-count{background:color-mix(in srgb, var(--ui-on-accent) 14%, transparent);color:var(--ui-on-accent)}.legacy-shrink .shrink-pane--actions{grid-area:2/2}.legacy-shrink .shrink-pane--results{flex-direction:column;grid-area:3/2;display:flex;position:relative;overflow:auto}.legacy-shrink .shrink-heading{flex-wrap:wrap;flex:none;align-items:center;gap:5px 12px;min-height:25px;margin-bottom:8px;display:flex}.legacy-shrink .shrink-heading strong{font-size:14px;font-weight:600}.legacy-shrink .shrink-heading span{color:var(--ui-muted);font-size:12px}.legacy-shrink .result-summary{white-space:nowrap;margin-inline-start:auto}.legacy-shrink .result-summary .result-count{color:var(--ui-accent-strong)}.legacy-shrink .condition-tabs{z-index:1;background:var(--ui-surface);flex-wrap:wrap;gap:4px;margin-bottom:8px;padding:5px 0;display:flex;position:sticky;top:0}.legacy-shrink .shrink-section{border:1px solid var(--ui-border);border-radius:var(--panel-radius);background:var(--ui-glass);min-width:0;margin:0 0 10px;padding:8px}.legacy-shrink .shrink-section legend{color:var(--ui-text);padding:0 5px;font-size:12px;font-weight:600}.legacy-shrink .shrink-row{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;margin-bottom:5px;display:flex}.legacy-shrink .shrink-row:last-child{margin-bottom:0}.legacy-shrink .condition-row{flex-direction:column;align-items:stretch;gap:6px;margin-bottom:10px;display:flex}.legacy-shrink .condition-row-title{text-align:left;align-items:center;gap:6px;padding:0;font-weight:600;line-height:18px;display:flex}.legacy-shrink .condition-row-title:before,.legacy-shrink .condition-row-title:after{content:"";border-top:1px solid var(--ui-border)}.legacy-shrink .condition-row-title:before{flex:0 0 6px}.legacy-shrink .condition-row-title:after{flex:1}.legacy-shrink .condition-row-title:empty{gap:0}.legacy-shrink .desktop-divider-row,.legacy-shrink .desktop-divider{display:none}.legacy-shrink .shrink-control-lines,.legacy-shrink .shrink-control-line{display:contents}.legacy-shrink .condition-lines{flex-direction:column;gap:5px;min-width:0;display:flex}.legacy-shrink .condition-lines>.shrink-control-line{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.legacy-shrink .inline-position-section{grid-template-columns:fit-content(100%);display:grid}.legacy-shrink .inline-position-section .condition-row{flex-direction:row;align-items:center;margin-bottom:5px}.legacy-shrink .inline-position-section .condition-row-title{flex:none;font-weight:400}.legacy-shrink .inline-position-section .condition-row-title:before,.legacy-shrink .inline-position-section .condition-row-title:after{display:none}.legacy-shrink .inline-position-section .shrink-row:not(:has([data-control=dws_num2]))>.shrink-control-lines>.shrink-control-line>span{flex:none;min-width:2em}.legacy-shrink .inline-position-section .shrink-row:has([data-control=dws_num2]){justify-content:flex-end}.legacy-shrink .ssc2-shape-row{grid-template-columns:repeat(9,max-content);justify-content:start;align-items:center;display:grid}.legacy-shrink .condition-lines.ssc2-shape-row>.shrink-control-line,.legacy-shrink .ssc2-shape-row .choice-group{display:contents}.legacy-shrink .ssc2-shape-row .choice-group button:nth-child(-n+2){grid-row:1}.legacy-shrink .ssc2-shape-row .choice-group button:nth-child(n+3):nth-child(-n+4){grid-row:2}.legacy-shrink .ssc2-shape-row .choice-group button:nth-child(n+5){grid-row:3}.legacy-shrink .ssc2-shape-row [data-control=simpleButton130] button:nth-child(odd){grid-column:1}.legacy-shrink .ssc2-shape-row [data-control=simpleButton130] button:nth-child(2n){grid-column:2}.legacy-shrink .ssc2-shape-row [data-control=simpleButton131] button:nth-child(odd){grid-column:3}.legacy-shrink .ssc2-shape-row [data-control=simpleButton131] button:nth-child(2n){grid-column:4}.legacy-shrink .ssc2-shape-row>.shrink-control-lines>.shrink-control-line>:not(.choice-group),.legacy-shrink .condition-lines.ssc2-shape-row>.shrink-control-line>:not(.choice-group){grid-row:3}.legacy-shrink .condition-lines.ssc2-shape-row>.shrink-control-line>span{min-height:var(--ui-control-height);align-items:center;display:inline-flex}.legacy-shrink .four-star-shape-section{grid-template-columns:fit-content(100%);display:grid}.legacy-shrink .four-star-shape-section .condition-lines>.shrink-control-line{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;display:grid}.legacy-shrink .four-star-shape-section .choice-group{display:contents}.legacy-shrink .four-star-shape-section .choice-group button{white-space:nowrap;padding-inline:4px}.legacy-shrink .four-star-shape-section .shrink-row:has([data-control=sxt_num2]){justify-content:flex-end}.legacy-shrink .ssc5-shape-section{grid-template-columns:fit-content(100%);display:grid}.legacy-shrink .ssc5-shape-section .condition-lines>.shrink-control-line:first-child{grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;display:grid}.legacy-shrink .ssc5-shape-section .choice-group{display:contents}.legacy-shrink .ssc5-shape-section .choice-group button{white-space:nowrap;padding-inline:4px}.legacy-shrink .ssc5-shape-section .condition-lines>.shrink-control-line:last-child{justify-content:flex-end}.legacy-shrink .ssc5-shape-section .shrink-row:has([data-control=sxt_num2]){justify-content:flex-end}.legacy-shrink .ssc5-shape-section input[type=number]{width:54px}.legacy-shrink :is(.shrink-content[data-active-page=ssc3] [data-section=workspace-ssc3-shapes] .condition-lines,.shrink-content[data-active-page=pk10-3] .condition-row:has([data-control=sxt_num2],[data-control=dws_num2]) .condition-lines){grid-template-columns:fit-content(100%);display:grid}.legacy-shrink :is(.shrink-content[data-active-page=ssc3] [data-section=workspace-ssc3-shapes] .shrink-control-line:last-child,.shrink-content[data-active-page=pk10-3] .condition-row:has([data-control=sxt_num2],[data-control=dws_num2]) .shrink-control-line:last-child){justify-content:flex-end}.legacy-shrink .shrink-content[data-active-page=pk10-3] .condition-row:has([data-control=dws_num2]) .shrink-control-line:not(:last-child)>span{flex:none;min-width:3em}.legacy-shrink .shrink-content[data-active-page=ssc4] [data-section=panelControl1] [data-control=labelControl1],.legacy-shrink .shrink-content[data-active-page=ssc5] [data-section=xtraTabPage3] [data-control=labelControl1],.legacy-shrink .shrink-content[data-active-page=pk10-3] [data-section=xtraTabPage3] [data-control=labelControl21]{display:none}.legacy-shrink .choice-group{flex-wrap:wrap;align-items:center;gap:3px;max-width:100%;display:flex}.legacy-shrink .choice-group button{min-width:28px;height:28px;min-height:28px;box-shadow:none;padding:3px 5px}.legacy-shrink .choice-label{margin-right:3px}.legacy-shrink .check-field,.legacy-shrink .input-field,.legacy-shrink .radio-field,.legacy-shrink .radio-field label{align-items:center;gap:4px;display:inline-flex}.legacy-shrink .radio-field{gap:12px}.legacy-shrink .input-field input,.legacy-shrink .input-field select{box-sizing:border-box;height:var(--ui-control-height);min-height:var(--ui-control-height);border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface);min-width:45px;padding:2px 5px}.legacy-shrink .input-field input{width:105px}.legacy-shrink .input-field select{min-width:48px}.legacy-shrink .memo-field{flex-direction:column;flex:100%;gap:3px;min-width:0;min-height:0;display:flex}.legacy-shrink .memo-field textarea{box-sizing:border-box;resize:none;border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-surface-solid);width:100%;min-width:0;height:60px;padding:5px 7px;line-height:1.6}.legacy-shrink .memo-field textarea:focus-visible{outline-offset:-2px}.legacy-shrink .shrink-pane--inputs .shrink-section{box-sizing:border-box;border-radius:var(--panel-radius);flex-direction:column;gap:6px;height:150px;min-height:0;margin:0;padding:7px;display:flex}.legacy-shrink .shrink-pane--inputs .input-caption-row{display:none}.legacy-shrink .shrink-pane--inputs .shrink-row{flex:none;gap:4px;margin:0}.legacy-shrink .shrink-pane--inputs .shrink-row:not(:has(.memo-field)){min-height:var(--ui-control-height)}.legacy-shrink .shrink-pane--inputs .shrink-row:has(.memo-field){flex:1;align-items:stretch;min-height:0}.legacy-shrink .shrink-pane--inputs .memo-field textarea{flex:1;height:0;min-height:0}.legacy-shrink .shrink-pane--inputs .action-button{min-height:var(--ui-control-compact);color:var(--ui-muted);order:1;margin-left:auto;padding:0 5px;font-size:12px}.legacy-shrink .shrink-pane--inputs .radio-field{gap:8px}.legacy-shrink .action-button{justify-content:center;align-items:center;gap:5px;display:inline-flex}.legacy-shrink .shrink-pane--actions .shrink-section{background:var(--ui-glass);margin:0;padding:8px}.legacy-shrink .shrink-pane--actions .shrink-row{gap:6px;margin-bottom:7px}.legacy-shrink .shrink-pane--actions .shrink-row:last-child{margin-bottom:0}.legacy-shrink .shrink-pane--actions .action-button{min-height:var(--ui-control-height);flex:1 0 auto}.legacy-shrink .shrink-pane--actions .action-buttons-row{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.legacy-shrink .shrink-pane--actions .action-buttons-row .action-button[data-action=run]{grid-column:1/-1}.legacy-shrink .action-button[data-action=run]:where(:not(.analysis-glass-control)){background:var(--ui-accent);border-color:var(--ui-accent);color:var(--ui-on-accent);font-weight:600}.legacy-shrink .action-button[data-action=run]:where(:not(.analysis-glass-control)):hover:not(:disabled){background:var(--ui-accent-strong)}.legacy-shrink .shrink-pane--results .shrink-section{background:var(--ui-surface);border:0;flex-direction:column;flex:1;min-height:0;margin:0;padding:0;display:flex}.legacy-shrink .result-count-row{max-width:calc(100% - 72px);min-height:25px;font-size:12px;position:absolute;top:0;right:0}.legacy-shrink .result-editor-row{flex:1;align-items:stretch;min-height:68px}.legacy-shrink .result-field{flex-basis:100%;min-height:0}.legacy-shrink .result-field textarea{flex:1;height:0;min-height:68px}.legacy-shrink .result-check-row{flex:none;padding-top:4px}.legacy-shrink .result-check-row input{width:110px}.legacy-shrink .input-field[data-control=txt_check] input:focus-visible{outline:none}.legacy-shrink .compound-list{min-width:min(230px,100%);max-width:100%;min-height:85px}.legacy-shrink .check-message{color:#c52626}.legacy-shrink .result-count{color:var(--ui-accent);font-weight:600}.legacy-shrink .shrink-message{border:1px solid var(--ui-border);border-radius:var(--ui-radius);min-width:250px;color:var(--ui-text);background:var(--ui-surface);font:inherit;padding:0}.legacy-shrink .shrink-message::backdrop{background:var(--ui-dialog-scrim,#20262e38)}.legacy-shrink .shrink-message header{background:var(--ui-glass);border-bottom:1px solid var(--ui-border);justify-content:space-between;align-items:center;padding-left:10px;display:flex}.legacy-shrink .shrink-message header button{box-shadow:none;background:0 0;border:0;font-size:18px}.legacy-shrink .shrink-message p{margin:22px}.legacy-shrink .shrink-message footer{text-align:right;padding:0 10px 10px}.legacy-shrink .mobile-shrink-tabs,.legacy-shrink .mobile-shrink-action{display:none}@media not (max-width:1024px),(not (max-width:700px)) and (not (pointer:coarse)){.legacy-shrink{overflow:auto;container:shrink-workspace/inline-size}.legacy-shrink .shrink-content{grid-template-columns:minmax(0,1fr) clamp(288px,31%,376px)}.legacy-shrink .shrink-heading{border-bottom:1px solid var(--ui-table-line);padding-bottom:5px}.legacy-shrink .shrink-pane--inputs .shrink-control-line>span[data-control]{font-size:var(--ui-font-size);font-weight:600}.legacy-shrink .result-count{color:var(--ui-accent-strong);font-variant-numeric:tabular-nums}@container shrink-workspace (width<=840px){.legacy-shrink .shrink-content{flex-direction:column;flex:none;display:flex;overflow:visible}.legacy-shrink .shrink-pane--conditions{scrollbar-gutter:auto;border-right:0;padding-right:0;overflow:visible}.legacy-shrink .shrink-pane--results{min-height:250px}.legacy-shrink .result-field textarea{min-height:155px}.legacy-shrink .ssc5-shape-section .condition-lines>.shrink-control-line:first-child{grid-template-columns:repeat(4,minmax(0,1fr))}}}@media (min-width:901px) and (max-width:1199px){.legacy-shrink .ssc5-shape-section .condition-lines>.shrink-control-line:first-child{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (max-width:900px){.legacy-shrink{overflow:auto}.legacy-shrink .shrink-content{flex-direction:column;flex:none;display:flex;overflow:visible}.legacy-shrink .shrink-pane--conditions{scrollbar-gutter:auto;border:0;padding:0;overflow:visible}.legacy-shrink .shrink-pane--results{min-height:250px}.legacy-shrink .result-field textarea{height:180px}.legacy-shrink .shrink-family+.shrink-family{border-left:0;padding-left:0}}@media (max-height:800px) and (min-width:901px){.legacy-shrink{--ui-control-height:var(--ui-control-compact)}.legacy-shrink .shrink-pages{padding-block:5px}.legacy-shrink .shrink-content{gap:7px 10px;padding-block:7px}.legacy-shrink .memo-field textarea{height:42px}.legacy-shrink .shrink-pane--inputs .shrink-section{gap:4px;height:130px;padding:5px}.legacy-shrink .shrink-pane--inputs .shrink-row{gap:3px}.legacy-shrink .shrink-pane--inputs .action-button{line-height:18px}.legacy-shrink .shrink-heading{min-height:20px;margin-bottom:5px}.legacy-shrink .shrink-pane--actions .action-button{min-height:var(--ui-control-height)}}@media not (max-width:1024px),(not (max-width:700px)) and (not (pointer:coarse)){.shrink-tool-page .legacy-shrink,.shrink-tool-page .shrink-pages,.shrink-tool-page .shrink-pane>.shrink-section{background:0 0}.shrink-tool-page .shrink-pages{z-index:3;background:var(--workspace-bg);gap:8px 16px;min-height:48px;padding:6px 12px;position:sticky;top:0}.shrink-tool-page .shrink-family{gap:5px}.shrink-tool-page .shrink-family+.shrink-family{border-inline-start:1px solid var(--ui-border);padding-inline-start:16px}.shrink-tool-page .shrink-family button{height:32px}.legacy-shrink .shrink-execution,.legacy-shrink .shrink-tolerance{align-items:center;display:flex}.legacy-shrink .shrink-execution{gap:16px;margin-inline-start:auto}.legacy-shrink .shrink-tolerance{color:var(--ui-muted);white-space:nowrap;gap:6px;font-size:12px}.legacy-shrink .shrink-tolerance select{border:1px solid var(--ui-border);border-radius:var(--ui-radius);background:var(--ui-panel-surface);min-width:46px;height:30px;color:var(--ui-text);font:inherit;padding-inline:5px}.legacy-shrink .shrink-execution .shrink-run{border-radius:7px;gap:8px;min-width:124px;min-height:36px;padding-inline:18px;font-size:14px}.legacy-shrink .shrink-execution .shrink-run:disabled{opacity:.65;cursor:wait}.legacy-shrink .shrink-execution .shrink-run:focus-visible{outline:2px solid var(--ui-text);outline-offset:2px}.shrink-tool-page .shrink-content{flex:1 0 490px;grid-template-rows:auto minmax(160px,1fr);grid-template-columns:minmax(0,1fr) clamp(256px,33%,460px);gap:10px 16px;padding:12px;display:grid;overflow:visible}.shrink-tool-page .shrink-pane--conditions{--dan-digits-width:307px;scrollbar-gutter:stable;border-inline-end:1px solid var(--ui-border);grid-row:1/-1;padding-inline-end:12px;overflow:auto;container:shrink-conditions/inline-size}.shrink-tool-page .shrink-heading{min-height:26px;margin-bottom:8px}.legacy-shrink .shrink-clear-conditions{margin-inline-start:auto}.shrink-tool-page .shrink-pane>.shrink-section{border:0;border-radius:0;padding:0}.shrink-tool-page .shrink-pane--conditions>.shrink-section{margin-bottom:14px}.shrink-tool-page .input-field[data-control=txt_hz],.shrink-tool-page .input-field[data-control=txt_hz]>input{flex:1;min-width:0}.shrink-tool-page .shrink-section legend{padding:0 0 6px;font-size:13px;font-weight:600}.shrink-tool-page .dan-row{grid-template-columns:var(--dan-digits-width) 30px minmax(0, max-content) 30px;justify-content:start;column-gap:6px;display:grid}.shrink-tool-page .shrink-section:has(.dan-row) [data-dan-caption=true]{color:var(--ui-muted);padding-inline-start:calc(var(--dan-digits-width) + 42px);font-size:12px}.shrink-tool-page .condition-tabs{border-block:1px solid var(--ui-border);background:var(--workspace-bg);padding-block:6px}.shrink-tool-page .shrink-pane--inputs{container:shrink-import/inline-size}.shrink-tool-page .input-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;height:auto;display:grid}.shrink-tool-page .input-tabs button{height:36px;padding:0 3px}@container shrink-import (width<=340px){.shrink-tool-page .input-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}.shrink-tool-page .shrink-pane--inputs .shrink-section{height:clamp(100px,17vh,156px)}.shrink-tool-page .shrink-pane--results{grid-row:2;min-height:0}.shrink-tool-page .result-summary .result-count{color:var(--ui-accent-strong);font-size:18px;line-height:1}.shrink-tool-page .result-field textarea{height:0;min-height:68px}.legacy-shrink .shrink-pane--conditions>.shrink-section:has(.conditions){background:0 0;border:0;border-radius:0;padding:0}.legacy-shrink .shrink-pane--conditions .shrink-section:has(.conditions) legend{box-sizing:border-box;border-top:1px solid var(--ui-table-group);width:100%;padding:0}.legacy-shrink .conditions-heading{min-height:36px;color:var(--ui-text);align-items:center;gap:6px;font-size:13px;font-weight:600;display:flex}.legacy-shrink .conditions-heading svg{color:var(--ui-accent)}.legacy-shrink .conditions-heading small{color:var(--ui-muted);margin-inline-start:2px;font-size:12px;font-weight:400}.legacy-shrink .conditions{border-block:1px solid var(--ui-table-group);flex:100%;min-width:0}.legacy-shrink .conditions table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%}.legacy-shrink .condition-name-col{width:116px}.legacy-shrink .condition-action-col{width:66px}.legacy-shrink .conditions th,.legacy-shrink .conditions td{box-sizing:border-box;border-bottom:1px solid var(--ui-table-line);text-align:left;vertical-align:middle;overflow-wrap:anywhere;height:28px;padding:2px 8px;line-height:20px}.legacy-shrink .conditions thead th{background:var(--ui-table-head);border-bottom-color:var(--ui-table-group);color:var(--ui-muted);font-size:12px;font-weight:500}.legacy-shrink .conditions tbody th{color:var(--ui-text);font-weight:500}.legacy-shrink .conditions td{white-space:pre-wrap}.legacy-shrink .conditions tbody tr:nth-child(2n){background:var(--ui-table-stripe)}.legacy-shrink .conditions tbody tr:last-child>*{border-bottom:0}.legacy-shrink .conditions tbody tr:is(:hover,:focus-within){background:var(--ui-hover)}.legacy-shrink .conditions .condition-action{text-align:center;white-space:nowrap;padding:0 6px}.legacy-shrink .conditions .remove-condition{min-height:24px;color:var(--ui-muted);vertical-align:middle;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;gap:4px;padding:0 5px;font-size:12px;line-height:1;display:inline-flex}.legacy-shrink .conditions .remove-condition:enabled:is(:hover,:focus-visible){color:var(--ui-danger-text,#a82f28);background:var(--ui-danger-surface,#faeae7)}.legacy-shrink .conditions-empty{color:var(--ui-muted);margin:0;padding:12px 8px;font-size:12px}@container shrink-conditions (width<=620px){.shrink-tool-page .shrink-section:has(.dan-row){--dan-digits-width:152px}.shrink-tool-page .dan-row{border-bottom:1px solid var(--ui-border);margin-bottom:6px;padding-bottom:6px}.shrink-tool-page .four-star-shape-section .condition-lines>.shrink-control-line,.shrink-tool-page .ssc5-shape-section .condition-lines>.shrink-control-line:first-child{grid-template-columns:repeat(4,minmax(0,1fr))}}@container shrink-workspace (width<=680px){.shrink-tool-page .shrink-execution{justify-content:space-between;width:100%}.shrink-tool-page .shrink-content{flex-direction:column;flex:none;display:flex}.shrink-tool-page .shrink-pane--conditions{border:0;border-bottom:1px solid var(--ui-border);max-height:clamp(260px,48vh,480px);padding:0 0 10px}.shrink-tool-page .shrink-pane--results{min-height:200px}}}@media (max-width:700px),(pointer:coarse) and (max-width:1024px){.legacy-shrink{height:100%;overflow:hidden}.legacy-shrink .shrink-pages{display:none}.legacy-shrink .mobile-shrink-tabs{border-bottom:1px solid var(--ui-border);flex:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px 8px;display:grid}.legacy-shrink .mobile-shrink-tabs button{min-height:32px}.legacy-shrink .shrink-content{flex-direction:column;flex:1;gap:8px;min-height:0;padding:8px;display:flex;overflow:hidden}.legacy-shrink .shrink-pane{flex:auto;min-height:0;overflow:auto}.legacy-shrink:not(.mobile-shrink) .shrink-pane:not(.mobile-active):not(.shrink-pane--actions){display:none}.legacy-shrink .shrink-pane--conditions{scrollbar-gutter:auto;border:0;padding:0}.legacy-shrink .shrink-pane--results{min-height:0}.legacy-shrink .shrink-pane--actions{display:none}.legacy-shrink .shrink-pane--inputs .shrink-section{flex:1;height:auto;min-height:160px}.legacy-shrink .shrink-pane--inputs .shrink-row:not(:has(.memo-field)){min-height:32px}.legacy-shrink .shrink-pane--actions .action-button{min-height:32px}.legacy-shrink .condition-tabs{flex-wrap:nowrap;position:static;overflow-x:auto}.legacy-shrink .condition-tabs button{flex:none;min-height:32px}.legacy-shrink.mobile-shrink button.shrink-pick,.legacy-shrink.mobile-shrink button.shrink-row-action{border:1px solid var(--mobile-pick-border);border-radius:var(--mobile-pick-radius);min-width:0;height:auto;min-height:36px;color:var(--mobile-pick-ink);background:var(--mobile-pick-bg);box-shadow:none;font:500 13px/1.2 var(--ui-font);font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;justify-content:center;align-items:center;margin:0;padding:2px;transition:none;display:inline-flex}.legacy-shrink.mobile-shrink button.shrink-pick[aria-pressed=true]{border-color:var(--mobile-pick-active-border);color:var(--mobile-pick-active-ink);background:var(--mobile-pick-active-bg);font-weight:700}.legacy-shrink.mobile-shrink button.shrink-row-action{border-color:var(--ui-border);min-width:30px;color:var(--ui-muted);background:var(--ui-glass);flex:none;padding-inline:4px;font-size:12px}.legacy-shrink.mobile-shrink button.shrink-pick:focus-visible,.legacy-shrink.mobile-shrink button.shrink-row-action:focus-visible{outline:2px solid var(--ui-accent-strong);outline-offset:1px}.legacy-shrink.mobile-shrink button.shrink-pick:disabled,.legacy-shrink.mobile-shrink button.shrink-row-action:disabled{opacity:.55;cursor:default}.legacy-shrink .four-star-shape-section .condition-lines>.shrink-control-line{grid-template-columns:repeat(4,minmax(0,1fr))}.legacy-shrink .choice-label{flex-basis:100%}.legacy-shrink .dan-row{border-bottom:1px solid var(--ui-border);padding-bottom:8px}.legacy-shrink .shrink-pane--conditions .action-button[data-action=selection]{min-width:32px;min-height:36px;padding:0 6px;font-size:12px}.legacy-shrink .shrink-row[data-dan-caption=true],.legacy-shrink .desktop-divider-row,.legacy-shrink .desktop-divider,.legacy-shrink .shrink-pane--results [data-action=copy]{display:none}.legacy-shrink .mobile-shrink-action{border-top:1px solid var(--ui-border);flex-wrap:wrap;flex:none;gap:4px 6px;padding:7px 8px;display:flex}.legacy-shrink .mobile-shrink-action button{flex:1;min-height:38px}.legacy-shrink .input-field input,.legacy-shrink .input-field select{height:32px;min-height:32px;font-size:16px}.legacy-shrink .check-field,.legacy-shrink .radio-field label{min-height:32px}.legacy-shrink .radio-field{flex-wrap:wrap}.legacy-shrink .memo-field textarea{height:100px;font-size:16px}.legacy-shrink .result-editor-row{min-height:110px}.legacy-shrink .result-field textarea{height:0;min-height:110px}.legacy-shrink .shrink-message{min-width:0;max-width:calc(100vw - 24px)}.legacy-shrink.mobile-shrink .shrink-content{scroll-behavior:smooth;background:0 0;gap:12px;padding:0;overflow-y:auto}.legacy-shrink.mobile-shrink .shrink-pane{border:1px solid var(--panel-border);background:var(--mobile-card-bg);box-shadow:var(--mobile-card-shadow);border-top-color:#fff;border-radius:14px;flex:none;margin:0;padding:10px;display:block;overflow:visible}.legacy-shrink.mobile-shrink .shrink-pane--conditions{box-shadow:none;background:0 0;border:0;border-radius:0;padding:0}.legacy-shrink.mobile-shrink .shrink-heading{margin:0;padding:0 2px 8px}.legacy-shrink.mobile-shrink .shrink-heading strong{font-size:13px}.legacy-shrink.mobile-shrink .mobile-condition-heading{border:1px solid var(--ui-border);background:var(--mobile-control-bg);width:100%;min-height:40px;box-shadow:var(--mobile-control-shadow);text-align:left;border-radius:9px;align-items:center;gap:8px;margin-bottom:10px;padding:0 10px;font-size:13px;font-weight:400;display:flex}.legacy-shrink.mobile-shrink .mobile-condition-heading[aria-expanded=true]{color:var(--ui-accent-strong);background:var(--ui-accent-soft);box-shadow:none;border-radius:9px 9px 0 0;margin-bottom:0}.legacy-shrink.mobile-shrink .mobile-condition-heading>svg{color:var(--ui-muted);margin-left:auto;transition:transform .18s}.legacy-shrink.mobile-shrink .mobile-condition-heading[aria-expanded=true]>svg{transform:rotate(180deg)}.legacy-shrink.mobile-shrink .mobile-condition-heading .mobile-condition-selected{color:var(--ui-accent);font-size:11px;font-weight:500}.legacy-shrink.mobile-shrink .mobile-condition-content{border:1px solid var(--ui-border);background:var(--ui-surface);border-top:0;border-radius:0 0 9px 9px;margin:0 0 10px;padding:10px 8px}.legacy-shrink.mobile-shrink [data-section$="-012"] .shrink-control-lines{flex-direction:column;gap:6px;width:100%;display:flex}.legacy-shrink.mobile-shrink [data-section$="-012"] .shrink-control-line{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.legacy-shrink.mobile-shrink [data-section$="-012"] .mobile-012-choices{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:dense;display:grid}.legacy-shrink.mobile-shrink .mobile-012-choices .choice-group{display:contents}.legacy-shrink.mobile-shrink .mobile-012-choices .choice-group button{width:100%}.legacy-shrink.mobile-shrink [data-section$=-shapes] .shrink-control-lines{flex-direction:column;gap:8px;width:100%;display:flex}.legacy-shrink.mobile-shrink [data-section$=-shapes] .shrink-control-line{flex-wrap:wrap;gap:5px;display:flex}.legacy-shrink.mobile-shrink [data-section$=-shapes] .shrink-control-line:not(.mobile-shape-choices):not(.mobile-tolerance-line){justify-content:flex-end}.legacy-shrink.mobile-shrink [data-section$=-shapes] .mobile-shape-choices{grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.legacy-shrink.mobile-shrink .mobile-shape-choices .choice-group{display:contents}.legacy-shrink.mobile-shrink [data-section=mobile-ssc5-shapes] .mobile-shape-choices{grid-template-columns:repeat(auto-fill,minmax(72px,1fr))}.legacy-shrink .mobile-random-controls{flex:none;align-items:center;gap:0;display:inline-flex}.legacy-shrink .mobile-random-controls input{box-sizing:border-box;border:1px solid var(--ui-border);border-radius:var(--ui-radius) 0 0 var(--ui-radius);width:44px;min-width:44px;height:36px;color:var(--ui-text);background:var(--ui-surface);font:16px var(--ui-font);text-align:center;appearance:textfield;padding:0 4px}.legacy-shrink .mobile-random-controls input::-webkit-inner-spin-button{appearance:none;margin:0}.legacy-shrink .mobile-random-controls input::-webkit-outer-spin-button{appearance:none;margin:0}.legacy-shrink.mobile-shrink .mobile-random-controls .action-button{border-radius:0 var(--ui-radius) var(--ui-radius) 0;background:var(--ui-glass);border-left:0;min-width:44px;min-height:36px;margin:0;padding:0 6px}.legacy-shrink.mobile-shrink :is([data-section=mobile-ssc2-shapes],[data-section=mobile-pk10-2-shapes]) .choice-group button:nth-child(-n+2){grid-row:1}.legacy-shrink.mobile-shrink :is([data-section=mobile-ssc2-shapes],[data-section=mobile-pk10-2-shapes]) .choice-group button:nth-child(n+3):nth-child(-n+4){grid-row:2}.legacy-shrink.mobile-shrink :is([data-section=mobile-ssc2-shapes],[data-section=mobile-pk10-2-shapes]) .choice-group button:nth-child(n+5){grid-row:3}.legacy-shrink.mobile-shrink :is([data-section=mobile-ssc2-shapes],[data-section=mobile-pk10-2-shapes]) [data-control=simpleButton130] button:nth-child(odd){grid-column:1}.legacy-shrink.mobile-shrink :is([data-section=mobile-ssc2-shapes],[data-section=mobile-pk10-2-shapes]) [data-control=simpleButton130] button:nth-child(2n){grid-column:2}.legacy-shrink.mobile-shrink :is([data-section=mobile-ssc2-shapes],[data-section=mobile-pk10-2-shapes]) [data-control=simpleButton131] button:nth-child(odd){grid-column:3}.legacy-shrink.mobile-shrink :is([data-section=mobile-ssc2-shapes],[data-section=mobile-pk10-2-shapes]) [data-control=simpleButton131] button:nth-child(2n){grid-column:4}.legacy-shrink.mobile-shrink :is([data-section=mobile-ssc2-special],[data-section=mobile-pk10-2-special]) .condition-row-title{display:none}.legacy-shrink.mobile-shrink :is([data-section=mobile-ssc2-special],[data-section=mobile-pk10-2-special]) .choice-group{grid-auto-columns:minmax(0,1fr);grid-auto-flow:column;gap:4px;width:100%;display:grid}.legacy-shrink.mobile-shrink [data-section$=-settings]{margin:10px 0 0;padding:12px 8px}.legacy-shrink.mobile-shrink [data-section$=-settings] .shrink-row:not(:last-child){margin-bottom:10px}.legacy-shrink.mobile-shrink [data-section$=-settings] .shrink-row:has([data-action=run]){display:flex}.legacy-shrink.mobile-shrink [data-action=run]{width:100%;min-height:34px}.legacy-shrink.mobile-shrink .input-field select{height:28px;min-height:28px;font-size:13px}.legacy-shrink.mobile-shrink .mobile-tolerance-line{flex:100%;justify-content:flex-start;align-items:center;gap:6px;width:100%;display:flex}.legacy-shrink.mobile-shrink [data-section$=-settings] .mobile-tolerance-line{justify-content:center}.legacy-shrink.mobile-shrink .mobile-tolerance-line .input-field select{width:42px;min-width:42px;height:24px;min-height:24px;padding:0 3px;font-size:12px}.legacy-shrink.mobile-shrink [data-section$=-settings] .input-field select{width:48px;min-width:48px}.legacy-shrink.mobile-shrink .mobile-tolerance-line [data-action=selection],.legacy-shrink.mobile-shrink .mobile-tolerance-line .mobile-dan-switch{order:1;margin-left:auto}.legacy-shrink.mobile-shrink .mobile-condition-content[data-section$=-dan]{padding-top:6px}.legacy-shrink.mobile-shrink [data-section$=-dan] .input-field select{width:42px;min-width:42px;height:24px;min-height:24px;padding:0 3px;font-size:12px}.legacy-shrink.mobile-shrink .mobile-dan-switch{cursor:pointer;gap:4px;min-height:24px;font-size:12px}.legacy-shrink.mobile-shrink .mobile-dan-switch input{appearance:none;cursor:pointer;background:#b5bfbc;border:0;border-radius:9px;flex:none;width:30px;height:18px;margin:0;transition:background .15s;position:relative}.legacy-shrink.mobile-shrink .mobile-dan-switch input:before{content:"";background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .15s;position:absolute;top:2px;left:2px}.legacy-shrink.mobile-shrink .mobile-dan-switch input:checked{background:var(--ui-accent-strong)}.legacy-shrink.mobile-shrink .mobile-dan-switch input:checked:before{transform:translate(12px)}.legacy-shrink.mobile-shrink .mobile-dan-switch input:disabled{opacity:.5;cursor:default}.legacy-shrink.mobile-shrink .mobile-import-row{grid-template-columns:minmax(0,1fr);gap:6px;display:grid}.legacy-shrink.mobile-shrink .mobile-number-input{min-width:0}.legacy-shrink.mobile-shrink .mobile-number-input textarea{width:100%;height:100px;min-height:100px;font-size:13px}.legacy-shrink.mobile-shrink .mobile-import-row .radio-field,.legacy-shrink.mobile-shrink .mobile-import-row .shrink-control-line>span{color:var(--ui-muted);font-size:11px}.legacy-shrink.mobile-shrink .mobile-number-footer{justify-content:space-between;align-items:center;gap:8px;display:flex}.legacy-shrink.mobile-shrink .mobile-number-count{color:var(--ui-muted);white-space:nowrap;font-size:12px}.legacy-shrink.mobile-shrink .mobile-number-count strong{color:var(--ui-accent-strong)}.legacy-shrink.mobile-shrink .mobile-number-actions{gap:6px;display:flex}.legacy-shrink.mobile-shrink .mobile-number-actions .action-button{min-width:54px;min-height:30px}.legacy-shrink.mobile-shrink .shrink-pane--conditions [data-control=label_dd],.legacy-shrink.mobile-shrink .shrink-pane--conditions [data-control=label_zxh],.legacy-shrink.mobile-shrink .shrink-pane--conditions [data-control=label_szx],.legacy-shrink.mobile-shrink .shrink-pane--conditions [data-control=label_szux]{display:none}.legacy-shrink.mobile-shrink .shrink-pane--results{background:var(--mobile-card-bg)}.legacy-shrink.mobile-shrink .shrink-pane--results .shrink-section{background:0 0}.legacy-shrink.mobile-shrink .shrink-pane--results .shrink-heading strong{color:var(--ui-accent-strong)}.legacy-shrink.mobile-shrink .result-count-row{top:8px;right:8px}.legacy-shrink.mobile-shrink .result-field textarea{height:260px;min-height:260px;font-size:13px}.legacy-shrink.mobile-shrink .result-check-row input{height:26px;min-height:26px}.legacy-shrink.mobile-shrink .mobile-result-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;display:grid}.legacy-shrink.mobile-shrink .mobile-result-actions .action-button{min-height:32px}.legacy-shrink.mobile-shrink .shrink-pane--results [data-action=copy]{display:inline-flex}.legacy-shrink.mobile-shrink.legacy-shrink--embedded .shrink-content{overscroll-behavior:contain;padding:10px;scroll-padding-block:8px 62px}.legacy-shrink--embedded.mobile-shrink .shrink-pane--conditions{border:1px solid var(--ui-border);background:var(--ui-surface);border-radius:12px}.legacy-shrink--embedded .shrink-pane--conditions>.shrink-heading{border-bottom:1px solid var(--ui-table-line);background:var(--ui-glass);border-radius:12px 12px 0 0;padding:8px 12px}.legacy-shrink--embedded.mobile-shrink .mobile-condition-heading{border:0;border-bottom:1px solid var(--ui-table-line);min-height:42px;box-shadow:none;background:0 0;border-radius:0;gap:10px;margin:0;padding:0 12px;font-size:14px}.legacy-shrink--embedded .condition-index{color:var(--ui-muted);font-variant-numeric:tabular-nums;font-size:12px}.legacy-shrink--embedded.mobile-shrink .mobile-condition-heading[aria-expanded=true]{color:var(--ui-accent-strong);background:var(--ui-accent-soft);box-shadow:inset 3px 0 var(--ui-accent)}.legacy-shrink--embedded .mobile-condition-heading[aria-expanded=true] .condition-index{color:inherit}.legacy-shrink--embedded.mobile-shrink .mobile-condition-content{border:0;border-bottom:1px solid var(--ui-border);background:var(--ui-surface-solid);border-radius:0;margin:0;padding:10px 8px}.legacy-shrink--embedded.mobile-shrink [data-section$=-settings]{z-index:2;border:0;border-top:1px solid var(--ui-border);background:var(--ui-surface-solid);border-radius:0 0 12px 12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;margin:0;padding:8px;display:flex;position:sticky;bottom:0;box-shadow:0 -3px 10px #2020200d}.legacy-shrink--embedded.mobile-shrink [data-section$=-settings] .shrink-row{margin:0}.legacy-shrink--embedded.mobile-shrink [data-section$=-settings] .input-field select{min-height:32px}.legacy-shrink--embedded.mobile-shrink [data-action=run]{min-width:92px;min-height:36px}.legacy-shrink--embedded.mobile-shrink .mobile-number-input textarea{font-size:16px}}.desktop-topbar .desktop-theme-switch
.legacy-shrink button { background: linear-gradient(180deg, rgba(62,82,104,.62), rgba(19,29,40,.94)); border-color: rgba(150,185,225,.18); color: var(--ui-text); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 3px 8px rgba(0,0,0,.24); }
.legacy-shrink button:hover { background: linear-gradient(180deg, rgba(78,100,124,.66), rgba(24,36,48,.96)); border-color: rgba(150,185,225,.32); }
.legacy-shrink button.selected { color: var(--ui-accent); border-color: var(--ui-accent-strong); background: linear-gradient(180deg, rgba(46,230,176,.2), rgba(17,38,34,.94)); }
.legacy-shrink .shrink-run { color: #06231c; border-color: rgba(46,230,176,.5); background: linear-gradient(180deg, #7dffd9, #2ee6b0 55%, #14a381); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px rgba(20,163,129,.3); }
.legacy-shrink .shrink-pages { background: rgba(12,22,32,.6); border-bottom-color: rgba(150,185,225,.16); }
.legacy-shrink .shrink-family + .shrink-family { border-left-color: rgba(150,185,225,.16); }
.legacy-shrink .shrink-content { overflow: hidden; }
.legacy-shrink .shrink-pane--conditions { border-right-color: rgba(150,185,225,.14); }
.legacy-shrink .shrink-section { background: rgba(14,24,34,.62); border-color: rgba(150,185,225,.12); }
.legacy-shrink .shrink-pane--inputs .shrink-section { background: rgba(14,24,34,.62); }
.legacy-shrink .shrink-pane--actions .shrink-section { background: rgba(16,28,40,.66); }
.legacy-shrink .shrink-pane--results .shrink-section { background: transparent; }
.legacy-shrink .condition-row-title { color: var(--ui-text); }
.legacy-shrink .conditions th, .legacy-shrink .conditions td { border-bottom-color: rgba(150,185,225,.08); }
.legacy-shrink .conditions thead th { background: rgba(255,255,255,.04); color: var(--ui-muted); }
.legacy-shrink .conditions tbody tr:nth-child(2n) { background: rgba(255,255,255,.015); }
.legacy-shrink .shrink-pane--inputs textarea, .legacy-shrink .shrink-pane--results textarea, .legacy-shrink .memo-field textarea { background: rgba(8,14,21,.7); color: var(--ui-text); border-color: rgba(150,185,225,.18); }
.legacy-shrink .input-field input, .legacy-shrink .input-field select, .legacy-shrink .shrink-tolerance select { background: rgba(10,17,25,.72); color: var(--ui-text); border-color: rgba(150,185,225,.18); }
.legacy-shrink .shrink-heading { border-bottom-color: rgba(150,185,225,.12); }
.legacy-shrink .shrink-content { padding-top: 8px; }
.legacy-shrink .shrink-pane--conditions { padding-right: 10px; }
.legacy-shrink .shrink-pane--results { padding-top: 2px; }
.legacy-shrink .shrink-content { padding: 12px; overflow: hidden; }
.legacy-shrink .shrink-pane--conditions { padding-right: 12px; }
.legacy-shrink .shrink-pane--results { padding-top: 0; }

.legacy-shrink { --ui-control-height: 30px; --ui-control-compact: 26px; }
.legacy-shrink .shrink-pane--conditions { --dan-digits-width: 307px; }
.legacy-shrink .shrink-row { font-size: 12px; }
.legacy-shrink .choice-group button { font-size: 13px; }

.nt-shell { padding: 0; gap: 6px; }
.nt-shell .tool-catalog { min-height: 36px; padding: 2px 4px; overflow: auto; border: 1px solid rgba(150,185,225,.12); border-radius: 8px; background: rgba(12,22,32,.55); }
.nt-shell .tool-catalog .nt-tab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; }
.nt-shell .tool-display { flex: 1; min-height: 0; overflow: auto; border: 1px solid rgba(150,185,225,.1); border-radius: 9px; background: rgba(12,21,30,.36); }
.nt-shell .tool-page { min-height: 100%; display: flex; flex-direction: column; }
.nt-shell .nt-body { flex: 1; min-height: 0; overflow: auto; padding: 10px 12px; }


/* ================= 手机 H5 外壳与缩水移动版 ================= */
.legacy-shrink.mobile-shrink {
  --mobile-card-bg: rgba(16,27,38,.92);
  --mobile-card-shadow: 0 8px 22px rgba(0,0,0,.28);
  --mobile-control-bg: linear-gradient(180deg, rgba(35,52,68,.9), rgba(15,24,34,.96));
  --mobile-control-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 8px rgba(0,0,0,.24);
  --mobile-pick-bg: linear-gradient(180deg, rgba(40,58,74,.9), rgba(16,26,36,.96));
  --mobile-pick-border: rgba(150,185,225,.18);
  --mobile-pick-ink: #cfe0f2;
  --mobile-pick-active-bg: linear-gradient(180deg, rgba(46,230,176,.24), rgba(17,38,34,.96));
  --mobile-pick-active-border: #2ee6b0;
  --mobile-pick-active-ink: #06231c;
  --mobile-pick-radius: 7px;
  height: 100%;
}
@media (max-width: 820px) {
  .app { flex-direction: column; height: 100dvh; }
  .sidebar {
    width: 100%; flex: 0 0 auto; height: auto; max-height: 58px;
    flex-direction: row; align-items: center; gap: 2px;
    padding: 4px 6px; overflow-x: auto; overflow-y: hidden;
    border-bottom: 1px solid rgba(150,185,225,.14);
  }
  .brand, .side-label, .side-foot { display: none; }
  .nav { flex-direction: row; gap: 2px; }
  .nav-item {
    flex: 0 0 auto; width: auto; height: 46px;
    flex-direction: column; justify-content: center; gap: 2px;
    padding: 2px 7px; font-size: 10px; border-radius: 7px;
  }
  .nav-item .ico { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-item .ico svg { width: 17px; height: 17px; }
  .main { width: 100%; flex: 1; min-height: 0; }
  .main > .platform-strip, .main > .marquee { display: none; }
  .main > .topbar { display: none; }
  .page-head { padding: 4px 2px 8px; }
  .page-head h1 { font-size: 17px; }
  .page-fill.active { overflow: hidden; }
  .pro-top { grid-template-columns: 1fr; }
  .nt-shell { padding: 6px; }
  .nt-shell .tool-catalog { min-height: 40px; }
  .nt-shell .tool-catalog .nt-tab { height: 34px; font-size: 11px; }
  .nt-form-grid, .nt-jj-groups, .nt-zh-columns { grid-template-columns: 1fr; }
  .nt-panel { padding: 8px; }
  .nt-table-wrap { max-height: 42vh; }
  .pro-settings, .pro-selection { padding: 8px; }
  .pro-settings-head { flex-wrap: wrap; }
  .pro-cate { margin-left: 0; }
  .pro-periods { gap: 8px; }
  .pro-charts-grid.multi { grid-template-columns: 1fr; grid-auto-rows: 320px; }
}
.mobile-shrink-pages { flex: none; display: flex; gap: 8px; padding: 5px 8px; border-bottom: 1px solid rgba(150,185,225,.12); overflow-x: auto; background: rgba(12,22,32,.55); }
.mobile-shrink-family { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.mobile-shrink-family > span { color: var(--tz-muted); font-size: 10px; margin-right: 2px; white-space: nowrap; }
.mobile-shrink-family button { height: 28px; padding: 0 9px; border-radius: 6px; border: 1px solid rgba(150,185,225,.16); background: linear-gradient(180deg, rgba(40,58,74,.9), rgba(16,26,36,.96)); color: var(--tz-text-2); font-size: 11px; white-space: nowrap; }
.mobile-shrink-family button.selected { color: var(--tz-accent); border-color: var(--tz-accent-line); background: linear-gradient(180deg, rgba(46,230,176,.2), rgba(17,38,34,.96)); }
@media (max-width:700px),(pointer:coarse) and (max-width:1024px) {
  .legacy-shrink.mobile-shrink .shrink-content { padding: 0; overflow-y: auto; }
  .legacy-shrink.mobile-shrink .shrink-pane--conditions { padding: 0; border: 0; }
  .legacy-shrink.mobile-shrink .shrink-pane--conditions .shrink-section { padding: 10px 8px; }
  .legacy-shrink.mobile-shrink .shrink-pane--inputs { background: var(--mobile-card-bg); }
  .legacy-shrink.mobile-shrink .shrink-pane--inputs .shrink-section { height: auto; min-height: 160px; }
  .legacy-shrink.mobile-shrink .mobile-shrink-action { display: flex; }
  .legacy-shrink.mobile-shrink .shrink-pane--results .result-field textarea { height: 240px; min-height: 240px; }
}
@media (max-width: 820px) {
  .main { height: auto; flex: 1; min-height: 0; }
  .content { padding: 8px 10px 10px; min-height: 0; }
  .page-head { margin-bottom: 8px; }
}

/* ================= H5 外壳：底部导航 / 首页 / 个人中心 ================= */
.mobile-topbar, .mobile-bottom-nav { display: none; }
.mobile-page { display: none; }
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .sidebar { display: none !important; }
  body.mobile-shell .app { flex-direction: column; height: 100dvh; }
  body.mobile-shell .main { height: auto; flex: 1; min-height: 0; }
  body.mobile-shell .content { flex: 1; min-height: 0; padding: 0 0 64px; }
  body.mobile-shell .topbar,
  body.mobile-shell .platform-strip { display: none !important; }
  body.mobile-shell .mobile-topbar {
    display: flex; align-items: center; gap: 8px; flex: 0 0 50px;
    height: 50px; padding: 0 10px; position: sticky; top: 0; z-index: 90;
    background: linear-gradient(180deg, rgba(16,28,39,.98), rgba(11,19,27,.96));
    border-bottom: 1px solid rgba(150,185,225,.14);
  }
  body.mobile-shell .mobile-topbar strong { flex: 1; text-align: center; font-size: 15px; color: var(--tz-text); }
  body.mobile-shell .mobile-back, body.mobile-shell .mobile-home-btn {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(150,185,225,.16);
    background: rgba(255,255,255,.03); color: var(--tz-text-2); font-size: 22px; line-height: 1;
  }
  body.mobile-shell .mobile-back { font-size: 26px; }
  body.mobile-shell .page { padding: 10px 12px; }
  body.mobile-shell .page.page-fill { padding: 0; }
  body.mobile-shell .mobile-page.active { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; padding: 12px; }
  body.mobile-shell .mobile-bottom-nav {
    display: grid; grid-template-columns: repeat(5, minmax(0,1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    height: 58px; padding-bottom: env(safe-area-inset-bottom, 0);
    background: linear-gradient(180deg, rgba(14,24,34,.98), rgba(8,14,21,.99));
    border-top: 1px solid rgba(150,185,225,.16);
    box-shadow: 0 -8px 24px rgba(0,0,0,.35);
  }
  body.mobile-shell .mobile-bottom-nav button {
    border: 0; background: transparent; color: var(--tz-muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 10.5px; padding: 4px 0;
  }
  body.mobile-shell .mobile-bottom-nav button.active { color: var(--tz-accent); }
  body.mobile-shell .mobile-bottom-nav .mnav-ico { font-size: 18px; line-height: 1; }

  .mobile-home-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
  .mobile-home-head h1 { margin: 0 0 3px; font-size: 18px; }
  .mobile-home-head p { margin: 0; color: var(--tz-muted); font-size: 11px; }
  .mobile-account-chip {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    border: 1px solid rgba(150,185,225,.16); border-radius: 10px; padding: 4px 7px;
    background: rgba(255,255,255,.03); color: var(--tz-text-2);
  }
  .mobile-avatar {
    width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #7dffd9, #14a381); color: #06231c; font-weight: 700; font-size: 14px;
  }
  .mobile-avatar.big { width: 52px; height: 52px; font-size: 22px; }
  .mobile-account-copy { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
  .mobile-account-copy strong { font-size: 11.5px; color: var(--tz-text); }
  .mobile-account-copy small { font-size: 9.5px; color: var(--tz-muted); }
  .mobile-account-arrow { color: var(--tz-muted); font-size: 16px; }
  .mobile-home-section { margin-bottom: 14px; }
  .mobile-home-section h3 { margin: 0 0 7px; font-size: 12px; color: var(--tz-muted); font-weight: 500; letter-spacing: .05em; }
  .mobile-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .mobile-feature-card {
    display: flex; align-items: center; gap: 9px; text-align: left;
    padding: 10px 11px; border-radius: 10px;
    border: 1px solid rgba(150,185,225,.14);
    background: linear-gradient(180deg, rgba(32,48,64,.75), rgba(13,22,31,.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 16px rgba(0,0,0,.22);
    color: var(--tz-text-2); min-height: 58px;
  }
  .mobile-feature-card:active { transform: translateY(1px); }
  .mobile-feature-icon { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(46,230,176,.1); color: var(--tz-accent); flex: none; }
  .mobile-feature-icon svg { width: 18px; height: 18px; }
  .mobile-feature-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .mobile-feature-copy strong { font-size: 12.5px; color: var(--tz-text); font-weight: 500; }
  .mobile-feature-copy small { font-size: 9.5px; color: var(--tz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-page-head { margin-bottom: 12px; }
  .mobile-page-head h1 { margin: 0 0 3px; font-size: 18px; }
  .mobile-page-head p { margin: 0; color: var(--tz-muted); font-size: 11px; }
  .mobile-account-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: linear-gradient(150deg, rgba(46,230,176,.12), rgba(16,28,39,.9)); border: 1px solid rgba(150,185,225,.14); margin-bottom: 12px; }
  .mobile-account-head div { display: flex; flex-direction: column; gap: 3px; }
  .mobile-account-head strong { font-size: 16px; color: var(--tz-text); }
  .mobile-account-head small { font-size: 11px; color: var(--tz-muted); }
  .mobile-account-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
  .mobile-account-card { padding: 10px; border-radius: 10px; border: 1px solid rgba(150,185,225,.12); background: rgba(255,255,255,.025); display: flex; flex-direction: column; gap: 2px; }
  .mobile-account-card span { font-size: 10px; color: var(--tz-muted); }
  .mobile-account-card strong { font-size: 17px; color: var(--tz-accent); }
  .mobile-account-card small { font-size: 9.5px; color: var(--tz-muted); }
  .mobile-account-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .mobile-action-btn { min-height: 40px; border-radius: 9px; border: 1px solid rgba(150,185,225,.16); background: linear-gradient(180deg, rgba(40,58,74,.9), rgba(16,26,36,.96)); color: var(--tz-text-2); font-size: 12px; }
  .mobile-action-btn.primary { color: #06231c; border-color: rgba(46,230,176,.5); background: linear-gradient(180deg, #7dffd9, #2ee6b0 55%, #14a381); font-weight: 600; }
  .mobile-account-version { margin: 12px 0 0; text-align: center; color: var(--tz-muted); font-size: 10px; }
}

/* ================= H5 自动投注：平台列表与选项排列 ================= */
.mobile-platform-panel { display: none; }
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .mobile-platform-panel { display: block; margin: 0 0 10px; }
  body.mobile-shell .mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
  body.mobile-shell .mp-head > div { display: flex; align-items: baseline; gap: 7px; }
  body.mobile-shell .mp-head strong { font-size: 13px; color: var(--tz-text); }
  body.mobile-shell .mp-head span { font-size: 10.5px; color: var(--tz-muted); }
  body.mobile-shell .mp-add { height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(46,230,176,.45); background: linear-gradient(180deg, rgba(46,230,176,.18), rgba(17,38,34,.95)); color: var(--tz-accent); font-size: 11.5px; }
  body.mobile-shell .mp-track { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scroll-snap-type: x mandatory; }
  body.mobile-shell .mp-card { flex: 0 0 265px; scroll-snap-align: start; border: 1px solid rgba(150,185,225,.14); border-radius: 11px; padding: 9px 10px; background: linear-gradient(155deg, rgba(28,44,60,.78), rgba(12,21,30,.92)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
  body.mobile-shell .mp-card.current { border-color: rgba(46,230,176,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(46,230,176,.12); }
  body.mobile-shell .mp-card.offline { opacity: .72; }
  body.mobile-shell .mp-card-top { display: flex; align-items: center; gap: 7px; }
  body.mobile-shell .mp-logo { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
  body.mobile-shell .mp-card-top strong { flex: 1; font-size: 12.5px; color: var(--tz-text); }
  body.mobile-shell .mp-badge { font-size: 9.5px; color: var(--tz-accent); border: 1px solid rgba(46,230,176,.3); border-radius: 8px; padding: 1px 6px; }
  body.mobile-shell .mp-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; margin: 7px 0; color: var(--tz-muted); font-size: 10px; }
  body.mobile-shell .mp-meta b { color: var(--tz-text-2); font-weight: 500; }
  body.mobile-shell .mp-actions { display: flex; gap: 6px; }
  body.mobile-shell .mp-btn { flex: 1; height: 29px; border-radius: 7px; border: 1px solid rgba(150,185,225,.16); background: rgba(255,255,255,.03); color: var(--tz-text-2); font-size: 10.5px; }
  body.mobile-shell .mp-btn.danger { color: #ffb3ab; }
  body.mobile-shell .mp-empty { flex: 1; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed rgba(150,185,225,.2); border-radius: 10px; color: var(--tz-muted); font-size: 11.5px; }
  body.mobile-shell .mp-empty small { font-size: 10px; }

  body.mobile-shell #page-auto .auto-top { grid-template-columns: 1fr; gap: 10px; }
  body.mobile-shell #page-auto .lottery-card { min-height: 118px; }
  body.mobile-shell #page-auto .options-card { padding: 10px; border-radius: 12px; }
  body.mobile-shell #page-auto .options-body { flex-direction: column; gap: 10px; }
  body.mobile-shell #page-auto .opt-grid { display: flex; flex-wrap: wrap; gap: 8px 10px; width: 100%; padding: 2px 0 0; grid-template-columns: none; }
  body.mobile-shell #page-auto .opt-grid > * { flex: 0 0 calc(50% - 5px); min-width: 0; box-sizing: border-box; }
  body.mobile-shell #page-auto .opt-grid > .opt-title { flex-basis: 100%; margin-top: 4px; padding-top: 9px; border-top: 1px solid rgba(150,185,225,.1); font-size: 12px; color: var(--tz-text-2); }
  body.mobile-shell #page-auto .opt-grid > .chk { min-height: 36px; padding: 0 9px; border: 1px solid rgba(150,185,225,.14); border-radius: 8px; background: rgba(255,255,255,.025); }
  body.mobile-shell #page-auto .opt-grid > .opt-row { min-height: 36px; padding: 0 9px; border: 1px solid rgba(150,185,225,.12); border-radius: 8px; background: rgba(255,255,255,.018); justify-content: space-between; gap: 6px; }
  body.mobile-shell #page-auto .opt-grid > .opt-plain { min-height: 36px; padding: 0 9px; border: 1px solid rgba(150,185,225,.1); border-radius: 8px; background: rgba(255,255,255,.015); display: flex; align-items: center; }
  body.mobile-shell #page-auto .opt-row .spin { width: 44px; height: 26px; }
  body.mobile-shell #page-auto .opt-row .spin-sm { width: 38px; }
  body.mobile-shell #page-auto .opt-row .spin-lg { width: 52px; }
  body.mobile-shell #page-auto .opt-row .input.num8 { width: 66px; height: 26px; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(1) { order: 1; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(2) { order: 2; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(3) { order: 3; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(4) { order: 13; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(5) { order: 10; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(6) { order: 11; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(7) { order: 7; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(8) { order: 4; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(9) { order: 14; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(10) { order: 12; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(11) { order: 9; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(12) { order: 8; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(13) { order: 5; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(14) { order: 15; }
  body.mobile-shell #page-auto .opt-grid > :nth-child(15) { order: 16; }
  body.mobile-shell #page-auto .opt-side { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; padding-top: 0; }
  body.mobile-shell #page-auto .start-btn { flex: 1 0 100%; height: 40px; min-width: 0; }
  body.mobile-shell #page-auto .opt-follow { flex: 1 0 calc(50% - 4px); min-height: 38px; padding: 0 10px; border: 1px solid rgba(150,185,225,.12); border-radius: 8px; justify-content: space-between; background: rgba(255,255,255,.018); }
  body.mobile-shell #page-auto .stats-bar { flex-wrap: wrap; gap: 6px 10px; }
  body.mobile-shell #page-auto .stats-bar .stat { font-size: 11px; }
  body.mobile-shell #page-auto .keep-bar { flex-wrap: wrap; }
  body.mobile-shell #page-auto .table-card { min-height: 190px; }
  body.mobile-shell #page-auto .page-head { flex-wrap: wrap; gap: 8px; }
}

/* ================= H5 自动投注：紧凑选项 / 开始按钮 / 投注历史 ================= */
.opt-mobile-toggle, .mobile-auto-actions, .mobile-bet-head, .mobile-bet-list { display: none; }
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-auto { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  body.mobile-shell #page-auto .lottery-card { min-height: 92px; }
  body.mobile-shell #page-auto .options-card { padding: 8px 10px; }
  body.mobile-shell #page-auto .options-head { min-height: 30px; align-items: center; padding-bottom: 0; border-bottom: 0; }
  body.mobile-shell #page-auto .options-head h3 { font-size: 13px; }
  body.mobile-shell .opt-mobile-toggle {
    display: inline-flex; align-items: center; margin-left: auto;
    height: 28px; padding: 0 10px; border-radius: 7px;
    border: 1px solid rgba(150,185,225,.16); background: rgba(255,255,255,.03);
    color: var(--tz-accent); font-size: 11px;
  }
  body.mobile-shell #page-auto .options-card:not(.mobile-options-open) .options-body { display: none; }
  body.mobile-shell #page-auto .options-card.mobile-options-open .options-body { display: flex; padding-top: 8px; }
  body.mobile-shell #page-auto .opt-grid > .chk,
  body.mobile-shell #page-auto .opt-grid > .opt-row,
  body.mobile-shell #page-auto .opt-grid > .opt-plain { min-height: 32px; }
  body.mobile-shell #page-auto .opt-grid > .opt-title { padding-top: 6px; margin-top: 2px; }
  body.mobile-shell #page-auto .opt-grid { gap: 6px 8px; }

  body.mobile-shell .mobile-auto-actions { display: block; margin: 9px 0 10px; }
  body.mobile-shell .mobile-start-btn {
    width: 100%; height: 42px; border-radius: 10px;
    border: 1px solid rgba(46,230,176,.5);
    background: linear-gradient(180deg, #7dffd9, #2ee6b0 55%, #14a381);
    color: #06231c; font-size: 14px; font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 5px 14px rgba(20,163,129,.3);
  }
  body.mobile-shell .mobile-start-btn.running { color: #fff; border-color: #c0392b; background: linear-gradient(180deg, #d9564a, #b43228); }
  body.mobile-shell .mobile-start-btn:disabled { opacity: .55; }

  body.mobile-shell #page-auto .table-card { display: none; }
  body.mobile-shell .mobile-bet-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 7px; }
  body.mobile-shell .mobile-bet-head strong { font-size: 13px; color: var(--tz-text); }
  body.mobile-shell .mobile-bet-head span { font-size: 10.5px; color: var(--tz-muted); }
  body.mobile-shell .mobile-bet-list { display: flex; flex-direction: column; gap: 7px; }
  body.mobile-shell .mbet-card { border: 1px solid rgba(150,185,225,.12); border-radius: 10px; padding: 8px 10px; background: linear-gradient(160deg, rgba(27,42,56,.72), rgba(12,20,29,.9)); }
  body.mobile-shell .mbet-top { display: flex; align-items: center; justify-content: space-between; color: var(--tz-muted); font-size: 10px; }
  body.mobile-shell .mbet-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 0 2px; }
  body.mobile-shell .mbet-title b { font-size: 12.5px; color: var(--tz-text); font-weight: 500; }
  body.mobile-shell .mbet-title span { font-size: 10px; color: var(--tz-muted); }
  body.mobile-shell .mbet-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--tz-text-2); font-size: 10.5px; }
  body.mobile-shell .mbet-money { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 10.5px; color: var(--tz-muted); }
  body.mobile-shell .mbet-money b { color: var(--tz-text); }
  body.mobile-shell .mbet-sub { margin-top: 3px; color: var(--tz-muted); font-size: 9.5px; }
  body.mobile-shell .mbet-empty { min-height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(150,185,225,.18); border-radius: 10px; color: var(--tz-muted); font-size: 11.5px; }
  body.mobile-shell #page-auto .keep-bar { margin-top: 10px; }
}

/* H5 顶部公告滚动 */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .topbar {
    display: flex !important;
    height: 34px; flex: 0 0 34px;
    padding: 0 8px; gap: 0;
    background: rgba(10,18,26,.96);
    border-bottom: 1px solid rgba(150,185,225,.12);
  }
  body.mobile-shell .topbar .crumbs,
  body.mobile-shell .topbar .top-user { display: none !important; }
  body.mobile-shell .topbar .marquee {
    display: flex !important;
    flex: 1; height: 26px;
    background: rgba(255,255,255,.035);
    border-color: rgba(150,185,225,.14);
    border-radius: 13px;
    padding: 0 10px;
  }
  body.mobile-shell .topbar .marquee-track {
    color: var(--tz-text-2);
    font-size: 11.5px;
  }
  body.mobile-shell .topbar .marquee-track span { padding-right: 36px; }
}

/* H5 自动投注：平台头部开始按钮 + 统计两行 */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .mp-head { gap: 6px; }
  body.mobile-shell .mp-head-actions { display: inline-flex; align-items: center; gap: 5px; flex: none; }
  body.mobile-shell .mp-start {
    height: 32px; padding: 0 10px; border-radius: 8px;
    border: 1px solid rgba(46,230,176,.5);
    background: linear-gradient(180deg, #7dffd9, #2ee6b0 55%, #14a381);
    color: #06231c; font-size: 11.5px; font-weight: 700; white-space: nowrap;
  }
  body.mobile-shell .mp-start.running { color: #fff; border-color: #c0392b; background: linear-gradient(180deg, #d9564a, #b43228); }
  body.mobile-shell #page-auto .stats-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 6px;
    margin: 8px 0;
    align-items: stretch;
  }
  body.mobile-shell #page-auto .stats-bar .stat {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1px; min-height: 42px; min-width: 0;
    padding: 5px 7px; border-radius: 8px;
    border: 1px solid rgba(150,185,225,.1);
    background: rgba(255,255,255,.025);
    font-size: 9.5px; color: var(--tz-muted);
    white-space: nowrap; overflow: hidden;
  }
  body.mobile-shell #page-auto .stats-bar .stat b {
    font-size: 12px; color: var(--tz-text); font-weight: 600;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  }
  body.mobile-shell #page-auto .stats-bar .stat.teal b { color: var(--tz-accent); }
  body.mobile-shell #page-auto .stats-bar .stat.danger b { color: #ff9d94; }
  body.mobile-shell #page-auto .stats-bar .btn {
    min-height: 42px; height: auto; border-radius: 8px; font-size: 10px;
    border: 1px solid rgba(255,90,80,.3); color: #ffb3ab;
    background: rgba(255,90,80,.08); padding: 4px;
  }
}

/* H5 自动投注顶部一行开奖 */
.mobile-draw-strip { display: none; }
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-auto .lottery-card { display: none; }
  body.mobile-shell .mobile-draw-strip {
    display: flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 9px; margin: 0 0 9px;
    border: 1px solid rgba(150,185,225,.14); border-radius: 10px;
    background: linear-gradient(150deg, rgba(24,43,62,.9), rgba(11,20,29,.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    overflow: hidden;
  }
  body.mobile-shell .mobile-draw-strip .mds-name {
    flex: 0 1 auto; max-width: 38%; min-width: 0;
    font-size: 11.5px; font-weight: 600; color: var(--tz-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  body.mobile-shell .mobile-draw-strip .mds-issue {
    flex: none; font-size: 10px; color: var(--tz-muted); white-space: nowrap;
  }
  body.mobile-shell .mobile-draw-strip .mds-balls {
    flex: 1; min-width: 0; font-family: var(--tz-mono);
    font-size: 11px; color: var(--tz-text-2); letter-spacing: .6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  body.mobile-shell .mobile-draw-strip .mds-timer {
    flex: none; margin-left: auto; font-family: var(--tz-mono);
    font-size: 12px; color: var(--tz-accent); white-space: nowrap;
  }
}

/* H5 自动投注：直接使用原开奖卡改一行（确保可见） */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .mobile-draw-strip { display: none !important; }
  body.mobile-shell #page-auto { display: flex; flex-direction: column; }
  body.mobile-shell #page-auto .auto-top { display: contents; }
  body.mobile-shell #page-auto .lottery-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 9px !important;
    margin: 0 0 9px !important;
    border-radius: 10px !important;
    overflow: hidden;
    order: -3;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-name {
    flex: 0 1 auto; max-width: 38%; min-width: 0;
    font-size: 11.5px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-issue {
    flex: none; font-size: 10px !important; color: var(--tz-muted) !important; white-space: nowrap;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-issue::before { content: "期号 "; font-size: 9px; color: var(--tz-muted); }
  body.mobile-shell #page-auto .lottery-card .lottery-balls {
    display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important;
    flex: 1; min-width: 0; gap: 2px !important; margin: 0 !important; overflow: hidden;
    width: auto !important; max-width: none !important; grid-template-columns: none !important;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-balls .ball {
    width: 18px !important; height: 18px !important; min-width: 18px;
    font-size: 9px !important; line-height: 18px; border-radius: 50%;
    padding: 0; box-shadow: none;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-balls.many { display: flex !important; width: auto !important; }
  body.mobile-shell #page-auto .lottery-card .lottery-balls.many .ball {
    width: 14px !important; height: 14px !important; min-width: 14px;
    font-size: 8px !important; line-height: 14px;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-timer {
    flex: none; margin-left: auto; font-size: 12px !important; letter-spacing: 0; white-space: nowrap;
  }
  body.mobile-shell #page-auto .lottery-card .share-state { display: none !important; }
  body.mobile-shell #page-auto .page-head { order: -2; }
  body.mobile-shell #page-auto .mobile-platform-panel { order: -1; }
  body.mobile-shell #page-auto .options-card { order: 0; }
}

/* ===== H5 自动投注：页面隔离 / 顶部开奖行固定 / 底部留白 ===== */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .page:not(.active) { display: none !important; }
  body.mobile-shell #page-auto { padding-bottom: 10px; }
  body.mobile-shell #page-auto .lottery-card {
    position: sticky; top: 0; z-index: 8;
    margin-bottom: 8px !important;
  }
  body.mobile-shell .mobile-bottom-nav {
    z-index: 260;
    background: #0a121a;
    border-top: 1px solid rgba(150,185,225,.16);
  }
}

/* H5 顶部开奖行滚动时保持不透明，避免下面标题透出 */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-auto .lottery-card {
    background: linear-gradient(150deg, #16273a, #0b141d 80%);
  }
}


/* H5 平台卡片：与 PC 平台条卡片完全同构 */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .mp-track {
    gap: 8px;
    padding: 2px 0 6px;
    scroll-snap-type: x mandatory;
  }
  body.mobile-shell .mp-track .pcard {
    flex: 0 0 208px;
    scroll-snap-align: start;
    padding: 9px 10px 10px;
  }
  body.mobile-shell .mp-track .pcard-top {
    height: auto;
    min-height: 26px;
    gap: 8px;
  }
  body.mobile-shell .mp-track .pcard-logo {
    width: 26px; height: 26px; flex-basis: 26px;
    font-size: 12.5px; border-radius: 7px;
  }
  body.mobile-shell .mp-track .pcard-title { font-size: 12.5px; }
  body.mobile-shell .mp-track .pcard-badge {
    height: 18px; line-height: 16px; padding: 0 7px;
    font-size: 10px; border-radius: 9px;
  }
  body.mobile-shell .mp-track .pcard-dot { width: 8px; height: 8px; flex-basis: 8px; }
  body.mobile-shell .mp-track .pcard-meta { gap: 3px; font-size: 10.5px; }
  body.mobile-shell .mp-track .pcard .meta-line { line-height: 18px; gap: 6px; }
  body.mobile-shell .mp-track .pcard .meta-line > span { flex-basis: 46px; font-size: 10.5px; }
  body.mobile-shell .mp-track .pcard .meta-line > b { font-size: 10.5px; }
  body.mobile-shell .mp-track .pcard .meta-line.line > b { gap: 5px; }
  body.mobile-shell .mp-track .pcard .icon-btn {
    width: 22px; height: 22px; font-size: 13px; border-radius: 6px;
  }
  body.mobile-shell .mp-track .pcard .lat { font-size: 9.5px; line-height: 15px; }
}

/* H5 平台卡片宽度微调，保证余额完整显示 */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .mp-track .pcard { flex: 0 0 222px; }
  body.mobile-shell .mp-track .pcard .meta-line > span { flex-basis: 44px; }
  body.mobile-shell .mp-track .pcard .icon-btn { width: 21px; height: 21px; font-size: 12.5px; }
}

/* ================= PC 自动投注：顶部开奖球（平台卡片上方，界面正中间） ================= */
.draw-ticker { display: none; }

body.auto-ticker:not(.mobile-shell) .draw-ticker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  flex: 0 0 auto;
  padding: 8px 22px 9px;
  border-bottom: 1px solid var(--tz-line);
  background: linear-gradient(180deg, rgba(14, 23, 33, .97), rgba(9, 15, 22, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.draw-ticker .dt-left {
  justify-self: start;
  min-width: 0;
}
.draw-ticker .dt-lottery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--tz-muted);
  white-space: nowrap;
}
.draw-ticker .dt-lottery .select {
  height: 32px;
  min-width: 176px;
  font-size: 12px;
}
.draw-ticker .dt-center {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.draw-ticker .dt-issue {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--tz-muted);
  white-space: nowrap;
}
.draw-ticker .dt-issue em,
.draw-ticker .dt-timer em { font-style: normal; }
.draw-ticker .dt-issue b {
  font-family: var(--tz-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--tz-text-2);
  letter-spacing: .3px;
}
.draw-ticker .dt-balls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.draw-ticker .dt-ball {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tz-mono);
  font-size: 13px;
  font-weight: 700;
  color: #04222e;
  background: radial-gradient(circle at 33% 26%, #ffffff 0%, #eaf9ff 30%, #b9e6fb 58%, #4ea8d4 82%, #1272a0 100%);
  border: 1px solid rgba(6, 166, 201, .65);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .95);
  box-shadow:
    inset 0 2px 5px rgba(255, 255, 255, .95),
    inset 0 -4px 8px rgba(8, 86, 120, .35),
    0 0 0 2px rgba(255, 255, 255, .10),
    0 0 12px rgba(46, 230, 176, .30),
    0 5px 12px rgba(0, 0, 0, .38);
  animation: dt-ball-glow 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .18s);
}
.draw-ticker .dt-balls.many .dt-ball {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  font-size: 10px;
}
.draw-ticker .dt-timer {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  color: var(--tz-muted);
  white-space: nowrap;
}
.draw-ticker .dt-timer b {
  font-family: var(--tz-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #ff8a7a;
}

@keyframes dt-ball-glow {
  0%, 100% {
    box-shadow:
      inset 0 2px 5px rgba(255, 255, 255, .95),
      inset 0 -4px 8px rgba(8, 86, 120, .35),
      0 0 0 2px rgba(255, 255, 255, .10),
      0 0 10px rgba(46, 230, 176, .22),
      0 5px 12px rgba(0, 0, 0, .38);
  }
  50% {
    box-shadow:
      inset 0 2px 5px rgba(255, 255, 255, .95),
      inset 0 -4px 8px rgba(8, 86, 120, .35),
      0 0 0 2px rgba(255, 255, 255, .16),
      0 0 18px rgba(46, 230, 176, .45),
      0 5px 12px rgba(0, 0, 0, .38);
  }
}

/* PC：彩种下拉已放到开奖条左侧，页面标题行不再重复显示 */
body:not(.mobile-shell) #page-auto .page-head .inline-field { display: none; }
/* PC：开奖放到顶部后，原左侧开奖大卡隐藏，选项占满整行 */
body:not(.mobile-shell) #page-auto .lottery-card { display: none !important; }
body:not(.mobile-shell) #page-auto .auto-top { display: block; }
body.mobile-shell .draw-ticker { display: none !important; }


/* ===== H5 自动投注：顶部开奖行的彩种下拉 ===== */
.m-lottery-select { display: none; }

@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-auto .lottery-card .lottery-name { display: none !important; }
  body.mobile-shell #page-auto .lottery-card .m-lottery-select {
    display: block;
    flex: 0 1 auto;
    width: 122px;
    max-width: 42%;
    min-width: 0;
    height: 26px;
    padding: 0 18px 0 7px;
    border: 1px solid rgba(150, 185, 225, .2);
    border-radius: 7px;
    background-color: rgba(255, 255, 255, .045);
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1 3.2l4 4 4-4' fill='none' stroke='%2396b9d9' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 9px 9px;
    color: var(--tz-text);
    font-size: 11px;
    font-family: inherit;
    line-height: 24px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  body.mobile-shell #page-auto .lottery-card .m-lottery-select option {
    background: #0c1722;
    color: #e8f2ff;
  }
  /* 彩种切换已移到开奖行，标题行不再显示彩种下拉 */
  body.mobile-shell #page-auto .page-head .inline-field { display: none !important; }
}


/* ===== H5 开奖球：与 PC 顶部开奖条同一套风格 ===== */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-auto .lottery-card .lottery-balls .ball {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    font-size: 10px !important;
    line-height: 20px;
    font-family: var(--tz-mono);
    font-weight: 700;
    color: #04222e !important;
    background: radial-gradient(circle at 33% 26%, #ffffff 0%, #eaf9ff 30%, #b9e6fb 58%, #4ea8d4 82%, #1272a0 100%) !important;
    border: 1px solid rgba(6, 166, 201, .6) !important;
    border-radius: 50% !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
    box-shadow:
      inset 0 1px 3px rgba(255, 255, 255, .95),
      inset 0 -2px 4px rgba(8, 86, 120, .32),
      0 0 0 1px rgba(255, 255, 255, .08),
      0 0 7px rgba(46, 230, 176, .28) !important;
    padding: 0;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-balls {
    gap: 2px !important;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-balls.many .ball {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    font-size: 8.5px !important;
    line-height: 16px;
  }
  /* 给开奖球腾出空间：彩种下拉与期号略收窄 */
  body.mobile-shell #page-auto .lottery-card .m-lottery-select {
    width: 112px;
    font-size: 10.5px;
    padding-right: 16px;
  }
}


/* H5 开奖行：压缩其它元素，保证 5 个开奖球完整显示 */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-auto .lottery-card .m-lottery-select {
    width: 104px;
    font-size: 10px;
    padding-left: 6px;
    padding-right: 15px;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-issue {
    font-size: 9.5px !important;
    letter-spacing: 0;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-issue::before {
    font-size: 9px;
    margin-right: 2px;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-timer {
    font-size: 11px !important;
    letter-spacing: 0;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-balls {
    flex: 0 1 auto;
    justify-content: flex-start !important;
  }
}


/* H5 开奖球：精确容纳 5 个球；PK10（10 球）自动两行 */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-auto .lottery-card .lottery-balls .ball {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px;
    font-size: 9.5px !important;
    line-height: 19px;
  }
  body.mobile-shell #page-auto .lottery-card .lottery-balls {
    gap: 1px !important;
  }
  body.mobile-shell #page-auto .lottery-card.has-many {
    height: auto !important;
    min-height: 38px !important;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  body.mobile-shell #page-auto .lottery-card.has-many .lottery-balls {
    flex-wrap: wrap;
    gap: 3px !important;
    overflow: visible;
  }
  body.mobile-shell #page-auto .lottery-card.has-many .lottery-balls .ball {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px;
    font-size: 8px !important;
    line-height: 15px;
  }
}


/* H5 PK10：10 个开奖球换行显示，不再挤出倒计时 */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-auto .lottery-card.has-many .lottery-balls {
    flex: 1 1 auto;
    flex-wrap: wrap !important;
    gap: 3px !important;
    min-width: 0;
    overflow: visible !important;
  }
  body.mobile-shell #page-auto .lottery-card.has-many .lottery-timer {
    margin-left: 4px !important;
  }
}


/* PC 自动投注：去掉「自动投注」标题标签（面包屑已显示），不再占高度 */
body:not(.mobile-shell) #page-auto .page-head { display: none; }


/* ===== 顶栏会员下拉（合并原左下角退出登录） ===== */
.top-user { position: relative; }
.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 9px 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.user-trigger:hover,
.top-user.open .user-trigger {
  background: rgba(150, 185, 225, .07);
  border-color: var(--tz-line);
}
.user-caret {
  font-size: 9px;
  line-height: 1;
  color: var(--tz-muted);
  transition: transform .18s ease;
}
.top-user.open .user-caret { transform: rotate(180deg); }
.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 240;
  width: 214px;
  padding: 8px;
  border: 1px solid var(--tz-line-strong);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(20, 32, 45, .99), rgba(9, 15, 22, .99));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.user-menu[hidden] { display: none; }
.user-menu .um-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 4px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--tz-line);
}
.user-menu .um-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.user-menu .um-info strong {
  font-size: 12.5px;
  color: var(--tz-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu .um-info small { font-size: 10px; color: var(--tz-muted); }
.user-menu .um-item {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tz-text-2);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.user-menu .um-item:hover {
  background: rgba(255, 92, 122, .12);
  color: #ff9d94;
}


/* ===== 提示消息：显示在界面正中间（余额刷新等操作提示） ===== */
.toast-box {
  top: 50%;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  max-width: min(86vw, 420px);
}
.toast-box .toast {
  text-align: center;
  max-width: 100%;
  word-break: break-word;
}
body.mobile-shell .toast-box {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}


/* ===== 顶栏消息铃铛 ===== */
.top-bell { position: relative; flex: 0 0 auto; display: flex; align-items: center; }
.bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--tz-text-2);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.bell-btn:hover,
.top-bell.open .bell-btn {
  background: rgba(150, 185, 225, .07);
  border-color: var(--tz-line);
  color: var(--tz-text);
}
.bell-btn svg { display: block; }
.bell-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff6b6b, #d92d2d);
  color: #fff;
  font: 700 9.5px/15px var(--tz-mono);
  text-align: center;
  box-shadow: 0 0 0 2px rgba(10, 16, 24, .9), 0 0 8px rgba(255, 80, 80, .5);
}
.bell-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 240;
  width: 300px;
  border: 1px solid var(--tz-line-strong);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(20, 32, 45, .99), rgba(9, 15, 22, .99));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
.bell-panel[hidden] { display: none; }
.bell-panel .bp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tz-line);
}
.bell-panel .bp-head strong { font-size: 12.5px; color: var(--tz-text); font-weight: 600; }
.bell-panel .bp-clear {
  border: 0;
  background: transparent;
  color: var(--tz-accent);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}
.bell-panel .bp-clear:hover { background: rgba(46, 230, 176, .1); }
.bell-panel .bp-body { max-height: 300px; overflow-y: auto; }
.bell-panel .bp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 26px 16px 28px;
  color: var(--tz-muted);
  font-size: 12px;
  text-align: center;
}
.bell-panel .bp-empty-ico {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--tz-line);
  background: rgba(150, 185, 225, .06);
  color: var(--tz-faint);
  margin-bottom: 2px;
}
.bell-panel .bp-empty small { font-size: 10.5px; color: var(--tz-faint); }

/* 用户下拉：客服聊天项 */
.user-menu .um-item { gap: 8px; }
.user-menu .um-item svg { flex: 0 0 auto; color: var(--tz-muted); }
.user-menu .um-item.um-chat:hover { background: rgba(46, 230, 176, .1); color: var(--tz-accent); }
.user-menu .um-item.um-chat:hover svg { color: var(--tz-accent); }
.user-menu .um-item.um-chat { margin-bottom: 2px; }

/* 手机端顶栏只保留公告 */
body.mobile-shell .top-bell { display: none !important; }


/* 铃铛图标质感 */
.bell-btn .bell-glyph {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
  transition: filter .18s ease, transform .18s ease;
}
.bell-btn:hover .bell-glyph {
  filter: drop-shadow(0 0 7px rgba(140, 210, 245, .45)) drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
  transform: translateY(-1px);
}
.bell-btn:active .bell-glyph { transform: translateY(0) scale(.95); }


/* ===== 客服聊天室 ===== */
.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2100;
  width: 362px;
  height: 512px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tz-line-strong);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(18, 29, 41, .99), rgba(8, 13, 20, .995));
  box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  animation: cw-pop .2s ease both;
}
.chat-widget[hidden] { display: none; }
@keyframes cw-pop {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.chat-widget .cw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tz-line);
  background: linear-gradient(180deg, rgba(46, 230, 176, .08), rgba(46, 230, 176, 0));
}
.chat-widget .cw-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.chat-widget .cw-avatar {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 176, .35);
  background: radial-gradient(circle at 32% 26%, #1d3b3a, #0d1d23 75%);
  color: var(--tz-accent);
  font-size: 13px; font-weight: 700;
  box-shadow: 0 0 12px rgba(46, 230, 176, .18);
}
.chat-widget .cw-title-txt { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.chat-widget .cw-title-txt strong { font-size: 12.5px; color: var(--tz-text); font-weight: 600; }
.chat-widget .cw-title-txt small {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--tz-muted);
}
.chat-widget .cw-online {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tz-accent);
  box-shadow: 0 0 6px rgba(46, 230, 176, .9);
}
.chat-widget .cw-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.chat-widget .cw-btn {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--tz-muted);
  font: inherit; font-size: 12px; cursor: pointer;
  transition: all .15s ease;
}
.chat-widget .cw-btn:hover { color: var(--tz-text); border-color: var(--tz-line); background: rgba(150, 185, 225, .07); }
.chat-widget .cw-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(46, 230, 176, .06), transparent 70%),
    linear-gradient(180deg, rgba(9, 15, 22, .4), rgba(9, 15, 22, .75));
}
.chat-widget .cw-msg { display: flex; align-items: flex-start; gap: 7px; max-width: 88%; }
.chat-widget .cw-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.chat-widget .cw-ava {
  width: 26px; height: 26px; flex: 0 0 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #1b2a39, #131d29);
  border: 1px solid var(--tz-line-strong);
  color: var(--tz-accent);
  font-family: var(--tz-mono);
  font-size: 10.5px;
}
.chat-widget .cw-msg.me .cw-ava { color: #7fc9ff; border-color: rgba(127, 201, 255, .3); }
.chat-widget .cw-bubble {
  padding: 7px 10px 5px;
  border: 1px solid var(--tz-line);
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(27, 42, 56, .9), rgba(14, 22, 31, .92));
  color: var(--tz-text-2);
  font-size: 12px;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.chat-widget .cw-msg.me .cw-bubble {
  border-color: rgba(46, 230, 176, .28);
  background: linear-gradient(165deg, rgba(23, 62, 54, .92), rgba(12, 34, 31, .95));
  color: #dffaf1;
}
.chat-widget .cw-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }
.chat-widget .cw-bubble time {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: var(--tz-faint);
  text-align: right;
  font-family: var(--tz-mono);
}
.chat-widget .cw-empty {
  margin: auto;
  color: var(--tz-faint);
  font-size: 11.5px;
}
.chat-widget .cw-input {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-top: 1px solid var(--tz-line);
  background: rgba(8, 13, 20, .96);
}
.chat-widget .cw-input .input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  font-size: 12px;
}
.chat-widget .cw-input .btn { flex: 0 0 auto; height: 34px; }

@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .chat-widget {
    left: 10px;
    right: 10px;
    top: 92px;
    bottom: 70px;
    width: auto;
    height: auto;
    border-radius: 12px;
  }
}


/* ===== 聊天窗口：客服 / 交流群 双页签 ===== */
.chat-widget .cw-head {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 12px 0;
}
.chat-widget .cw-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-widget .cw-tabs {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}
.chat-widget .cw-tab {
  flex: 1 1 0;
  height: 30px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--tz-muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.chat-widget .cw-tab:hover { color: var(--tz-text-2); background: rgba(150, 185, 225, .05); }
.chat-widget .cw-tab.active {
  color: var(--tz-accent);
  background: rgba(46, 230, 176, .08);
  border-color: rgba(46, 230, 176, .22);
}
.chat-widget .cw-name {
  display: block;
  margin-bottom: 2px;
  font-size: 9.5px;
  color: var(--tz-accent);
  opacity: .9;
}
.user-menu .um-item.um-room:hover { background: rgba(127, 201, 255, .1); color: #7fc9ff; }
.user-menu .um-item.um-room:hover svg { color: #7fc9ff; }


/* 智能盈利回头：次数 / 下次 数值高亮 */
#backProfitCount, #backProfitNext {
  color: var(--tz-text-2) !important;
  font-family: var(--tz-mono);
  font-size: 10.5px;
  letter-spacing: .2px;
}
#backProfitCount .bp-val, #backProfitNext .bp-val {
  margin-left: 3px;
  color: var(--tz-accent);
  font-weight: 700;
  font-size: 11.5px;
  text-shadow: 0 0 8px rgba(46, 230, 176, .35);
}


/* 投注状态：已中奖红色 / 未中奖绿色 */
.pill.win {
  background: var(--tz-bad-soft);
  color: var(--tz-bad);
  border-color: rgba(255, 92, 122, .3);
}
.pill.miss {
  background: var(--tz-accent-soft);
  color: var(--tz-accent);
  border-color: rgba(46, 230, 176, .3);
}


/* 投注成功 / 待开奖 用蓝色，和「未中奖」绿色区分开 */
.pill.accent {
  background: rgba(127, 201, 255, .12);
  color: #7fc9ff;
  border-color: rgba(127, 201, 255, .3);
}


/* 投注记录：平台 / 彩种用不同颜色区分 */
#betBody .bet-platform,
#dashBetBody .bet-platform {
  color: #7fc9ff;
  font-weight: 600;
}
#betBody .bet-game,
#dashBetBody .bet-game {
  color: var(--tz-accent);
  font-weight: 600;
}
body.mobile-shell .mbet-title b { color: var(--tz-accent); }
body.mobile-shell .mbet-sub { color: #7fc9ff; }


/* ===== 总览顶部横幅广告 ===== */
.ov-banner {
  position: relative;
  margin: 0 0 14px;
  border: 1px solid var(--tz-line);
  border-radius: var(--tz-radius-lg);
  overflow: hidden;
  background: var(--tz-surface);
  box-shadow: var(--tz-shadow);
}
.ov-banner[hidden] { display: none; }
.ovb-track { position: relative; height: 174px; }
.ovb-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .4s ease;
  text-decoration: none;
}
.ovb-slide.on { opacity: 1; z-index: 1; }
.ovb-title {
  margin: 14px 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(4, 10, 18, .55);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 12px;
  letter-spacing: .3px;
  backdrop-filter: blur(6px);
}
.ovb-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.ovb-dots button {
  width: 7px; height: 7px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: all .18s ease;
}
.ovb-dots button.on { width: 18px; border-radius: 4px; background: #fff; }

@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  .ovb-track { height: 116px; }
  .ovb-title { margin: 10px; font-size: 11px; }
}


/* 总览横幅：禁止被 flex 压缩 */
.ov-banner { flex: 0 0 auto; }
.ov-banner .ovb-track { min-height: 174px; }
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  .ov-banner .ovb-track { min-height: 116px; }
}


/* H5 投注记录状态：与 PC 统一（已中奖红 / 未中奖绿 / 投注成功蓝） */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .mbet-card .pill.win,
  body.mobile-shell #mobileBetList .pill.win {
    color: #ff5c7a !important;
    background: rgba(255, 92, 122, .12) !important;
    border-color: rgba(255, 92, 122, .3) !important;
  }
  body.mobile-shell .mbet-card .pill.miss,
  body.mobile-shell #mobileBetList .pill.miss {
    color: #2ee6b0 !important;
    background: rgba(46, 230, 176, .12) !important;
    border-color: rgba(46, 230, 176, .3) !important;
  }
  body.mobile-shell .mbet-card .pill.accent,
  body.mobile-shell #mobileBetList .pill.accent {
    color: #7fc9ff !important;
    background: rgba(127, 201, 255, .12) !important;
    border-color: rgba(127, 201, 255, .3) !important;
  }
}


/* H5：只保留「添加平台」右侧的开始/停止按钮，隐藏选项里重复的启动按钮 */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-auto .opt-side #startBtn,
  body.mobile-shell #page-auto .opt-side .start-btn {
    display: none !important;
  }
}


/* H5 投注卡片：盈亏 / 方案盈亏 数值着色（盈利红、亏损绿） */
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell .mbet-money .up,
  body.mobile-shell .mbet-money .down {
    font-weight: 700;
  }
  body.mobile-shell .mbet-money .up { color: #ff5c7a; }
  body.mobile-shell .mbet-money .down { color: #2ee6b0; }
}


/* ===== 实时精彩缩水（排列五选五） ===== */
.rts {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 14px;
  gap: 10px;
  overflow: hidden;
}
.rts-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.rts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rts-head h1 { margin: 0 0 3px; font-size: 18px; color: var(--tz-text); }
.rts-head p { margin: 0; font-size: 11px; color: var(--tz-muted); }

/* 精彩缩水：顶部开奖球 + 彩种切换 */
.rts-livebar { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 0 8px; min-height: 26px; }
.rts-game-select {
  height: 26px; max-width: 180px; padding: 0 8px; border-radius: 6px;
  border: 1px solid var(--tz-line); background: #0a1823; color: var(--tz-text-2);
  font: inherit; font-size: 11px;
}
.rts-live-balls { display: inline-flex; gap: 4px; align-items: center; }
.rts-live-ball {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  font-family: var(--tz-mono); font-size: 11px; font-weight: 700; color: #fff;
  background: #4f86a3; border: 1px solid #3e6e89;
}
.rts-live-ball.p2 { background: #3e937b; border-color: #2f755f; }
.rts-live-ball.p3 { background: #a77a42; border-color: #855d2e; }
.rts-live-ball.p4 { background: #77679b; border-color: #5e4e80; }
.rts-live-ball.p5 { background: #b65b6b; border-color: #944554; }
.rts-live-issue { color: var(--tz-muted); font-size: 10.5px; }

/* 缩水回测：右侧从上到下的验证列表 */
.rts-backtest { min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 8px 8px; }
.rts-bt-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.rts-bt-head strong { font-size: 12px; color: var(--tz-text); font-weight: 600; }
.rts-bt-head label { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--tz-muted); }
.rts-bt-head select {
  height: 24px; padding: 0 4px; border-radius: 5px; border: 1px solid var(--tz-line);
  background: #0a1823; color: var(--tz-text-2); font: inherit; font-size: 10px;
}
.rts-bt-summary { min-height: 16px; padding: 3px 0; font-size: 10px; color: var(--tz-muted); }
.rts-bt-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; border-radius: 8px; background: rgba(0,0,0,.14); }
.rts-bt-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 10px; }
.rts-bt-table th {
  position: sticky; top: 0; z-index: 1; padding: 2px 3px; text-align: left;
  background: rgba(22, 33, 46, .98); color: var(--tz-muted); font-weight: 500;
  border-bottom: 1px solid var(--tz-line); white-space: nowrap;
}
.rts-bt-table th:nth-child(1), .rts-bt-table td:nth-child(1) { width: 53%; }
.rts-bt-table th:nth-child(2), .rts-bt-table td:nth-child(2) { width: 28%; }
.rts-bt-table th:nth-child(3), .rts-bt-table td:nth-child(3) { width: 19%; }
.rts-bt-table td { padding: 1px 3px; border-bottom: 1px solid rgba(70, 118, 148, .14); color: var(--tz-text-2); white-space: nowrap; }
.rts-bt-table td.num { font-family: var(--tz-mono); letter-spacing: 0; font-size: 9.5px; }
.rts-bt-table tr.hit td.state { color: var(--tz-accent); font-weight: 700; }
.rts-bt-table tr.miss td.state { color: #ffb3ab; }
.rts-bt-empty { padding: 10px; color: var(--tz-faint); font-size: 10.5px; text-align: center; }
.rts-tags { display: flex; gap: 6px; }
.rts-tags span {
  height: 24px; padding: 0 10px; display: inline-flex; align-items: center;
  border-radius: 12px; border: 1px solid rgba(46, 230, 176, .3);
  background: rgba(46, 230, 176, .1); color: var(--tz-accent); font-size: 11px;
}
.rts-body {
  flex: 1 1 auto; min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, .92fr) minmax(240px, 300px);
  gap: 10px;
}
.rts-config, .rts-results, .rts-backtest {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tz-line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(18, 28, 40, .92), rgba(9, 15, 22, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: 10px 12px;
}
.rts-config { overflow-y: auto; }
.rts-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.rts-row > b { flex: 0 0 34px; font-size: 11px; font-weight: 500; color: var(--tz-muted); line-height: 26px; }
.rts-chips { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 5px; }
.rts-chip {
  height: 26px; padding: 0 10px;
  border: 1px solid var(--tz-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, .03);
  color: var(--tz-text-2);
  font: inherit; font-size: 11px;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.rts-chip:hover { border-color: var(--tz-line-strong); color: var(--tz-text); }
.rts-chip.on {
  background: linear-gradient(180deg, #7dffd9, #2ee6b0);
  border-color: rgba(46, 230, 176, .6);
  color: #06231c;
  font-weight: 700;
}
.rts-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.rts-btn {
  height: 30px; padding: 0 12px;
  border: 1px solid var(--tz-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--tz-text-2);
  font: inherit; font-size: 11.5px;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}
.rts-btn:hover { border-color: var(--tz-line-strong); color: var(--tz-text); }
.rts-btn.primary {
  background: linear-gradient(180deg, #7dffd9, #2ee6b0);
  border-color: rgba(46, 230, 176, .6);
  color: #06231c; font-weight: 700;
}
.rts-btn.warn { color: #ffb3ab; border-color: rgba(255, 92, 122, .3); background: rgba(255, 92, 122, .08); }
.rts-btn.ghost { color: var(--tz-muted); }
.rts-btn.sm { height: 26px; padding: 0 9px; font-size: 10.5px; }
.rts-cond-head {
  display: flex; align-items: center; gap: 8px;
  padding-top: 8px; margin-bottom: 6px;
  border-top: 1px solid var(--tz-line);
  font-size: 11px; color: var(--tz-muted);
}
.rts-cond-head span { color: var(--tz-accent); }
.rts-conditions { flex: 1 1 auto; min-height: 60px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }
.rts-cond {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--tz-line);
  border-left: 2px solid rgba(46, 230, 176, .5);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  font-size: 11px; color: var(--tz-text-2);
}
.rts-cond.ex { border-left-color: rgba(255, 92, 122, .55); }
.rts-cond-idx { width: 18px; height: 18px; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(150, 185, 225, .12); font-size: 9.5px; color: var(--tz-muted); }
.rts-cond-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rts-cond-text b { color: var(--tz-text); font-weight: 600; }
.rts-cond-text em { font-style: normal; margin-left: 4px; font-size: 10px; }
.rts-cond-text em.in { color: var(--tz-accent); }
.rts-cond-text em.ex { color: var(--tz-bad); }
.rts-cond-del {
  width: 20px; height: 20px; flex: 0 0 20px;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--tz-faint); cursor: pointer; font-size: 11px;
}
.rts-cond-del:hover { color: var(--tz-bad); background: rgba(255, 92, 122, .1); }
.rts-results .rts-res-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px 10px;
  flex-wrap: wrap;
  padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 1px solid var(--tz-line);
}
.rts-results .rts-res-head strong { font-size: 12.5px; color: var(--tz-text); font-weight: 600; min-width: 0; flex: 1 1 150px; }
.rts-results .rts-res-head b { color: var(--tz-accent); font-size: 14px; }
.rts-res-actions { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.rts-elapsed { margin-left: 6px; font-size: 10px; color: var(--tz-muted); font-weight: 400; white-space: nowrap; }
.rts-inv { margin-left: 6px; font-size: 10px; padding: 1px 6px; border-radius: 8px; background: rgba(255, 92, 122, .12); color: var(--tz-bad); }
.rts-result-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.rts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; }
.rts-num {
  padding: 3px 0; text-align: center;
  border: 1px solid var(--tz-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .025);
  font-family: var(--tz-mono); font-size: 11.5px; color: var(--tz-text-2);
}
.rts-pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0 2px; font-size: 11px; color: var(--tz-muted); }
.rts-pager button {
  height: 24px; padding: 0 10px;
  border: 1px solid var(--tz-line); border-radius: 7px;
  background: rgba(255, 255, 255, .04); color: var(--tz-text-2); font: inherit; font-size: 10.5px; cursor: pointer;
}
.rts-pager button:disabled { opacity: .35; cursor: default; }
.rts-foot { flex: 0 0 auto; padding-top: 6px; border-top: 1px solid var(--tz-line); font-size: 10.5px; color: var(--tz-muted); }
.rts-foot b { color: var(--tz-text-2); font-family: var(--tz-mono); }
.rts-empty {
  height: 100%; min-height: 70px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--tz-line);
  border-radius: 10px;
  color: var(--tz-faint); font-size: 11.5px; text-align: center; padding: 12px;
}
.rts-gate {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
}
.rts-gate-card {
  width: min(420px, 92%);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--tz-line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(18, 28, 40, .95), rgba(9, 15, 22, .98));
  box-shadow: var(--tz-shadow);
}
.rts-gate-card h2 { margin: 0 0 8px; font-size: 18px; color: var(--tz-text); }
.rts-gate-card p { margin: 0 0 18px; font-size: 12px; color: var(--tz-muted); }
.rts-gate-card button {
  height: 36px; padding: 0 22px;
  border: 1px solid rgba(46, 230, 176, .5);
  border-radius: 9px;
  background: linear-gradient(180deg, #7dffd9, #2ee6b0);
  color: #06231c; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.rts-mask {
  position: fixed; inset: 0; z-index: 2200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 8, 14, .62);
  backdrop-filter: blur(4px);
}
.rts-mask[hidden] { display: none; }
.rts-dialog {
  width: min(560px, 92vw);
  padding: 16px 18px;
  border: 1px solid var(--tz-line-strong);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(18, 29, 41, .99), rgba(8, 13, 20, .995));
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85);
}
.rts-dialog h3 { margin: 0 0 6px; font-size: 14px; color: var(--tz-text); }
.rts-dialog p { margin: 0 0 10px; font-size: 11px; color: var(--tz-muted); }
.rts-dialog textarea {
  width: 100%; height: 160px; resize: vertical;
  padding: 10px; border: 1px solid var(--tz-line); border-radius: 9px;
  background: rgba(255, 255, 255, .03); color: var(--tz-text);
  font-family: var(--tz-mono); font-size: 12px; line-height: 1.6; outline: none;
}
.rts-dialog textarea:focus { border-color: var(--tz-accent-line); }
.rts-dialog-info { min-height: 16px; padding-top: 5px; font-size: 10.5px; color: var(--tz-accent); }
.rts-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; }

@media (max-width: 1100px) {
  .rts-body { grid-template-columns: 1fr; }
  .rts-config { max-height: 52vh; }
}
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-rtshrink { padding: 0; }
  body.mobile-shell .rts { padding: 10px 10px 8px; }
  body.mobile-shell .rts-body { grid-template-columns: 1fr; }
  body.mobile-shell .rts-config { max-height: 56vh; }
  body.mobile-shell .rts-num { font-size: 10.5px; }
  body.mobile-shell .rts-head h1 { font-size: 16px; }
}


/* hidden 属性优先（避免 display:flex 覆盖） */
.rts [hidden],
.rts-gate[hidden],
.rts-main[hidden],
.rts-mask[hidden] { display: none !important; }


.rts-tags .rts-star {
  height: 24px; padding: 0 10px;
  display: inline-flex; align-items: center;
  border-radius: 12px;
  border: 1px solid var(--tz-line);
  background: rgba(255, 255, 255, .03);
  color: var(--tz-muted);
  font: inherit; font-size: 11px;
  cursor: pointer;
  transition: all .15s ease;
}
.rts-tags .rts-star.on {
  border-color: rgba(46, 230, 176, .35);
  background: rgba(46, 230, 176, .12);
  color: var(--tz-accent);
  font-weight: 600;
}


/* 星数切换：条件面板顶部 */
.rts-starrow {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--tz-line);
}
.rts-starrow .rts-star {
  flex: 1 1 0;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--tz-line);
  background: rgba(255, 255, 255, .03);
  color: var(--tz-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s ease;
}
.rts-starrow .rts-star.on {
  border-color: rgba(46, 230, 176, .45);
  background: linear-gradient(180deg, #7dffd9, #2ee6b0);
  color: #06231c;
  font-weight: 700;
}


/* 星数按钮：紧凑两字宽 */
.rts-starrow { justify-content: flex-start; }
.rts-starrow .rts-star {
  flex: 0 0 auto;
  width: 58px;
  height: 28px;
  padding: 0 6px;
  font-size: 11.5px;
}


/* ===== 腾龙阁AI推荐 ===== */
.airec {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  overflow: hidden;
}
.airec-head { flex: 0 0 auto; }
.airec-head h1 { margin: 0 0 3px; font-size: 18px; color: var(--tz-text); }
.airec-head p { margin: 0; font-size: 11px; color: var(--tz-muted); }
.airec-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
}
.airec-config, .airec-main {
  min-height: 0;
  border: 1px solid var(--tz-line);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(18, 28, 40, .92), rgba(9, 15, 22, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: 10px 12px;
}
.airec-config { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.airec-block h3 { margin: 0 0 6px; font-size: 11px; color: var(--tz-muted); font-weight: 500; }
.airec-mode-group { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.airec-mode-label { flex: 0 0 100%; font-size: 10px; color: var(--tz-faint); }
.airec-mode {
  height: 24px; padding: 0 8px;
  border: 1px solid var(--tz-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  color: var(--tz-text-2);
  font: inherit; font-size: 10.5px;
  cursor: pointer;
}
.airec-mode:hover { border-color: var(--tz-line-strong); color: var(--tz-text); }
.airec-mode.on {
  background: rgba(46, 230, 176, .12);
  border-color: rgba(46, 230, 176, .4);
  color: var(--tz-accent);
  font-weight: 600;
}
.airec-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.airec-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--tz-muted); }
.airec-fields input {
  height: 30px; padding: 0 8px;
  border: 1px solid var(--tz-line); border-radius: 7px;
  background: rgba(255, 255, 255, .03); color: var(--tz-text);
  font: inherit; font-size: 12px; outline: none;
}
.airec-run {
  height: 38px;
  border: 1px solid rgba(46, 230, 176, .5);
  border-radius: 9px;
  background: linear-gradient(180deg, #7dffd9, #2ee6b0);
  color: #06231c; font: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.airec-meta { font-size: 10px; color: var(--tz-faint); line-height: 1.6; }
.airec-main { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.airec-card {
  border: 1px solid var(--tz-line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .02);
}
.airec-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.airec-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 10px; background: rgba(46, 230, 176, .12);
  color: var(--tz-accent); font-size: 10.5px; margin-right: 6px;
}
.airec-issue { font-size: 10.5px; color: var(--tz-muted); }
.airec-target { font-size: 10.5px; color: var(--tz-muted); }
.airec-target b { color: var(--tz-text-2); font-family: var(--tz-mono); }
.airec-result {
  margin: 10px 0 8px;
  font-family: var(--tz-mono);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--tz-accent);
  text-shadow: 0 0 12px rgba(46, 230, 176, .25);
  word-break: break-word;
}
.airec-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10.5px; color: var(--tz-muted); }
.airec-stats b { color: var(--tz-text-2); font-family: var(--tz-mono); }
.airec-reasons h3, .airec-history h3 {
  margin: 0 0 6px; font-size: 11.5px; color: var(--tz-text);
  font-weight: 600;
}
.airec-reasons h3 span, .airec-history h3 span { font-size: 10px; color: var(--tz-muted); font-weight: 400; }
.airec-reasons ul { margin: 0; padding-left: 16px; }
.airec-reasons li { font-size: 11px; color: var(--tz-text-2); line-height: 1.75; }
.airec-method { margin: 8px 0 0; font-size: 10px; color: var(--tz-faint); line-height: 1.7; }
.airec-table-wrap { max-height: 320px; overflow: auto; border: 1px solid var(--tz-line); border-radius: 8px; }
.airec-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.airec-table th {
  position: sticky; top: 0;
  background: #0d1723;
  color: var(--tz-muted); font-weight: 500;
  text-align: left; padding: 6px 8px;
  border-bottom: 1px solid var(--tz-line);
  white-space: nowrap;
}
.airec-table td { padding: 5px 8px; border-bottom: 1px solid rgba(150, 185, 225, .06); color: var(--tz-text-2); }
.airec-table td.hit { color: var(--tz-bad); font-weight: 600; }
.airec-table td.miss { color: var(--tz-accent); }
.airec-empty {
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--tz-line);
  border-radius: 10px;
  color: var(--tz-faint); font-size: 11.5px; text-align: center; padding: 12px;
}
@media (max-width: 1100px) {
  .airec-body { grid-template-columns: 1fr; }
  .airec-config { max-height: 46vh; }
}
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-airec { padding: 0; }
  body.mobile-shell .airec { padding: 10px; }
  body.mobile-shell .airec-result { font-size: 18px; }
}


/* ===== 腾龙阁AI推荐 · 排行 + 22算法卡片 ===== */
.airec { height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 12px 16px; gap: 10px; }
.airec-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.airec-title h1 { margin: 0; font-size: 17px; color: var(--tz-text); }
.airec-title p { margin: 0; font-size: 10px; color: var(--tz-muted); }
.airec-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.airec-toolbar label { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--tz-muted); }
.airec-select {
  height: 28px; min-width: 86px; padding: 0 8px;
  border: 1px solid var(--tz-line); border-radius: 7px;
  background: rgba(255,255,255,.03); color: var(--tz-text-2);
  font: inherit; font-size: 11px; outline: none;
}
.airec-num {
  width: 62px; height: 28px; padding: 0 6px;
  border: 1px solid var(--tz-line); border-radius: 7px;
  background: rgba(255,255,255,.03); color: var(--tz-text);
  font: inherit; font-size: 11.5px; outline: none;
}
.airec-run {
  height: 30px; padding: 0 16px;
  border: 1px solid rgba(46,230,176,.5); border-radius: 8px;
  background: linear-gradient(180deg,#7dffd9,#2ee6b0);
  color: #06231c; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.airec-stat { font-size: 10px; color: var(--tz-faint); }
.airec-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 10px; }
.airec-rank {
  min-height: 0; display: flex; flex-direction: column;
  border: 1px solid var(--tz-line); border-radius: 10px;
  background: linear-gradient(160deg, rgba(18,28,40,.92), rgba(9,15,22,.96));
  overflow: hidden;
}
.airec-rank-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--tz-line); }
.airec-rank-tabs button {
  flex: 1; height: 26px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--tz-muted); font: inherit; font-size: 10.5px; cursor: pointer;
}
.airec-rank-tabs button.on { background: rgba(46,230,176,.12); border-color: rgba(46,230,176,.35); color: var(--tz-accent); }
.airec-rank-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.airec-rank-item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 7px; border: 1px solid transparent; border-radius: 8px;
  background: rgba(255,255,255,.02); color: var(--tz-text-2); text-align: left;
  font: inherit; cursor: pointer;
}
.airec-rank-item:hover { border-color: var(--tz-line); background: rgba(255,255,255,.04); }
.airec-rank-no {
  width: 18px; height: 18px; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(150,185,225,.12); color: var(--tz-muted); font-size: 9.5px; font-family: var(--tz-mono);
}
.airec-rank-no.top { background: rgba(255,92,122,.15); color: #ff8a7a; }
.airec-rank-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.airec-rank-main b { font-size: 11px; color: var(--tz-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.airec-rank-main small { font-size: 9px; color: var(--tz-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.airec-rank-rate { flex: 0 0 auto; font-family: var(--tz-mono); font-size: 11px; color: var(--tz-accent); }
.airec-cards-panel { min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--tz-line); border-radius: 10px; background: rgba(8,13,20,.35); overflow: hidden; }
.airec-card-tabs { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--tz-line); }
.airec-card-tabs button {
  height: 26px; padding: 0 12px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--tz-muted); font: inherit; font-size: 11px; cursor: pointer;
}
.airec-card-tabs button.on { background: rgba(46,230,176,.12); border-color: rgba(46,230,176,.35); color: var(--tz-accent); }
.airec-cards { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; align-content: start; }
.airec-card2 {
  border: 1px solid var(--tz-line); border-radius: 10px;
  background: linear-gradient(160deg, rgba(18,28,40,.92), rgba(9,15,22,.96));
  padding: 9px 10px; display: flex; flex-direction: column; gap: 6px;
}
.airec-card2-head { display: flex; align-items: flex-start; gap: 8px; }
.airec-ai {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 26%, #1e3a3a, #0c1a22 78%);
  border: 1px solid rgba(46,230,176,.35); color: var(--tz-accent);
  font-family: var(--tz-mono); font-size: 11px; font-weight: 700;
}
.airec-card2-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.airec-card2-title b { font-size: 12px; color: var(--tz-text); }
.airec-card2-title small { font-size: 9.5px; color: var(--tz-faint); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.airec-medal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; margin-left: 6px;
  background: rgba(255,92,122,.18); color: #ff8a7a; font-size: 9px; font-family: var(--tz-mono);
}
.airec-card2-sub { font-size: 9.5px; color: var(--tz-muted); }
.airec-card2-rec {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 8px; border: 1px dashed var(--tz-line); border-radius: 8px;
  background: rgba(255,255,255,.02);
}
.airec-card2-rec span { font-size: 10px; color: var(--tz-muted); }
.airec-card2-rec b { font-family: var(--tz-mono); font-size: 20px; color: var(--tz-accent); letter-spacing: 2px; }
.airec-card2-state { font-size: 10px; color: #ffb44d; }
.airec-card2-note { font-size: 9px; color: var(--tz-faint); line-height: 1.55; }
.airec-card2-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.airec-card2-stats > div { display: flex; flex-direction: column; gap: 1px; padding: 5px 6px; border-radius: 7px; background: rgba(255,255,255,.03); }
.airec-card2-stats span { font-size: 8.5px; color: var(--tz-faint); }
.airec-card2-stats b { font-size: 10.5px; color: var(--tz-text-2); font-family: var(--tz-mono); }
.airec-card2-stats em { font-style: normal; font-size: 8.5px; color: var(--tz-muted); }
.airec-card2-toggle {
  align-self: flex-start; height: 24px; padding: 0 8px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: transparent; color: var(--tz-muted); font: inherit; font-size: 10px; cursor: pointer;
}
.airec-card2-toggle:hover { color: var(--tz-accent); border-color: var(--tz-accent-line); }
.airec-card2-reasons { margin: 0; padding-left: 15px; display: flex; flex-direction: column; gap: 3px; }
.airec-card2-reasons li { font-size: 9.5px; color: var(--tz-text-2); line-height: 1.6; }
.airec-card2 .airec-table-wrap { max-height: none; }
.airec-cards .airec-table-wrap { grid-column: 1 / -1; }
@media (max-width: 1200px) { .airec-cards { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .airec-body { grid-template-columns: 1fr; } .airec-rank { max-height: 34vh; } }
@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  body.mobile-shell #page-airec { padding: 0; }
  body.mobile-shell .airec { padding: 8px; }
  body.mobile-shell .airec-cards { grid-template-columns: 1fr; }
}


/* AI推荐卡片：贴合源站排版 */
.airec-card2 { gap: 5px; }
.airec-card2 .airec-medal { margin-left: auto; }
.airec-card2-ref { font-size: 10.5px; color: var(--tz-text-2); font-weight: 600; }
.airec-card2-sub { font-size: 9px; color: var(--tz-muted); }
.airec-card2-rec {
  justify-content: flex-start; gap: 8px;
  padding: 6px 8px;
}
.airec-card2-rec > span { flex: 0 0 auto; }
.airec-num-chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: 4px; background: rgba(255, 180, 77, .14);
  color: #ffb44d; font-size: 10px; font-weight: 600;
}
.airec-rec-val {
  margin-left: auto;
  font-family: var(--tz-mono); font-size: 22px; letter-spacing: 2px;
  color: var(--tz-accent) !important;
}
.airec-card2-state { font-size: 10px; color: #ffb44d; }
.airec-card2-note { font-size: 9px; color: var(--tz-faint); line-height: 1.55; }
.airec-card2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.airec-card2-foot { font-size: 9px; color: var(--tz-faint); }
.airec-card2-links { display: flex; gap: 6px; }
.airec-mini {
  height: 24px; padding: 0 8px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: transparent; color: var(--tz-muted);
  font: inherit; font-size: 10px; cursor: pointer;
}
.airec-mini:hover { color: var(--tz-accent); border-color: var(--tz-accent-line); }
.airec-card2-detail { font-size: 9.5px; color: var(--tz-muted); line-height: 1.65; white-space: pre-wrap; }
.airec-card2-actions { display: flex; gap: 6px; padding-top: 2px; }
.airec-act {
  height: 24px; padding: 0 8px;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: rgba(255, 255, 255, .03); color: var(--tz-text-2);
  font: inherit; font-size: 10px; cursor: pointer;
}
.airec-act:hover { color: var(--tz-text); border-color: var(--tz-line-strong); }
.airec-rank-detail {
  flex: 0 0 auto; padding: 1px 5px;
  border: 1px solid var(--tz-line); border-radius: 5px;
  font-size: 9px; color: var(--tz-muted);
}
.airec-rank-item:hover .airec-rank-detail { color: var(--tz-accent); border-color: var(--tz-accent-line); }


.airec-card2-rec-line { display: flex; align-items: center; gap: 8px; }
.airec-card2-rec-line .airec-rec-val { margin-left: auto; }
.airec-source { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--tz-muted); }
.airec-source input {
  width: 160px; height: 28px; padding: 0 8px;
  border: 1px solid var(--tz-line); border-radius: 7px;
  background: rgba(255,255,255,.03); color: var(--tz-text);
  font: inherit; font-size: 11px; outline: none;
}
.airec-source input:focus { border-color: var(--tz-accent-line); }


/* AI推荐：下拉框深色（含 options 弹层） */
.airec-select, .airec-num { color-scheme: dark; }
.airec-select {
  background-color: #0c1722 !important;
  color: #e8f2ff !important;
  border-color: rgba(150,185,225,.22);
}
.airec-select option {
  background-color: #0c1722;
  color: #e8f2ff;
}
.airec-select:focus { border-color: var(--tz-accent-line); }


/* AI推荐 · 查看明细弹窗 */
.airec-mask { position: fixed; inset: 0; z-index: 2300; display: flex; align-items: center; justify-content: center; background: rgba(3,8,14,.66); backdrop-filter: blur(5px); }
.airec-mask[hidden] { display: none !important; }
.airec-detail {
  width: min(1080px, 94vw); height: min(760px, 90vh);
  display: flex; flex-direction: column;
  border: 1px solid var(--tz-line-strong); border-radius: 14px;
  background: linear-gradient(165deg, rgba(18,29,41,.995), rgba(8,13,20,.995));
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
  overflow: hidden;
}
.airec-detail-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--tz-line); }
.airec-detail-head h2 { margin: 0; font-size: 15px; color: var(--tz-text); }
.airec-detail-head button { height: 28px; padding: 0 12px; border: 1px solid var(--tz-line); border-radius: 7px; background: rgba(255,255,255,.04); color: var(--tz-text-2); font: inherit; font-size: 11px; cursor: pointer; }
.airec-detail-body { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.airec-detail-block { border: 1px solid var(--tz-line); border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,.02); }
.airec-detail-block h3 { margin: 0 0 6px; font-size: 13px; color: var(--tz-text); }
.airec-detail-block p { margin: 0 0 4px; font-size: 11px; color: var(--tz-text-2); }
.airec-detail-rec { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.airec-detail-val { font-family: var(--tz-mono); font-size: 26px; color: var(--tz-accent); letter-spacing: 2px; }
.airec-detail-states { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--tz-muted); }
.airec-detail-states .amber { color: #ffb44d; font-size: 12px; }
.airec-detail-btns { display: flex; gap: 8px; margin: 8px 0 2px; }
.airec-detail-btns button { height: 28px; padding: 0 12px; border: 1px solid var(--tz-line); border-radius: 7px; background: rgba(255,255,255,.04); color: var(--tz-text-2); font: inherit; font-size: 11px; cursor: pointer; }
.airec-detail-btns button:hover { border-color: var(--tz-accent-line); color: var(--tz-accent); }
.airec-detail-note { font-size: 9.5px !important; color: var(--tz-faint) !important; line-height: 1.6; }
.airec-detail-tablewrap { overflow: auto; max-height: 420px; border: 1px solid var(--tz-line); border-radius: 8px; }
.airec-detail-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.airec-detail-table th { position: sticky; top: 0; z-index: 1; background: #0d1723; color: var(--tz-muted); font-weight: 500; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--tz-line); white-space: nowrap; }
.airec-detail-table td { padding: 5px 8px; border-bottom: 1px solid rgba(150,185,225,.06); color: var(--tz-text-2); vertical-align: middle; }
.airec-td-period b { display: block; font-size: 10px; color: var(--tz-text-2); font-weight: 500; }
.airec-td-period span { font-size: 9px; color: var(--tz-muted); }
.airec-td-draw { white-space: nowrap; }
.airec-ball { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 2px; border-radius: 50%; background: rgba(150,185,225,.08); font-family: var(--tz-mono); font-size: 9.5px; color: var(--tz-text-2); }
.airec-ball.hit { background: rgba(255,92,122,.18); color: #ff8a7a; font-weight: 700; }
.airec-detail-table td.is-hit { color: #ff8a7a; }
.airec-detail-table td.is-miss { color: var(--tz-accent); }


/* AI推荐：独胆/号码贴在一起，不要推到最右边 */
.airec-card2-rec-line { justify-content: flex-start; gap: 6px; }
.airec-card2-rec-line .airec-rec-val { margin-left: 0 !important; }
.airec-card2-rec { justify-content: flex-start; }


/* AI推荐：定位复式等长号码，一行完整显示 */
.airec-card2-rec-line { flex-wrap: nowrap; min-width: 0; }
.airec-rec-val.long {
  font-size: 12.5px !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  min-width: 0;
}
.airec-detail-val.long {
  font-size: 15px !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}


/* 长号码一行显示：隐藏玩法胶囊 + 缩小字号 */
.airec-card2-rec-line.long { gap: 0; }
.airec-card2-rec-line.long .airec-num-chip { display: none; }
.airec-rec-val.long {
  font-size: 10px !important;
  letter-spacing: 0 !important;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}


/* AI推荐 · 单式出号 */
.airec-single { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 10px 12px; gap: 8px; }
.airec-single[hidden] { display: none !important; }
.airec-single-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.airec-single-head strong { font-size: 13px; color: var(--tz-text); }
.airec-single-head span { font-size: 10.5px; color: var(--tz-muted); }
.airec-single-head .airec-run { margin-left: auto; height: 30px; }
.airec-single-list { flex: 1; min-height: 0; overflow-y: auto; }
.airec-single-count { font-size: 11px; color: var(--tz-muted); margin-bottom: 6px; }
.airec-single-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; }
.airec-single-grid .airec-num { font-family: var(--tz-mono); font-size: 11.5px; text-align: center; padding: 3px 0; border: 1px solid var(--tz-line); border-radius: 6px; background: rgba(255,255,255,.03); color: var(--tz-text-2); }

/* 单式模式下隐藏排行与卡片 */
.airec-rank[hidden], .airec-card-tabs[hidden], #airecCards[hidden] { display: none !important; }


/* 单式模式：内容占满整行 */
.airec-body.single-mode { grid-template-columns: minmax(0, 1fr) !important; }


/* 卡片两栏：右侧号码框 + 指标侧排 */
.airec-card2-cols { display: flex; gap: 10px; min-height: 0; }
.airec-card2-left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.airec-card2-box {
  flex: 0 0 168px;
  min-width: 0;
  border: 1px solid var(--tz-line);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 210px;
}
.airec-card2-box .box-head { font-size: 9.5px; color: var(--tz-muted); }
.airec-card2-box .box-num {
  font-family: var(--tz-mono);
  font-size: 20px;
  color: var(--tz-accent);
  letter-spacing: 1px;
  word-break: break-all;
}
.airec-card2-box .box-num.long { font-size: 10px; letter-spacing: 0; }
.airec-card2-box .box-state { font-size: 9px; color: #ffb44d; margin-top: auto; }
.airec-card2-box .box-text {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  font-family: var(--tz-mono);
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--tz-text-2);
  word-break: break-all;
}
.airec-card2-stats2 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  font-size: 9.5px;
  color: var(--tz-muted);
  margin-top: 2px;
}
.airec-card2-stats2 b { color: var(--tz-text-2); font-family: var(--tz-mono); font-weight: 500; text-align: right; }
.airec-card2-stats2 span { white-space: nowrap; }


/* 指标块：标签在上、数值在下，对齐 */
.airec-card2-stats2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.airec-card2-stats2 > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
}
.airec-card2-stats2 span {
  font-size: 8px;
  line-height: 1.3;
  color: var(--tz-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.airec-card2-stats2 b {
  font-size: 10px;
  line-height: 1.3;
  color: var(--tz-text-2);
  font-family: var(--tz-mono);
  font-weight: 600;
  text-align: left;
}


/* 显示框：标签在框外顶部 */
.airec-card2-right { flex: 0 0 168px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.airec-card2-right .box-head { font-size: 9.5px; color: var(--tz-muted); padding-left: 2px; }
.airec-card2-right .airec-card2-box { flex: 1; max-height: 190px; }


/* 卡片指标配色 */
.airec-card2-stats2 span { color: var(--tz-text-2) !important; }
.airec-card2-stats2 b { color: var(--tz-text) !important; }
.airec-card2-stats2 i { font-style: normal; }
.airec-card2-stats2 .v-hit { color: #ff5c7a; font-weight: 700; }
.airec-card2-stats2 .v-miss { color: #2ee6b0; font-weight: 700; }
.airec-card2-stats2 .v-rate { color: #7fc9ff; font-weight: 700; }
.airec-card2-stats2 .v-half { color: #ffb44d; font-weight: 700; }
.airec-card2-stats2 .v-theory { color: #b8c8da; }
.airec-card2-sub { color: var(--tz-muted) !important; }
.airec-card2-sub b { color: var(--tz-text) !important; font-family: var(--tz-mono); font-weight: 600; }
.airec-card2-sub em { font-style: normal; color: #ffb44d; }
.airec-card2-foot { color: var(--tz-muted) !important; }

/* 指标数值颜色优先级 */
.airec-card2-stats2 .v-rate { color: #7fc9ff !important; font-weight: 700; }
.airec-card2-stats2 .v-half { color: #ffb44d !important; font-weight: 700; }
.airec-card2-stats2 .v-theory { color: #b8c8da !important; }
.airec-card2-stats2 .v-hit { color: #ff5c7a !important; }
.airec-card2-stats2 .v-miss { color: #2ee6b0 !important; }

/* 推荐排行：表格拉满高度，不再只显示 11 行 */
.airec-cards .airec-table-wrap { max-height: none !important; width: 100%; grid-column: 1 / -1; }
.airec-cards .airec-table { width: 100%; }

/* 推荐排行：表格随内容撑开，面板整体滚动，22 行全部可达 */
.airec-cards .airec-table-wrap { overflow: visible !important; }
.airec-cards .airec-table th { position: sticky; top: 0; z-index: 2; }


/* 玩法位置：星数 + 位置选择 */
.airec-poschips { display: inline-flex; gap: 3px; }
.airec-poschip {
  width: 26px; height: 26px; padding: 0;
  border: 1px solid var(--tz-line); border-radius: 6px;
  background: rgba(255,255,255,.03); color: var(--tz-muted);
  font: inherit; font-size: 11px; cursor: pointer;
}
.airec-poschip.on {
  background: rgba(46,230,176,.14);
  border-color: rgba(46,230,176,.4);
  color: var(--tz-accent); font-weight: 700;
}
.airec-poschip:disabled { cursor: default; }

/* ============================================================
   精彩趋势 · 超级趋势专业版（原版 LegacyProView / K线 / 多周期 / 遗漏图）
   ============================================================ */
#page-supertrend { background: #050e17; }
#page-protrend { background: #e9ecef; }
#page-protrend .st-page { flex: 1; min-height: 0; height: 100%; display: flex; background: #e9ecef; }
#page-protrend .st-frame { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: #e9ecef; }

/* ============================================================
   精彩趋势 K线图样式（当前页面仍在用）                                   
   ============================================================ */
.tk {
  height: 100%; min-height: 0; display: flex; flex-direction: column;
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(23, 77, 102, .22), transparent 62%),
    linear-gradient(180deg, #06131f 0%, #050d16 100%);
  color: #d7e3ef;
}
.tk-gate { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.tk-gate[hidden] { display: none; }
.tk-gate-card {
  width: min(420px, 92vw); padding: 26px; border-radius: 14px;
  border: 1px solid rgba(82, 142, 172, .34);
  background: linear-gradient(165deg, rgba(13, 34, 50, .96), rgba(6, 16, 26, .98));
  text-align: center;
}
.tk-gate-card h2 { margin: 0 0 10px; font-size: 20px; color: #f2f8ff; }
.tk-gate-card p { margin: 0 0 18px; color: #8fa6b9; font-size: 13px; line-height: 1.7; }
.tk-gate-card button {
  height: 36px; padding: 0 22px; border-radius: 8px; border: 1px solid rgba(45, 224, 171, .45);
  background: rgba(45, 224, 171, .14); color: #48e6b4; font: inherit; cursor: pointer;
}
.tk-main {
  flex: 1; min-height: 0; display: grid; grid-template-columns: 348px minmax(0, 1fr);
  gap: 10px; padding: 10px;
}
.tk-main[hidden] { display: none; }

/* ---------- 左侧固定缩水工具 ---------- */
.tk-shrink {
  min-height: 0; display: flex; flex-direction: column;
  border: 1px solid rgba(70, 118, 148, .32); border-radius: 12px;
  background: linear-gradient(168deg, rgba(12, 29, 43, .96), rgba(5, 14, 23, .98));
  box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  overflow: hidden;
}
.tk-shrink-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid rgba(70, 118, 148, .26);
  background: rgba(255, 255, 255, .015);
}
.tk-shrink-head h2 { margin: 0; font-size: 15px; color: #eef7ff; letter-spacing: .5px; }
.tk-shrink-head p { margin: 2px 0 0; font-size: 10.5px; color: #7390a6; }
.tk-shrink-toggle {
  margin-left: auto; width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid rgba(70, 118, 148, .3); background: rgba(255, 255, 255, .03);
  color: #9db8cb; cursor: pointer; font: inherit; line-height: 1;
}
.tk-shrink-body { flex: 1; min-height: 0; overflow-y: auto; padding: 9px 10px 0; }
.tk-shrink.collapsed .tk-shrink-body { display: none; }
.tk-shrink.collapsed { grid-column: auto; }
.tk-shrink.collapsed .tk-shrink-head { border-bottom: 0; }
.tk-starrow { display: flex; gap: 4px; margin-bottom: 8px; }
.tk-star {
  flex: 1; height: 28px; border-radius: 6px; border: 1px solid rgba(70, 118, 148, .28);
  background: rgba(255, 255, 255, .025); color: #8da7ba; font: inherit; font-size: 11px; cursor: pointer;
}
.tk-star.on { border-color: rgba(45, 224, 171, .46); background: rgba(45, 224, 171, .12); color: #4ae8b7; font-weight: 700; }
.tk-field { margin-bottom: 7px; }
.tk-field > b { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 500; color: #6f8ba0; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.tk-chip {
  min-width: 26px; height: 24px; padding: 0 7px; border-radius: 5px;
  border: 1px solid rgba(70, 118, 148, .24); background: rgba(255, 255, 255, .02);
  color: #93acbf; font: inherit; font-size: 10.5px; cursor: pointer;
}
.tk-chip.on { border-color: rgba(45, 224, 171, .44); background: rgba(45, 224, 171, .13); color: #4ae8b7; font-weight: 700; }
.tk-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0; }
.tk-actions button {
  height: 27px; border-radius: 5px; border: 1px solid rgba(70, 118, 148, .28);
  background: rgba(255, 255, 255, .025); color: #9fb8ca; font: inherit; font-size: 10.5px; cursor: pointer;
}
.tk-actions button.primary { border-color: rgba(45, 224, 171, .48); background: rgba(45, 224, 171, .16); color: #4ae8b7; font-weight: 700; }
.tk-actions button.ghost { color: #7d94a7; }
.tk-actions button:hover, .tk-star:hover, .tk-chip:hover { background: rgba(255, 255, 255, .06); }
.tk-cond-head {
  display: flex; justify-content: space-between; align-items: center;
  margin: 4px 0 4px; font-size: 10.5px; color: #7d96a9;
}
.tk-conditions { display: flex; flex-direction: column; gap: 4px; }
.tk-empty { padding: 10px 8px; border: 1px dashed rgba(70, 118, 148, .26); border-radius: 6px; color: #6f8a9e; font-size: 10.5px; text-align: center; }
.tk-cond {
  display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-radius: 6px;
  border: 1px solid rgba(70, 118, 148, .22); background: rgba(255, 255, 255, .018);
  font-size: 10.5px; color: #a3bccd;
}
.tk-cond.ex { border-color: rgba(255, 94, 111, .26); background: rgba(255, 94, 111, .05); }
.tk-cond-idx {
  width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(45, 224, 171, .14); color: #4ae8b7; font-size: 9.5px; font-weight: 700;
}
.tk-cond.ex .tk-cond-idx { background: rgba(255, 94, 111, .16); color: #ff7a88; }
.tk-cond-text { flex: 1; min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.tk-cond-text em { font-style: normal; margin-left: 4px; color: #4ae8b7; }
.tk-cond.ex .tk-cond-text em { color: #ff7a88; }
.tk-cond-del { width: 18px; height: 18px; border: 0; border-radius: 4px; background: transparent; color: #70899c; cursor: pointer; }
.tk-cond-del:hover { background: rgba(255, 94, 111, .14); color: #ff7a88; }
.tk-result-head { display: flex; align-items: center; justify-content: space-between; margin: 9px 0 4px; font-size: 11px; color: #9fb8ca; }
.tk-result-head strong { font-weight: 600; color: #d6e6f2; }
.tk-link { border: 0; background: transparent; color: #5d7b90; font: inherit; font-size: 10px; cursor: pointer; }
.tk-result-list {
  max-height: 132px; overflow-y: auto; padding: 5px; border-radius: 6px;
  border: 1px solid rgba(70, 118, 148, .2); background: rgba(0, 0, 0, .16);
}
.tk-num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.tk-num {
  padding: 2px 0; border-radius: 4px; background: rgba(255, 255, 255, .03);
  color: #8faec3; font: 10px/1.5 Consolas, monospace; text-align: center;
}
.tk-foot { padding: 5px 1px 0; color: #637f93; font-size: 10px; }
.tk-apply-row { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 8px 0 9px; background: linear-gradient(180deg, rgba(5, 14, 23, 0), rgba(5, 14, 23, .96) 30%); }
.tk-apply, .tk-restore {
  height: 30px; border-radius: 6px; font: inherit; font-size: 11px; cursor: pointer;
}
.tk-apply { border: 1px solid rgba(45, 224, 171, .5); background: rgba(45, 224, 171, .16); color: #4ae8b7; font-weight: 700; }
.tk-restore { border: 1px solid rgba(70, 118, 148, .3); background: rgba(255, 255, 255, .03); color: #9db8cb; }

/* ---------- 右侧 K线区域 ---------- */
.tk-chart { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.tk-toolbar {
  border: 1px solid rgba(70, 118, 148, .3); border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 28, 42, .97), rgba(6, 17, 27, .97));
  box-shadow: 0 8px 26px rgba(0, 0, 0, .2);
}
.tk-toolbar-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 8px 10px; }
.tk-toolbar-row--sub { border-top: 1px solid rgba(70, 118, 148, .18); padding-top: 6px; }
.tk-title { min-width: 230px; margin-right: auto; }
.tk-title h1 { margin: 0; font-size: 17px; color: #f0f8ff; letter-spacing: 1px; }
.tk-title span { display: block; margin-top: 2px; color: #ffdf2b; font-size: 11px; font-weight: 600; }
.tk-mini-field { display: inline-flex; align-items: center; gap: 3px; color: #7d97aa; font-size: 10.5px; }
.tk-select, .tk-input {
  height: 26px; border-radius: 5px; border: 1px solid rgba(70, 118, 148, .34);
  background: rgba(0, 0, 0, .22); color: #cfe1ee; font: inherit; font-size: 11px; padding: 0 5px;
}
.tk-input { width: 52px; }
.tk-select { max-width: 138px; }
.tk-digits { display: inline-flex; gap: 2px; }
.tk-digit {
  width: 24px; height: 25px; padding: 0; border-radius: 5px;
  border: 1px solid rgba(70, 118, 148, .28); background: rgba(255, 255, 255, .025);
  color: #9db8cb; font: inherit; font-size: 11px; cursor: pointer;
}
.tk-digit.on { border-color: rgba(255, 223, 43, .62); background: rgba(255, 223, 43, .16); color: #ffe14d; font-weight: 700; }
.tk-navbtns { display: inline-flex; gap: 2px; }
.tk-navbtns button, .tk-pattern button, .tk-export {
  height: 25px; padding: 0 7px; border-radius: 5px; border: 1px solid rgba(70, 118, 148, .3);
  background: rgba(255, 255, 255, .025); color: #9db8cb; font: inherit; font-size: 10.5px; cursor: pointer;
}
.tk-navbtns button:hover, .tk-pattern button:hover, .tk-export:hover { background: rgba(255, 255, 255, .07); }
.tk-tabs { display: inline-flex; gap: 2px; }
.tk-tabs button {
  height: 25px; padding: 0 9px; border-radius: 5px; border: 1px solid transparent;
  background: transparent; color: #7994a8; font: inherit; font-size: 10.5px; cursor: pointer;
}
.tk-tabs button.on { border-color: rgba(45, 224, 171, .36); background: rgba(45, 224, 171, .12); color: #4ae8b7; font-weight: 700; }
.tk-ind { display: inline-flex; gap: 2px; }
.tk-ind button {
  height: 24px; padding: 0 7px; border-radius: 5px; border: 1px solid rgba(70, 118, 148, .26);
  background: rgba(255, 255, 255, .02); color: #6f8a9e; font: inherit; font-size: 10px; cursor: pointer;
}
.tk-ind button.on { border-color: rgba(72, 166, 232, .48); background: rgba(72, 166, 232, .12); color: #62b8f0; }
.tk-pattern { display: inline-flex; align-items: center; gap: 3px; }
.tk-pattern-input { width: 150px; }
.tk-export { border-color: rgba(255, 223, 43, .38); color: #ffe14d; background: rgba(255, 223, 43, .08); }
.tk-chart-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.tk-panel {
  border: 1px solid rgba(70, 118, 148, .28); border-radius: 10px; overflow: hidden;
  background: #071827;
}
.tk-panel-head {
  display: flex; align-items: center; gap: 8px; padding: 5px 9px;
  border-bottom: 1px solid rgba(70, 118, 148, .16);
  background: rgba(255, 255, 255, .015); color: #7f9aae; font-size: 10.5px;
}
.tk-panel-head strong { color: #d7e8f5; font-size: 11px; font-weight: 600; }
.tk-panel-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-canvas-wrap { position: relative; width: 100%; }
.tk-canvas-wrap canvas { display: block; width: 100%; height: 100%; }
.tk-canvas-wrap--kline { height: 470px; }
.tk-canvas-wrap--miss { height: 178px; }
.tk-canvas-wrap--mini { height: 112px; }
.tk-cross-v, .tk-cross-h { position: absolute; pointer-events: none; background: rgba(202, 225, 240, .42); z-index: 2; }
.tk-cross-v { top: 18px; bottom: 20px; width: 1px; }
.tk-cross-h { left: 10px; right: 48px; height: 1px; }
.tk-tip {
  position: absolute; z-index: 3; pointer-events: none;
  min-width: 150px; padding: 5px 7px; border-radius: 6px;
  border: 1px solid rgba(116, 168, 196, .44); background: rgba(5, 17, 27, .94);
  color: #cfe3f1; font-size: 10px; line-height: 1.5; box-shadow: 0 5px 16px rgba(0, 0, 0, .35);
}
.tk-tip b { display: block; color: #ffe14d; font-size: 10.5px; }
.tk-tip i { font-style: normal; color: #59e8b9; }

/* 数字球：与源站遗漏图一致的配色 */
.tk-miss-legend { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: #6f8a9e; }
.tk-miss-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 2px; }
.tk-miss-legend .b { background: #2aa9ff; }
.tk-miss-legend .y { background: #ffd23f; }
.tk-miss-legend .p { background: #b877ff; }
.tk-miss-legend .r { background: #ff4b57; }
.tk-miss-legend .g { background: #25d77a; }

@media (max-width: 1180px) {
  .tk-main { grid-template-columns: 306px minmax(0, 1fr); }
  .tk-canvas-wrap--kline { height: 420px; }
}
@media (max-width: 900px) {
  .tk-main { grid-template-columns: 270px minmax(0, 1fr); padding: 6px; gap: 6px; }
  .tk-title { min-width: 160px; }
  .tk-canvas-wrap--kline { height: 360px; }
  .tk-pattern-input { width: 106px; }
}
@media (max-width: 820px) {
  .tk-main { display: flex; flex-direction: column; overflow-y: auto; }
  .tk-shrink { flex: 0 0 auto; max-height: 46vh; }
  .tk-shrink.collapsed { max-height: none; }
  .tk-chart { flex: 0 0 auto; }
  .tk-chart-scroll { overflow: visible; }
  .tk-canvas-wrap--kline { height: 320px; }
  .tk-toolbar-row { gap: 5px; }
  .tk-title { width: 100%; margin-right: 0; }
  .tk-navbtns { flex-wrap: wrap; }
  .tk-result-list { max-height: 110px; }
}

/* 快捷指标（源站 K线图悬浮面板）固定在左侧 */
.tk-quick .tk-shrink-body { padding-bottom: 8px; }
.tk-quick-head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tk-zoom { display: inline-flex; align-items: center; gap: 4px; color: #708ca1; font-size: 9.5px; white-space: nowrap; }
.tk-zoom input { width: 64px; accent-color: #2ee6b0; }
.tk-zoom span { width: 30px; color: #8fb0c6; font: 9.5px Consolas, monospace; }
.tk-quick-actions { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 8px; }
.tk-quick-actions button {
  height: 27px; padding: 0 8px; border-radius: 5px;
  border: 1px solid rgba(70, 118, 148, .32); background: rgba(255, 255, 255, .025);
  color: #9db8cb; font: inherit; font-size: 10.5px; cursor: pointer;
}
.tk-quick-actions button:hover { background: rgba(255, 255, 255, .07); }
.tk-quick-actions button.on,
.tk-quick-actions button.tk-quick-primary {
  border-color: rgba(45, 224, 171, .5); background: rgba(45, 224, 171, .15);
  color: #4ae8b7; font-weight: 700;
}
.tk-quick-actions button[data-tk-pushmode].on {
  border-color: rgba(255, 223, 43, .55); background: rgba(255, 223, 43, .13); color: #ffe14d;
}
.tk-quick-actions--main { margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(70, 118, 148, .2); }
.tk-quick-actions--main button { flex: 1 1 auto; }
.tk-quick-param {
  margin-top: 7px; padding: 6px 7px; border-radius: 6px;
  border: 1px solid rgba(70, 118, 148, .25); background: rgba(0, 0, 0, .16);
}
.tk-quick-param strong { display: block; margin-bottom: 2px; font-size: 10.5px; color: #d7e8f5; }
.tk-quick-param span { display: block; color: #6f8a9e; font-size: 9.5px; line-height: 1.5; }
.tk-quick-foot { margin-top: 7px; color: #6f8a9e; font-size: 9.5px; line-height: 1.5; }
.tk-quick-mode { margin-top: 4px; color: #4ae8b7; font-size: 9.5px; line-height: 1.5; }
.tk-quick-mode:empty { display: none; }

/* 粘贴出图 */
.tk-mask {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  background: rgba(0, 0, 0, .62); padding: 14px;
}
.tk-mask[hidden] { display: none; }
.tk-dialog {
  width: min(560px, 96vw); max-height: 88vh; overflow: auto; padding: 16px;
  border: 1px solid rgba(80, 136, 166, .55); border-radius: 12px;
  background: linear-gradient(170deg, #0c2233, #06141f); color: #dcecf8;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.tk-dialog header { display: flex; align-items: center; justify-content: space-between; }
.tk-dialog h3 { margin: 0; font-size: 16px; color: #f2f9ff; }
.tk-dialog header button {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(80, 136, 166, .4);
  background: transparent; color: #9db8cb; cursor: pointer;
}
.tk-dialog p { margin: 8px 0; color: #7f9bb0; font-size: 11px; line-height: 1.6; }
.tk-dialog textarea {
  box-sizing: border-box; width: 100%; min-height: 150px; padding: 9px; border-radius: 8px;
  border: 1px solid rgba(80, 136, 166, .48); background: #06121c; color: #dcecf8;
  font: 14px/1.6 Consolas, monospace; resize: vertical;
}
.tk-paste-status { margin: 8px 0; color: #8fb0c6; font-size: 10.5px; line-height: 1.5; }
.tk-paste-status.ok { color: #4ae8b7; }
.tk-paste-status.err { color: #ff7a88; }
.tk-dialog-actions { display: flex; gap: 8px; }
.tk-dialog-actions button {
  height: 32px; padding: 0 16px; border-radius: 7px;
  border: 1px solid rgba(70, 118, 148, .38); background: rgba(255, 255, 255, .04);
  color: #b7cddd; font: inherit; font-size: 12px; cursor: pointer;
}
.tk-dialog-actions button.tk-quick-primary {
  border-color: rgba(45, 224, 171, .52); background: rgba(45, 224, 171, .16);
  color: #4ae8b7; font-weight: 700;
}

/* 星级/玩法选择 + 工具栏胆码左对齐 */
.tk-title { margin-right: 0; }
.tk-navbtns { margin-left: auto; }
.tk-inline-label { color: #7d97aa; font-size: 10.5px; white-space: nowrap; }
.tk-playrow { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 8px; }
.tk-playrow button {
  flex: 1 1 auto; min-width: 50px; height: 27px; padding: 0 6px; border-radius: 5px;
  border: 1px solid rgba(70, 118, 148, .32); background: rgba(255, 255, 255, .025);
  color: #8da7ba; font: inherit; font-size: 10.5px; cursor: pointer;
}
.tk-playrow button:hover { background: rgba(255, 255, 255, .07); }
.tk-playrow button.on {
  border-color: rgba(45, 224, 171, .5); background: rgba(45, 224, 171, .14);
  color: #4ae8b7; font-weight: 700;
}


/* 精彩趋势：工具栏标题与长统计分开，胆码不再被推到右上角 */
.tk-title { flex: 0 0 auto; min-width: 110px; max-width: 150px; margin-right: 2px; }
.tk-title h1 { white-space: nowrap; }
.tk-statline { padding: 0 10px 7px; color: #ffdf2b; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }


.tk-toolbar-row--digits { padding-top: 0 !important; padding-bottom: 4px !important; }
.tk-digits-hint { color: #5f7b90; font-size: 9.5px; white-space: nowrap; }


#tkKlineInfo { flex: 1; min-width: 0; color: #ffdf2b; font-size: 10.5px; font-weight: 600; line-height: 1.5; white-space: normal; overflow: visible; text-overflow: clip; }


/* 三图不压缩，超出后滚动查看；K线标签常显 */
.tk-chart-scroll > .tk-panel { flex: 0 0 auto; }
.tk-chart-scroll { scrollbar-width: thin; scrollbar-color: rgba(86, 142, 174, .75) rgba(4, 14, 23, .7); }
.tk-chart-scroll::-webkit-scrollbar { width: 8px; }
.tk-chart-scroll::-webkit-scrollbar-track { background: rgba(4, 14, 23, .7); }
.tk-chart-scroll::-webkit-scrollbar-thumb { background: rgba(86, 142, 174, .72); border-radius: 4px; }
.tk-kline-badge { flex: none; padding: 0 6px; border-radius: 4px; background: rgba(255, 223, 43, .16); color: #ffe14d; font-size: 10.5px; font-weight: 700; line-height: 17px; }

/* 整个缩水工具向左收起，只留一条窄栏 */
.tk-main { transition: grid-template-columns .18s ease; }
.tk-main.shrink-collapsed { grid-template-columns: 30px minmax(0, 1fr); }
.tk-main.shrink-collapsed .tk-shrink-head { justify-content: center; padding: 7px 2px; height: 100%; }
.tk-main.shrink-collapsed .tk-shrink-head > div { display: none; }
.tk-main.shrink-collapsed .tk-quick-head-actions { margin: 0; }
.tk-main.shrink-collapsed .tk-shrink-body { display: none; }
.tk-main.shrink-collapsed .tk-shrink { overflow: hidden; }
.tk-main.shrink-collapsed .tk-shrink-toggle { width: 24px; height: 26px; margin: 0; }
.tk-main.shrink-collapsed .tk-shrink-head::after {
  content: "缩水"; margin-top: 8px; color: #6f8ca1; font-size: 10px; letter-spacing: 1px;
  writing-mode: vertical-rl; text-orientation: upright;
}
@media (max-width: 820px) {
  .tk-main.shrink-collapsed { display: flex; }
  .tk-main.shrink-collapsed .tk-shrink { flex: 0 0 auto; max-height: 42px; width: 100%; }
  .tk-main.shrink-collapsed .tk-shrink-head { flex-direction: row; height: auto; }
  .tk-main.shrink-collapsed .tk-shrink-head::after { writing-mode: horizontal-tb; margin: 0 0 0 6px; }
}

/* 收起后保留展开按钮 */
.tk-main.shrink-collapsed .tk-shrink-head > div:not(.tk-quick-head-actions) { display: none; }
.tk-main.shrink-collapsed .tk-quick-head-actions { display: flex !important; }
.tk-main.shrink-collapsed .tk-shrink-toggle { display: inline-flex !important; align-items: center; justify-content: center; }

/* K线图标签浮在画布上方，不被任何图层盖住 */
.tk-canvas-label {
  position: absolute; z-index: 4; top: 5px; left: 8px;
  padding: 1px 7px; border-radius: 4px;
  border: 1px solid rgba(255, 223, 43, .32);
  background: rgba(3, 14, 23, .9);
  color: #ffdf2b; font: 700 11px/1.6 'Microsoft YaHei', sans-serif;
  pointer-events: none; white-space: nowrap;
}

/* 缩水默认关闭：点击工具栏“缩水”才展开，关闭后完全让出宽度 */
.tk-main.shrink-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.tk-main.shrink-collapsed .tk-shrink { display: none; }
.tk-main.shrink-collapsed .tk-shrink-head::after { content: none; }
.tk-navbtns button.on {
  border-color: rgba(45, 224, 171, .5);
  background: rgba(45, 224, 171, .15);
  color: #4ae8b7;
  font-weight: 700;
}
.tk-shrink-toggle {
  width: auto; min-width: 44px; padding: 0 8px;
  font-size: 10.5px; line-height: 24px;
}
@media (max-width: 820px) {
  .tk-main.shrink-collapsed .tk-shrink { display: none; }
}


/* 修复：缩水关闭时网格只剩一列，K线占满整行 */
.tk-main.shrink-collapsed { grid-template-columns: minmax(0, 1fr) !important; }
.tk-main.shrink-collapsed .tk-chart { grid-column: 1 / -1; }


/* K线滚轮缩放 / 左键拖动 */
#tkKline { cursor: grab; touch-action: none; }
#tkKline.is-dragging { cursor: grabbing; }
#tkMiss, #tkMini { touch-action: none; }
.tk-zoom-hint { color: #5f7b90; font-size: 9.5px; white-space: nowrap; }


#tkKline { user-select: none; -webkit-user-select: none; }

/* 胆推动：下期消失数字浮窗（可拖动） */
.tk-push-card {
  position: absolute; z-index: 6; top: 30px; left: 12px;
  width: 236px; max-height: 330px; overflow: auto;
  padding: 0 0 8px; border-radius: 9px;
  border: 1px solid rgba(104, 129, 143, .75);
  background: rgba(32, 43, 61, .97);
  color: #edf4f7; box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
  font: 11px/1.5 'Microsoft YaHei', sans-serif;
}
.tk-push-card[hidden] { display: none; }
.tk-push-card header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px; border-bottom: 1px solid rgba(104, 129, 143, .36);
  cursor: grab; user-select: none;
}
.tk-push-card header:active { cursor: grabbing; }
.tk-push-card header b { font-size: 13px; color: #edf4f7; }
.tk-push-card header span { color: #8ba3b5; font-size: 12px; letter-spacing: 1px; }
.tk-push-value { padding: 7px 10px 0; color: #ffff00; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: 1px; }
.tk-push-value.empty { color: #bdcbd2; font-size: 13px; }
.tk-push-target { padding: 2px 10px 0; color: #dce6ee; font-size: 11px; font-weight: 600; }
.tk-push-target.signal { color: #ffff00; }
.tk-push-meta { padding: 2px 10px 0; color: #bdcbd2; font-size: 10px; }
.tk-push-sep { margin: 6px 10px; border-top: 1px solid rgba(82, 103, 121, .7); }
.tk-push-scope { padding: 0 10px; color: #bdcbd2; font-size: 10px; }
.tk-push-stats { padding: 2px 10px 0; }
.tk-push-row { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; font-size: 10px; }
.tk-push-row span { color: #bdcbd2; white-space: nowrap; }
.tk-push-row b { font-weight: 700; text-align: right; }
.tk-push-row.hit b { color: #ff525b; }
.tk-push-row.miss b { color: #29b6f6; }
.tk-push-row.signal-hit b { color: #ffff00; }
.tk-push-row.signal-miss b { color: #ff00ff; }
.tk-push-row.plain b { color: #bdcbd2; }
.tk-push-row.rate b { color: #edf4f7; font-size: 11px; }


/* 精彩走势：原版走势图 React 页面嵌入 */
#page-jctrend { position: relative; overflow: hidden; }
#page-jctrend > :not(.jctrend-top):not(.jctrend-body) { display: none !important; }
.jctrend-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 8px; }
.jctrend-shell { flex: 1 1 auto; width: auto; height: 100%; min-width: 0; min-height: 0; background: #eef1f5; }
.jctrend-shell iframe { display: block; width: 100%; height: 100%; border: 0; background: #eef1f5; }


/* 精彩走势：星级/位置分析工具条 */
#page-jctrend.active { display: flex; flex-direction: column; }
.jctrend-top { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--tz-line); background: linear-gradient(180deg, rgba(14,23,33,.98), rgba(9,15,22,.96)); }
.jctrend-stars { display: inline-flex; gap: 3px; }
.jctrend-stars button { height: 28px; min-width: 54px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(70,118,148,.32); background: rgba(255,255,255,.025); color: #8da7ba; font: inherit; font-size: 11px; cursor: pointer; }
.jctrend-stars button.on { border-color: rgba(45,224,171,.5); background: rgba(45,224,171,.14); color: #4ae8b7; font-weight: 700; }
.jctrend-pos-select { height: 28px; max-width: 240px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(70,118,148,.34); background: #0a1823; color: #cfe1ee; font: inherit; font-size: 11px; }
.jctrend-pos-hint { color: #7d97aa; font-size: 10.5px; white-space: nowrap; }
/* 精彩走势：精彩缩水停靠在走势图右侧，不遮挡走势图 */
.jctrend-shrink-mask { flex: 0 0 25%; width: 25%; min-width: 0; min-height: 0; display: flex; background: transparent; padding: 0; position: static; z-index: auto; }
.jctrend-shrink-mask[hidden] { display: none; }
.jctrend-shrink-dialog { width: 100%; height: 100%; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; border: 1px solid rgba(80,136,166,.55); background: #07131f; box-shadow: none; }
.jctrend-shrink-dialog header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid rgba(70,118,148,.3); background: rgba(14,23,33,.98); color: #d7e8f5; }
.jctrend-shrink-dialog header strong { font-size: 13px; letter-spacing: 1px; }
.jctrend-shrink-dialog header button, .jctrend-shrink-actions button { height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(70,118,148,.35); background: rgba(255,255,255,.03); color: #9db8cb; font: inherit; font-size: 11px; cursor: pointer; }
.jctrend-shrink-dialog iframe { flex: 1; min-height: 0; width: 100%; border: 0; background: #07131f; }
/* 缩水嵌入模式：隐藏外壳，只显示精彩缩水 */
body.embed-rtshrink .sidebar, body.embed-rtshrink .topbar, body.embed-rtshrink .draw-ticker, body.embed-rtshrink .platform-strip, body.embed-rtshrink .mobile-nav, body.embed-rtshrink #mobileBottomNav { display: none !important; }
body.embed-rtshrink .main { margin-left: 0 !important; height: 100vh !important; }
body.embed-rtshrink .page.active { height: 100vh !important; }


.jctrend-shrink-actions { display: flex; gap: 6px; }


.jctrend-combos { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.jctrend-combo { height: 26px; padding: 0 7px; border-radius: 5px; border: 1px solid rgba(70,118,148,.3); background: rgba(255,255,255,.025); color: #8da7ba; font: inherit; font-size: 10.5px; cursor: pointer; }
.jctrend-combo.on { border-color: rgba(255,223,43,.55); background: rgba(255,223,43,.13); color: #ffe14d; font-weight: 700; }


html.pre-member .member-login { display: none !important; }
/* 缩水工具嵌入：PC 两栏，左侧条件、右侧结果 */
body.embed-rtshrink .rts-head { display: none !important; }
body.embed-rtshrink .rts-main { height: 100% !important; }
/* 右侧停靠面板宽度只有走势图 1/4：条件在上、结果在下，各自滚动 */
body.embed-rtshrink .rts-body {
  grid-template-columns: 1fr !important;
  grid-template-rows: minmax(0, 1.05fr) minmax(0, .72fr) minmax(0, 1.08fr) !important;
  gap: 6px !important;
}
body.embed-rtshrink .rts-livebar { padding: 0 0 4px !important; gap: 6px !important; min-height: 22px; }
body.embed-rtshrink .rts-game-select { height: 22px !important; max-width: 135px; font-size: 10px !important; }
body.embed-rtshrink .rts-live-ball { width: 19px !important; height: 19px !important; font-size: 9px !important; }
body.embed-rtshrink .rts-live-issue { font-size: 9px !important; }
body.embed-rtshrink .rts-backtest { padding: 5px 6px !important; }
body.embed-rtshrink .rts-bt-head strong { font-size: 10.5px !important; }
body.embed-rtshrink .rts-bt-head label { font-size: 9px !important; }
body.embed-rtshrink .rts-bt-head select { height: 20px !important; font-size: 9px !important; }
body.embed-rtshrink .rts-bt-summary { font-size: 9px !important; padding: 2px 0 !important; }
body.embed-rtshrink .rts-bt-table { font-size: 9px !important; }
body.embed-rtshrink .rts-bt-table th, body.embed-rtshrink .rts-bt-table td { padding: 1px 3px !important; }


.jctrend-shell { position: relative; background: #07131f; }
.jctrend-shell iframe { opacity: 0; transition: opacity .18s ease; }
.jctrend-shell.ready iframe { opacity: 1; }
.jctrend-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #07131f; color: #7f9bb0; font-size: 12px; letter-spacing: 1px; }
.jctrend-shell.ready .jctrend-loading { display: none; }


body.embed-rtshrink #page-trend, body.embed-rtshrink #page-jctrend { display: none !important; }

/* 精彩缩水嵌入：右侧停靠面板 */
.jctrend-shrink-dialog { width: 100% !important; height: 100% !important; }
body.embed-rtshrink .rts { padding: 6px !important; gap: 6px !important; }
body.embed-rtshrink .rts-config {
  max-height: none !important;
  height: auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 5px 6px !important;
}
body.embed-rtshrink .rts-results {
  height: auto !important;
  min-height: 0 !important;
  padding: 5px 6px !important;
}
body.embed-rtshrink .rts-result-list {
  flex: 1 1 auto !important;
  min-height: 70px !important;
  overflow-y: auto !important;
}
body.embed-rtshrink .rts-conditions {
  flex: 0 0 auto !important;
  max-height: 150px !important;
  overflow-y: auto !important;
}
body.embed-rtshrink .rts-star { height: 24px !important; font-size: 10px !important; }
body.embed-rtshrink .rts-row { margin-bottom: 4px !important; }
body.embed-rtshrink .rts-row > b { flex-basis: 28px !important; font-size: 10px !important; line-height: 22px !important; }
body.embed-rtshrink .rts-chips { gap: 3px !important; }
body.embed-rtshrink .rts-chip { height: 21px !important; padding: 0 6px !important; font-size: 9.5px !important; border-radius: 5px !important; }
body.embed-rtshrink .rts-actions { gap: 4px !important; margin: 3px 0 5px !important; }
body.embed-rtshrink .rts-btn { height: 25px !important; padding: 0 8px !important; font-size: 10px !important; border-radius: 6px !important; }
body.embed-rtshrink .rts-cond-head { padding-top: 4px !important; margin-bottom: 3px !important; font-size: 10px !important; }
body.embed-rtshrink .rts-conditions { min-height: 40px !important; gap: 3px !important; }
body.embed-rtshrink .rts-cond { padding: 3px 5px !important; font-size: 9.5px !important; }
body.embed-rtshrink .rts-res-head { padding-bottom: 4px !important; gap: 4px 6px !important; }
body.embed-rtshrink .rts-results .rts-res-head strong { font-size: 11px !important; }
body.embed-rtshrink .rts-results .rts-res-head b { font-size: 13px !important; }
body.embed-rtshrink .rts-elapsed { margin-left: 4px !important; font-size: 9.5px !important; }
body.embed-rtshrink .rts-res-actions .rts-btn { height: 23px !important; padding: 0 7px !important; font-size: 9.5px !important; }
body.embed-rtshrink .rts-result-list { border-radius: 8px; background: rgba(0, 0, 0, .14); }
body.embed-rtshrink .rts-foot { padding-top: 4px !important; font-size: 9.5px !important; }

/* ============================================================
   手机端 H5 重排：计划系统 / 走势图表 / 科学数据
   ============================================================ */
@media (max-width: 820px) {
  /* 计划系统：玩法列表与结果区改为上下单列，结果区占满宽度 */
  #page-plan .plan-work { overflow-y: auto; }
  #page-plan .plan-formula { flex: none; min-height: 0; }
  #page-plan .plan-formula-layout { flex-direction: column; flex: none; }
  #page-plan .plan-formula .plan-list {
    flex: none;
    width: 100%;
    max-height: 208px;
    border-right: 0;
    border-bottom: 1px solid var(--tz-line);
  }
  #page-plan .plan-formula .plan-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 176px;
    padding: 6px 8px;
  }
  #page-plan .plan-play-check { height: 30px; font-size: 12px; }
  #page-plan .plan-formula .plan-detail { width: 100%; flex: none; }
  #page-plan .plan-position-row { flex-wrap: wrap; gap: 6px; padding: 6px 8px; }
  #page-plan .plan-position-row .plan-position-picker { width: 100%; }
  #page-plan .plan-selected-tabs {
    flex: 1 1 100%;
    width: 100%;
    border-left: 0;
    padding-left: 0;
    padding-top: 2px;
  }
  #page-plan .plan-formula .plan-settings { gap: 6px 10px; padding: 6px 8px; }
  #page-plan .plan-formula .plan-result-scroll { width: 100%; flex: none; min-height: 190px; max-height: 340px; }
  #page-plan .plan-records { width: 100%; font-size: 11.5px; }
  #page-plan .plan-records th, #page-plan .plan-records td { padding: 5px 5px; }
  #page-plan .plan-records td.result-numbers { min-width: 140px; width: 42%; }
  #page-plan .plan-formula .formula-numbers { margin-top: 4px; }

  /* 走势图表：手机端默认显示卡片简版，完整宽表可手动切换 */
  #ptBody .pt-mobile-only { display: block; }
  #ptBody .pt-desktop-only { display: none; }
  #ptBody.pt-force-desktop .pt-mobile-only { display: none; }
  #ptBody.pt-force-desktop .pt-desktop-only { display: block; }

  /* 科学数据：控制条换行，不再横向拖动 */
  #page-science .sc-controls {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px 12px;
  }

  /* 总览：手机端隐藏低优先级列，保留平台/余额/状态和投注核心字段 */
  #page-overview .dash-table-platform th:nth-child(2),
  #page-overview .dash-table-platform td:nth-child(2),
  #page-overview .dash-table-platform th:nth-child(3),
  #page-overview .dash-table-platform td:nth-child(3),
  #page-overview .dash-table-bets th:nth-child(1),
  #page-overview .dash-table-bets td:nth-child(1),
  #page-overview .dash-table-bets th:nth-child(4),
  #page-overview .dash-table-bets td:nth-child(4),
  #page-overview .dash-table-bets th:nth-child(7),
  #page-overview .dash-table-bets td:nth-child(7) { display: none; }
}

.pt-mobile-only { display: none; }
.pt-mobile-chart { display: none; }
.ptm-toggle-full { display: none; }
@media (max-width: 820px) {
  .ptm-toggle-full { display: inline-flex; align-items: center; }
  .pt-mobile-chart { display: block; padding: 8px 10px 14px; }
  .ptm-head {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 2px 8px; color: var(--tz-muted); font-size: 11.5px;
  }
  .ptm-head strong { color: var(--tz-text); font-size: 13px; }
  .ptm-head .ptm-toggle {
    margin-left: auto; height: 30px; padding: 0 11px;
    border: 1px solid var(--tz-line); border-radius: 7px;
    background: var(--tz-surface-2); color: var(--tz-text-2);
    font-size: 11.5px; cursor: pointer;
  }
  .ptm-list { display: flex; flex-direction: column; gap: 8px; }
  .ptm-card {
    border: 1px solid var(--tz-line); border-radius: 9px;
    background: var(--tz-surface-2); padding: 8px 10px;
  }
  .ptm-card-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 7px; color: var(--tz-muted); font-size: 11px;
  }
  .ptm-card-top b { color: var(--tz-text); font-size: 12px; font-weight: 600; }
  .ptm-balls { display: flex; flex-wrap: wrap; gap: 5px; }
  .ptm-ball {
    width: 29px; height: 29px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: var(--tz-surface); border: 1px solid var(--tz-line);
    color: var(--tz-text-2); font: 600 13px var(--tz-mono);
  }
  .ptm-ball.big { border-color: var(--tz-accent-line); color: var(--tz-accent); }
  .ptm-meta {
    display: flex; flex-wrap: wrap; gap: 4px 10px;
    margin-top: 8px; color: var(--tz-muted); font-size: 10.5px;
  }
  .ptm-meta b { color: var(--tz-text-2); font-weight: 500; }
  .ptm-toggle-full {
    margin: 0 0 8px; height: 30px; padding: 0 11px;
    border: 1px solid var(--tz-line); border-radius: 7px;
    background: var(--tz-surface-2); color: var(--tz-text-2);
    font-size: 11.5px; cursor: pointer;
  }
}

/* ============================================================
   计划系统 · 方案投注队列
   ============================================================ */
.plan-main-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 10px;
}
.plan-main-layout > .plan-work { flex: 1; min-width: 0; }
.plan-bet-queue {
  flex: 0 0 286px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tz-line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--tz-surface-2) 55%, transparent);
}
.pbq-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--tz-line);
}
.pbq-head > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pbq-head strong { color: var(--tz-text); font-size: 12.5px; font-weight: 600; }
.pbq-head span { color: var(--tz-muted); font-size: 10.5px; }
.pbq-all {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--tz-muted);
  font-size: 10.5px;
  cursor: pointer;
}
.pbq-all input { width: 13px; height: 13px; accent-color: var(--tz-accent); }
.pbq-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--tz-line);
}
.pbq-actions .btn { flex: 1; min-width: 0; }
.pbq-hint { color: var(--tz-muted); font-size: 10.5px; line-height: 1.4; }
.pbq-current {
  flex: none;
  padding: 7px 10px;
  border-bottom: 1px solid var(--tz-line);
  color: var(--tz-muted);
  font-size: 10.5px;
  line-height: 1.5;
}
.pbq-current b { color: var(--tz-text); font-weight: 600; }
.pbq-current .ok { color: #2f9e6d; }
.pbq-current .bad { color: #c46a2b; }
.pbq-list { flex: 1; min-height: 0; overflow-y: auto; padding: 7px; display: flex; flex-direction: column; gap: 6px; }
.pbq-empty { padding: 24px 10px; text-align: center; color: var(--tz-muted); font-size: 11px; line-height: 1.7; }
.pbq-item {
  border: 1px solid var(--tz-line);
  border-radius: 7px;
  background: var(--tz-surface);
  padding: 7px 8px;
  cursor: pointer;
}
.pbq-item.on { border-color: var(--tz-accent-line); background: var(--tz-accent-soft); }
.pbq-item-top { display: flex; align-items: center; gap: 6px; }
.pbq-item-top .chk { flex: none; }
.pbq-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tz-text); font-size: 11.5px; font-weight: 600; }
.pbq-del { flex: none; width: 22px; height: 22px; border: 0; border-radius: 4px; background: transparent; color: var(--tz-muted); cursor: pointer; }
.pbq-del:hover { color: #d9534f; background: rgba(217, 83, 79, .1); }
.pbq-meta { margin-top: 5px; color: var(--tz-muted); font-size: 10.5px; line-height: 1.5; }
.pbq-meta b { color: var(--tz-text-2); font-weight: 500; }
.pbq-state { display: inline-flex; align-items: center; gap: 3px; }
.pbq-state.on { color: #2f9e6d; }
.pbq-state.off { color: var(--tz-muted); }

/* 计划投注设置弹窗 */
.plan-bet-modal { width: 470px; }
.pb-modal-plan { margin-bottom: 10px; color: var(--tz-muted); font-size: 11.5px; line-height: 1.6; }
.pb-modal-plan b { color: var(--tz-text); font-weight: 600; }
.pb-modal-platforms { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 3px 0 5px; }
.pb-modal-platforms .chk { font-size: 11.5px; }
.pb-modal-platforms .pb-empty { color: var(--tz-muted); font-size: 11px; }
.pb-modal-section { padding: 9px 0 4px; border-top: 1px solid var(--tz-line); }
.pb-modal-label { margin-bottom: 7px; color: var(--tz-text-2); font-size: 11.5px; font-weight: 600; }
.pb-modal-radios { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 9px; font-size: 12px; }
.pb-modal-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 30px; margin: 5px 0; font-size: 11.5px; color: var(--tz-muted); }
.pb-modal-row > label:first-child { flex: 0 0 92px; color: var(--tz-muted); }
.pb-modal-row .input, .pb-modal-row .select { height: 28px; font-size: 11.5px; }
.pb-modal-row .input.mini { width: 84px; text-align: right; }
.pb-modal-row .select { min-width: 150px; }
.pb-modal-unit { color: var(--tz-muted); }
.pb-modal-tip { margin: 6px 0 0; color: var(--tz-muted); font-size: 10.5px; line-height: 1.6; }

@media (max-width: 820px) {
  #page-plan .plan-main-layout { flex-direction: column; overflow-y: auto; }
  #page-plan .plan-main-layout > .plan-work { flex: none; overflow: visible; }
  .plan-bet-queue { flex: none; width: 100%; max-height: none; margin-top: 10px; }
  .pbq-list { max-height: 320px; }
  .plan-bet-modal { width: 100%; }
}

/* 登录门统一：未确认会员前只显示登录页，避免工作台和登录页两层颜色同时出现 */
html.pre-member .member-login { display: flex !important; }
body.member-authed .member-login { display: none !important; }
body:not(.member-authed) .app { visibility: hidden !important; }

/* 混元AI计划2 玩法下拉 */
.manual-parameters .manual-cat select[data-pmcat] { min-width: 108px; }

/* 推荐号码：始终展开、全宽、实色背景 */
#page-plan .formula-numbers {
  flex: 0 0 auto;
  display: block; width: 100%; max-width: none; margin: 0;
  box-sizing: border-box; text-align: left;
  background: var(--tz-surface, #0b111a) !important;
  border-top: 1px solid var(--tz-line);
}
#page-plan .formula-numbers .numbers-summary { justify-content: flex-start; }
#page-plan .formula-numbers .numbers-summary,
#page-plan .formula-numbers .numbers-body { background: var(--tz-surface, #0b111a); }
#page-plan .formula-numbers .numbers-body { display: block !important; width: 100%; box-sizing: border-box; }
#page-plan .formula-numbers .numbers-body textarea { width: 100%; box-sizing: border-box; text-align: left; background: var(--tz-surface-2, #101823); }
#page-plan .plan-native-tag {
  padding: 1px 6px; border: 1px solid var(--tz-accent-line); border-radius: 4px;
  background: var(--tz-accent-soft); color: var(--tz-accent); font-size: 10.5px; line-height: 16px;
}

/* 桌面端：计划页固定满屏高度，内容区内部滚动，方案投注队列拉伸到底部 */
@media (min-width: 821px) {
  #page-plan { overflow: hidden; }
  #page-plan .plan-view { flex: 1 1 auto; min-height: 0; }
  #page-plan .plan-main-layout {
    flex: 1 1 auto; min-height: 0; align-items: stretch; overflow: hidden;
  }
  #page-plan .plan-work { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  #page-plan .plan-bet-queue { align-self: stretch; height: auto; max-height: none; }

  #page-plan .plan-formula,
  #page-plan .plan-manual,
  #page-plan .plan-diamond,
  #page-plan .plan-platinum { flex: 1 1 auto; min-height: 0; }

  #page-plan .plan-formula-layout { flex: 1 1 auto; min-height: 0; }
  #page-plan .plan-detail { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  #page-plan .plan-result-scroll,
  #page-plan .plat-records-scroll,
  #page-plan .manual-records-scroll {
    flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto;
  }

  #page-plan .manual-content { flex: 1 1 auto; min-height: 0; }
  #page-plan .manual-main { flex: 1 1 auto; min-height: 0; }
  #page-plan .plat-main { min-height: 0; }
  #page-plan .plan-diamond-output { flex: 1 1 auto; min-height: 0; }

  .plan-platinum { grid-template-rows: auto minmax(0, 1fr) auto; }
  .plan-platinum > .formula-numbers { grid-column: 1 / -1; grid-row: 3; }
}

/* ============================================================
   会员登录 · AURORA TERMINAL（2026-12 重设计）
   ============================================================ */
.member-login {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vh, 56px) 24px;
  overflow: auto;
  background:
    radial-gradient(1100px 620px at 50% -18%, rgba(46, 230, 176, .13), transparent 62%),
    radial-gradient(820px 560px at 86% 112%, rgba(77, 163, 255, .11), transparent 64%),
    radial-gradient(600px 420px at 8% 88%, rgba(255, 196, 107, .05), transparent 70%),
    #05080d;
}
.member-login::before {
  background-image:
    linear-gradient(to right, rgba(150, 185, 225, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 185, 225, .05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 76% 66% at 50% 46%, #000 22%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 76% 66% at 50% 46%, #000 22%, transparent 82%);
  z-index: 0;
}

.ml-atmos {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.ml-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.ml-halo.h1 {
  width: 520px;
  height: 520px;
  left: -140px;
  top: -180px;
  background: radial-gradient(circle, rgba(46, 230, 176, .34), transparent 68%);
  animation: ml-drift-a 22s ease-in-out infinite alternate;
}
.ml-halo.h2 {
  width: 620px;
  height: 620px;
  right: -200px;
  bottom: -240px;
  background: radial-gradient(circle, rgba(77, 163, 255, .30), transparent 68%);
  animation: ml-drift-b 26s ease-in-out infinite alternate;
}
.ml-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(46, 230, 176, .10);
  pointer-events: none;
}
.ml-orbit.o1 {
  width: 760px;
  height: 760px;
  right: -240px;
  top: 50%;
  margin-top: -380px;
  animation: ml-spin 46s linear infinite;
}
.ml-orbit.o2 {
  width: 1080px;
  height: 1080px;
  right: -380px;
  top: 50%;
  margin-top: -540px;
  border-color: rgba(77, 163, 255, .07);
  animation: ml-spin-rev 68s linear infinite;
}
.ml-orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--tz-accent);
  box-shadow: 0 0 14px 3px rgba(46, 230, 176, .55);
}
.ml-orbit.o2::after {
  background: var(--tz-info);
  box-shadow: 0 0 14px 3px rgba(77, 163, 255, .45);
}
.ml-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(46, 230, 176, .055), transparent);
  animation: ml-scan 11s linear infinite;
}

.ml-stage {
  position: relative;
  z-index: 2;
  width: min(1140px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: clamp(36px, 7vw, 104px);
}

/* 左侧品牌叙事 */
.ml-pitch {
  position: relative;
  min-width: 0;
  padding: 6px 0;
}
.ml-pitch::before {
  content: "TLG";
  position: absolute;
  left: -34px;
  top: -76px;
  font-size: 190px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -6px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(46, 230, 176, .07);
  pointer-events: none;
}
.ml-pitch > * { position: relative; animation: ml-fade-up .62s cubic-bezier(.22, .8, .3, 1) both; }
.ml-pitch > *:nth-child(1) { animation-delay: .04s; }
.ml-pitch > *:nth-child(2) { animation-delay: .10s; }
.ml-pitch > *:nth-child(3) { animation-delay: .17s; }
.ml-pitch > *:nth-child(4) { animation-delay: .24s; }
.ml-pitch > *:nth-child(5) { animation-delay: .31s; }

.ml-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(46, 230, 176, .22);
  border-radius: 999px;
  background: rgba(46, 230, 176, .06);
  color: #7ff0cf;
  font-family: var(--tz-mono);
  font-size: 9.5px;
  letter-spacing: 2.6px;
}
.ml-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tz-accent);
  box-shadow: 0 0 10px 2px rgba(46, 230, 176, .6);
  animation: ml-pulse 2.4s ease-in-out infinite;
}
.ml-title {
  margin: 20px 0 0;
  font-size: clamp(42px, 5.1vw, 66px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  font-weight: 800;
  color: #f4faff;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.ml-title span {
  display: block;
  margin-top: 6px;
  background: linear-gradient(96deg, #2ee6b0 8%, #6ad1ff 58%, #b9e8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .5px;
  font-size: .78em;
}
.ml-lead {
  margin: 22px 0 0;
  max-width: 430px;
  color: #9db2c6;
  font-size: 13.5px;
  line-height: 1.95;
}
.ml-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  max-width: 440px;
  border-top: 1px solid rgba(150, 185, 225, .10);
}
.ml-points li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(150, 185, 225, .10);
}
.ml-points b {
  font-family: var(--tz-mono);
  font-size: 11px;
  font-weight: 500;
  color: #4bd8b0;
  letter-spacing: 1px;
}
.ml-points div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ml-points strong { color: #e6f1fb; font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.ml-points span { color: #7a8da5; font-size: 11.5px; }
.ml-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-family: var(--tz-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #6f849c;
}
.ml-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tz-accent);
  box-shadow: 0 0 0 4px rgba(46, 230, 176, .10), 0 0 12px rgba(46, 230, 176, .65);
}
.ml-status span { color: #8ff2d4; }
.ml-status em { font-style: normal; margin-left: auto; color: #4d6076; }

/* 右侧登录卡 */
.ml-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 32px 30px;
  border: 1px solid rgba(150, 185, 225, .16);
  border-radius: 18px;
  background: linear-gradient(168deg, rgba(19, 28, 40, .93), rgba(7, 12, 19, .97));
  box-shadow:
    0 46px 110px -46px rgba(0, 0, 0, .98),
    0 0 0 1px rgba(255, 255, 255, .025) inset,
    0 0 90px -46px rgba(46, 230, 176, .55);
  backdrop-filter: blur(18px);
  animation: ml-rise .5s cubic-bezier(.22, .8, .3, 1) both;
}
.ml-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 176, .85), rgba(106, 209, 255, .5), transparent);
}
.ml-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -54px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 176, .16), transparent 70%);
  pointer-events: none;
}
.ml-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.ml-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3ff0bc, #0f9c78);
  color: #04120d;
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(46, 230, 176, .4), 0 14px 30px -16px rgba(46, 230, 176, .95);
}
.ml-brand-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ml-brand-txt strong { color: #f4faff; font-size: 15.5px; font-weight: 600; letter-spacing: .6px; }
.ml-brand-txt span {
  color: #5fd9b7;
  font-family: var(--tz-mono);
  font-size: 10px;
  letter-spacing: 2.2px;
}

.ml-field { display: flex; flex-direction: column; gap: 7px; }
.ml-field > span {
  color: #93a8be;
  font-size: 11px;
  letter-spacing: .8px;
}
.ml-field .input {
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(150, 185, 225, .16);
  background: rgba(3, 9, 15, .72);
  color: #eaf3fb;
  font-size: 13.5px;
  letter-spacing: .3px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.ml-field .input::placeholder { color: #7a8fa6; }
.ml-field .input:hover { border-color: rgba(150, 185, 225, .26); }
.ml-field .input:focus {
  border-color: rgba(46, 230, 176, .55);
  background: rgba(46, 230, 176, .05);
  box-shadow: 0 0 0 3px rgba(46, 230, 176, .12), 0 0 26px -12px rgba(46, 230, 176, .7);
  outline: none;
}

.ml-error {
  min-height: 16px;
  margin: -4px 0 0;
  color: #ff5c7a;
  font-size: 11.5px;
  letter-spacing: .2px;
}
.ml-error.pending { color: #8ea3ba; }
.ml-error.on { animation: ml-shake .3s ease; }

.ml-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 46px;
  margin-top: 2px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.ml-submit:focus-visible { outline: 2px solid rgba(46, 230, 176, .65); outline-offset: 2px; }
.ml-submit:disabled { opacity: .72; cursor: progress; transform: none; }

.ml-hint {
  margin: 0;
  text-align: center;
  color: #6b7f96;
  font-size: 11px;
  letter-spacing: .3px;
}

.ml-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 2;
  text-align: center;
  font-family: var(--tz-mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  color: #6b7f96;
}

@keyframes ml-rise {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes ml-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes ml-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(90px, 60px, 0) scale(1.12); }
}
@keyframes ml-drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.06); }
  to { transform: translate3d(-80px, -50px, 0) scale(1); }
}
@keyframes ml-spin { to { transform: rotate(360deg); } }
@keyframes ml-spin-rev { to { transform: rotate(-360deg); } }
@keyframes ml-scan {
  0% { transform: translateY(-10vh); }
  100% { transform: translateY(130vh); }
}
@keyframes ml-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes ml-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (max-width: 980px) {
  .ml-stage { grid-template-columns: 1fr; width: min(420px, 100%); }
  .ml-pitch { display: none; }
  .ml-card { justify-self: center; }
  .ml-foot { display: none; }
  .ml-orbit { display: none; }
}
@media (max-width: 420px) {
  .member-login { padding: 20px 16px; }
  .ml-card { padding: 28px 22px 24px; border-radius: 16px; }
}
@media (max-height: 660px) and (min-width: 981px) {
  .ml-points { margin-top: 18px; }
  .ml-points li { padding: 9px 2px; }
  .ml-status { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-halo, .ml-orbit, .ml-scan, .ml-kicker i,
  .ml-pitch > *, .ml-card { animation: none !important; }
}

/* ============================================================
   会员首页 · 炫酷轮播（2026-12）
   ============================================================ */
.ov-banner { margin-bottom: 16px; border-radius: 16px; }
.ov-banner .ovb-track,
.ovb-track { height: 238px; min-height: 238px; }

.ovb-slide.builtin {
  align-items: stretch;
  background: #06090e;
  overflow: hidden;
}
.ovb-slide.builtin::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(150, 185, 225, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 185, 225, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, #000 20%, transparent 80%);
}
.ovb-slide.builtin::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 220px at 88% 20%, rgba(255, 255, 255, .10), transparent 70%);
}
.theme-aurora {
  background:
    radial-gradient(720px 300px at 78% 12%, rgba(46, 230, 176, .22), transparent 62%),
    radial-gradient(560px 280px at 10% 100%, rgba(77, 163, 255, .18), transparent 64%),
    linear-gradient(120deg, #061019, #08131d 46%, #050a10);
}
.theme-ice {
  background:
    radial-gradient(760px 320px at 82% 8%, rgba(77, 163, 255, .26), transparent 62%),
    radial-gradient(520px 260px at 12% 96%, rgba(46, 230, 176, .12), transparent 66%),
    linear-gradient(120deg, #050b14, #071426 50%, #050a12);
}
.theme-amber {
  background:
    radial-gradient(720px 320px at 80% 10%, rgba(255, 180, 77, .20), transparent 62%),
    radial-gradient(540px 260px at 10% 96%, rgba(46, 230, 176, .16), transparent 66%),
    linear-gradient(120deg, #0a0c10, #141109 48%, #07090d);
}

.ovb-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 30px 38px;
  max-width: 640px;
  min-width: 0;
}
.ovb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  height: 24px;
  padding: 0 11px;
  border: 1px solid rgba(46, 230, 176, .28);
  border-radius: 999px;
  background: rgba(46, 230, 176, .07);
  color: #7ff0cf;
  font-family: var(--tz-mono);
  font-size: 9.5px;
  letter-spacing: 2.4px;
}
.ovb-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tz-accent);
  box-shadow: 0 0 10px 2px rgba(46, 230, 176, .6);
}
.ovb-hero h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.8px;
  color: #f4faff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.ovb-hero p {
  margin: 0;
  max-width: 460px;
  color: #a8bdd2;
  font-size: 12.5px;
  line-height: 1.85;
}
.ovb-actions { margin-top: 2px; }
.ovb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(46, 230, 176, .55);
  border-radius: 9px;
  background: linear-gradient(135deg, #2ee6b0, #12b78c);
  color: #04150f;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .6px;
  cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(46, 230, 176, .9);
  transition: transform .16s ease, box-shadow .16s ease;
}
.ovb-cta:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -16px rgba(46, 230, 176, 1); }
.ovb-cta:focus-visible { outline: 2px solid rgba(46, 230, 176, .7); outline-offset: 2px; }
.ovb-cta i { font-style: normal; transition: transform .16s ease; }
.ovb-cta:hover i { transform: translateX(3px); }
.ovb-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.ovb-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(150, 185, 225, .14);
  border-radius: 999px;
  background: rgba(5, 10, 16, .45);
  color: #93a8be;
  font-size: 10px;
}
.ovb-chips b { color: #5fe3bf; font-family: var(--tz-mono); font-size: 10.5px; font-weight: 500; }

.ovb-orbit {
  position: absolute;
  z-index: 1;
  right: -70px;
  top: 50%;
  width: 320px;
  height: 320px;
  margin-top: -160px;
  border: 1px solid rgba(46, 230, 176, .16);
  border-radius: 50%;
  box-shadow: inset 0 0 60px -30px rgba(46, 230, 176, .4);
  pointer-events: none;
  animation: ovb-spin 30s linear infinite;
}
.ovb-orbit::before {
  content: "";
  position: absolute;
  inset: 34px;
  border: 1px dashed rgba(77, 163, 255, .14);
  border-radius: 50%;
}
.ovb-orbit::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--tz-accent);
  box-shadow: 0 0 14px 3px rgba(46, 230, 176, .7);
}
.ovb-mark {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: -26px;
  font-size: 150px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -6px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(46, 230, 176, .08);
  pointer-events: none;
}
.ovb-slide.on .ovb-hero > * { animation: ovb-rise .55s cubic-bezier(.22, .8, .3, 1) both; }
.ovb-slide.on .ovb-hero > *:nth-child(1) { animation-delay: .02s; }
.ovb-slide.on .ovb-hero > *:nth-child(2) { animation-delay: .08s; }
.ovb-slide.on .ovb-hero > *:nth-child(3) { animation-delay: .14s; }
.ovb-slide.on .ovb-hero > *:nth-child(4) { animation-delay: .20s; }
.ovb-slide.on .ovb-hero > *:nth-child(5) { animation-delay: .26s; }
.ovb-dots { bottom: 12px; }
.ovb-dots button { background: rgba(255, 255, 255, .35); }
.ovb-dots button.on {
  background: linear-gradient(90deg, #2ee6b0, #6ad1ff);
  box-shadow: 0 0 10px rgba(46, 230, 176, .6);
}

@keyframes ovb-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes ovb-spin { to { transform: rotate(360deg); } }

@media (max-width: 820px), (pointer: coarse) and (max-width: 1024px) {
  .ov-banner .ovb-track,
  .ovb-track { height: 178px; min-height: 178px; }
  .ovb-hero { padding: 18px 20px; gap: 6px; max-width: 82%; }
  .ovb-hero h2 { font-size: 22px; letter-spacing: -.3px; }
  .ovb-hero p { font-size: 11px; line-height: 1.6; max-width: 100%; }
  .ovb-chips { display: none; }
  .ovb-orbit { display: none; }
  .ovb-mark { right: 10px; bottom: -16px; font-size: 96px; }
  .ovb-cta { height: 32px; padding: 0 14px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ovb-orbit, .ovb-slide.on .ovb-hero > * { animation: none !important; }
}
