/* ===== 智赋-AI · 智慧赋能交易 · 移动端交易研判终端 ===== */
:root {
  --bg: #0B0E13;
  --bg-soft: #0F131A;
  --surface: #151A23;
  --surface-2: #1B2130;
  --line: #232A38;
  --line-soft: #1A202B;
  --text: #E9EDF5;
  --text-2: #8B95A7;
  --text-3: #5B6478;
  --up: #F5485F;
  --down: #14C08C;
  --brand: #E8B84B;
  --brand-2: #F5D98A;
  --ai: #7C6BFF;
  --ai-2: #A28BFF;
  --radius: 18px;
  --radius-sm: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: #06080B;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body { display: flex; justify-content: center; }

#app {
  width: 100%; max-width: 460px; min-height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- 头部 ---------- */
.statusbar { height: 0; }
.app-header {
  position: sticky; top: 0; z-index: 40;
  height: 54px; padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(11,14,19,.86);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.app-header .grow { flex: 1; min-width: 0; }
.h-title { font-size: 17px; font-weight: 650; letter-spacing: .2px; }
.h-sub { font-size: 11px; color: var(--text-3); margin-top: -2px; letter-spacing: .3px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--text-2);
  cursor: pointer; transition: .18s;
}
.icon-btn:active { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }

.live-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.live-dot i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--down);
  box-shadow: 0 0 0 0 rgba(20,192,140,.6); animation: pulse 2.4s infinite;
}
.live-dot.off i { background: #B4543A; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20,192,140,.55); }
  70% { box-shadow: 0 0 0 7px rgba(20,192,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,192,140,0); }
}

/* ---------- 视图 ---------- */
.view { flex: 1; overflow-y: auto; padding: 4px 0 calc(86px + var(--safe-b)); }
.view::-webkit-scrollbar { display: none; }
.pad { padding: 0 16px; }
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 8px; font-size: 12px; color: var(--text-3);
  letter-spacing: .6px; font-weight: 600;
}
.section-title .link { color: var(--brand); font-weight: 500; letter-spacing: 0; }

/* ---------- 分组 chips ---------- */
.chips { display: flex; gap: 8px; padding: 12px 16px 6px; overflow-x: auto; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
.chip {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: .16s; white-space: nowrap;
}
.chip:active { transform: scale(.96); }
.chip.active {
  background: linear-gradient(180deg, rgba(232,184,75,.16), rgba(232,184,75,.08));
  border-color: rgba(232,184,75,.45); color: var(--brand-2);
}
.chip.sm { padding: 4px 11px; font-size: 11.5px; }
.chip.ai.active {
  background: linear-gradient(180deg, rgba(124,107,255,.2), rgba(124,107,255,.08));
  border-color: rgba(124,107,255,.5); color: #C4B8FF;
}

/* ---------- 行情列表 ---------- */
.quote-list { padding: 4px 10px; }
.quote-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 8px; border-radius: 14px; cursor: pointer;
  transition: background .16s;
}
.quote-row:active { background: var(--surface); }
.q-icon {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: -.3px;
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--line);
}
.q-icon.metal { background: linear-gradient(150deg, rgba(232,184,75,.22), rgba(232,184,75,.06)); color: var(--brand); border-color: rgba(232,184,75,.28); }
.q-icon.crypto { background: linear-gradient(150deg, rgba(124,107,255,.2), rgba(124,107,255,.05)); color: #B0A2FF; border-color: rgba(124,107,255,.25); }
.q-icon.forex { background: linear-gradient(150deg, rgba(63,191,192,.18), rgba(63,191,192,.05)); color: #3FBFC0; border-color: rgba(63,191,192,.24); }
.q-icon.index { background: linear-gradient(150deg, rgba(90,170,255,.18), rgba(90,170,255,.05)); color: #6FB1FF; border-color: rgba(90,170,255,.24); }
.q-icon.oil { background: linear-gradient(150deg, rgba(120,90,45,.3), rgba(120,90,45,.08)); color: #D9A05B; border-color: rgba(217,160,91,.26); }
.q-icon.gas { background: linear-gradient(150deg, rgba(46,160,120,.2), rgba(46,160,120,.05)); color: #57C79E; border-color: rgba(87,199,158,.24); }
.q-name { flex: 1; min-width: 0; }
.q-name b { display: block; font-size: 14px; font-weight: 600; letter-spacing: .2px; }
.q-name span { font-size: 11px; color: var(--text-3); }
.q-spark { width: 54px; height: 26px; flex: 0 0 54px; opacity: .9; }
.q-price { text-align: right; min-width: 88px; }
.q-price b { display: block; font-size: 14.5px; font-weight: 620; }
.q-chg {
  display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 6px;
  font-size: 11px; font-weight: 600; min-width: 58px; text-align: center;
}
.up { color: var(--up); }
.down { color: var(--down); }
.q-chg.up { background: rgba(245,72,95,.12); }
.q-chg.down { background: rgba(20,192,140,.12); }

/* ---------- 详情 ---------- */
.detail-head { padding: 14px 16px 4px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; }
.detail-price b { font-size: 32px; font-weight: 680; letter-spacing: -.5px; }
.detail-price .chg { font-size: 13px; font-weight: 600; }
.detail-meta { display: flex; gap: 14px; margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
.chart-wrap { margin: 10px 0 0; position: relative; }
#chart { width: 100%; height: clamp(320px, 46vh, 470px); display: block; touch-action: pan-y; }
.chart-legend {
  display: flex; gap: 12px; padding: 2px 16px 6px; font-size: 11px; color: var(--text-3);
}
.chart-legend i { display: inline-block; width: 10px; height: 2px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
/* 虚线图例：支撑绿 / 阻力红，跟画布上的虚线一个样子 */
.chart-legend i.cl-dash {
  width: 12px; height: 0; border-radius: 0; border-top: 1.5px dashed currentColor;
  vertical-align: 2px;
}
.chart-legend i.cl-dash.sup { color: #12C48B; }
.chart-legend i.cl-dash.res { color: #FF5064; }

/* ---------- 图表叠加图层开关（支撑 / 阻力 / 趋势线） ---------- */
.chart-lines {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px 0;
  overflow-x: auto; scrollbar-width: none;
}
.chart-lines::-webkit-scrollbar { display: none; }
.chart-lines .cl-k { font-size: 10px; color: var(--text-3); letter-spacing: .4px; flex: 0 0 auto; }
.cl-chip {
  flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; cursor: pointer;
  font-size: 10.5px; line-height: 1.2; color: var(--text-3);
  background: transparent; border: 1px solid var(--line-soft);
  transition: color .15s, border-color .15s, background .15s;
}
.cl-chip.on { color: var(--text); background: rgba(var(--ink), .06); border-color: rgba(var(--ink), .18); }
.cl-chip.cl-sup.on, .cl-chip.cl-supTrend.on { color: #12C48B; border-color: rgba(18,196,139,.45); background: rgba(18,196,139,.1); }
.cl-chip.cl-res.on, .cl-chip.cl-resTrend.on { color: #FF5064; border-color: rgba(255,80,100,.45); background: rgba(255,80,100,.1); }
.cl-chip.cl-ma.on { color: #E8B84B; border-color: rgba(232,184,75,.45); background: rgba(232,184,75,.1); }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 16px; }
.metric {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 13px; padding: 10px 11px;
}
.metric label { display: block; font-size: 10.5px; color: var(--text-3); letter-spacing: .3px; }
.metric b { display: block; font-size: 15px; font-weight: 620; margin-top: 2px; }
.metric small { font-size: 10px; color: var(--text-3); }

.levels-box { padding: 4px 16px 10px; }
.level-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; background: var(--surface); border-radius: 10px; margin-bottom: 6px;
  font-size: 12.5px;
}
.level-row span { color: var(--text-3); }

/* ---------- 底部主按钮 ---------- */
.bottom-cta {
  position: fixed; bottom: calc(62px + var(--safe-b)); left: 0; right: 0; z-index: 45;
  max-width: 460px; margin: 0 auto;
  padding: 14px 16px 10px;
  background: linear-gradient(180deg, rgba(11,14,19,0) 0%, rgba(11,14,19,.94) 26%, #0B0E13 52%);
  backdrop-filter: blur(8px);
  display: flex; gap: 10px;
}
#app.has-cta .view { padding-bottom: calc(158px + var(--safe-b)); }
.btn {
  border: none; cursor: pointer; font-family: inherit; font-size: 14px;
  border-radius: 14px; padding: 13px 18px; font-weight: 600;
  transition: transform .12s, filter .18s; display: inline-flex;
  align-items: center; justify-content: center; gap: 7px;
}
.btn:active { transform: scale(.978); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #23180A; flex: 1; box-shadow: 0 6px 22px rgba(232,184,75,.24);
}
.btn-ai {
  background: linear-gradient(135deg, var(--ai-2), var(--ai));
  color: #fff; flex: 1; box-shadow: 0 6px 24px rgba(124,107,255,.3);
}
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; filter: grayscale(.3); }
.btn .cost { font-size: 11px; background: rgba(0,0,0,.18); padding: 2px 8px; border-radius: 999px; font-weight: 600; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 14px; margin: 10px 16px;
}
.card.flat { background: var(--surface); }
.card-title { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.card-title .muted { font-size: 11px; color: var(--text-3); font-weight: 400; }

/* ---------- 研判结果 ---------- */
.verdict {
  margin: 10px 16px; border-radius: 22px; padding: 18px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(124,107,255,.22), transparent 60%),
    radial-gradient(100% 90% at 0% 100%, rgba(232,184,75,.14), transparent 60%),
    var(--surface);
  border: 1px solid rgba(124,107,255,.26);
}
.verdict.long { border-color: rgba(245,72,95,.3); background: radial-gradient(120% 100% at 100% 0%, rgba(245,72,95,.22), transparent 62%), var(--surface); }
.verdict.short { border-color: rgba(20,192,140,.3); background: radial-gradient(120% 100% at 100% 0%, rgba(20,192,140,.2), transparent 62%), var(--surface); }
.verdict-top { display: flex; align-items: center; gap: 14px; }
.verdict-dir { font-size: 26px; font-weight: 750; letter-spacing: .5px; }
.verdict-dir small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 1px; margin-top: 1px; }
.ring {
  width: 66px; height: 66px; border-radius: 50%; margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex: 0 0 66px;
}
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--ring-c, var(--brand)) calc(var(--p, 0) * 1%), rgba(var(--ink),.07) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}
.ring div { text-align: center; }
.ring b { font-size: 17px; font-weight: 700; display: block; line-height: 1.1; }
.ring span { font-size: 9px; color: var(--text-3); }
.verdict-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-size: 11px; padding: 3px 9px; border-radius: 7px;
  background: rgba(var(--ink),.05); color: var(--text-2); border: 1px solid var(--line);
}
.tag.good { color: #F5C86B; border-color: rgba(232,184,75,.3); background: rgba(232,184,75,.08); }
.tag.ai { color: #B6A9FF; border-color: rgba(124,107,255,.3); background: rgba(124,107,255,.1); }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.pcell { background: rgba(var(--ink),.035); border-radius: 13px; padding: 10px 12px; border: 1px solid rgba(var(--ink),.05); }
.pcell label { font-size: 10.5px; color: var(--text-3); letter-spacing: .3px; display: block; }
.pcell b { font-size: 16px; font-weight: 640; display: block; margin-top: 2px; }
.pcell small { font-size: 10px; color: var(--text-3); }
.pcell.wide { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; }

.vote-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 15px; padding: 12px 13px; margin-bottom: 9px;
}
.vote-head { display: flex; align-items: center; gap: 9px; }
.vote-avatar {
  width: 28px; height: 28px; border-radius: 9px; flex: 0 0 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.vote-name { font-size: 13px; font-weight: 600; flex: 1; }
.vote-name small { display: block; font-size: 10px; color: var(--text-3); font-weight: 400; }
.vote-dir { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 7px; }
.vote-dir.long { color: var(--up); background: rgba(245,72,95,.12); }
.vote-dir.short { color: var(--down); background: rgba(20,192,140,.12); }
.vote-dir.neutral { color: var(--text-2); background: rgba(var(--ink),.06); }
.vote-body { margin-top: 9px; font-size: 12px; color: var(--text-2); line-height: 1.6; }
.vote-body ul { margin: 6px 0 0; padding-left: 16px; }
.vote-body li { margin-bottom: 2px; }
.conf-bar { height: 4px; border-radius: 3px; background: rgba(var(--ink),.07); margin-top: 9px; overflow: hidden; }
.conf-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------- 信号 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 12px 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 11px 12px; text-align: center;
}
.stat b { display: block; font-size: 19px; font-weight: 700; }
.stat span { font-size: 10.5px; color: var(--text-3); }
.sig-row { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.sig-top { display: flex; align-items: center; gap: 8px; }
.sig-top b { font-size: 14px; font-weight: 620; }
.sig-top .muted { font-size: 11px; color: var(--text-3); margin-left: auto; }
.sig-mid { display: flex; flex-wrap: wrap; row-gap: 4px; gap: 12px; margin-top: 7px; font-size: 11.5px; color: var(--text-2); }
.sig-mid u { text-decoration: none; color: var(--text-3); }
.sig-pnl { font-size: 13px; font-weight: 700; margin-left: auto; }
/* 这笔信号在模拟账户里的盈亏：单独占一行，避免把「入场/止损/目标」挤成一团 */
.sig-paper { flex: 1 1 100%; font-size: 10px; color: var(--text-3); letter-spacing: .1px; }
.sig-paper.up { color: var(--up); }
.sig-paper.down { color: var(--down); }
.sig-paper i { font-style: normal; margin-left: 4px; opacity: .7; }
.badge-st {
  font-size: 10px; padding: 2px 8px; border-radius: 6px; font-weight: 600;
  background: rgba(var(--ink),.06); color: var(--text-2);
}
.badge-st.tp { background: rgba(245,72,95,.14); color: var(--up); }
.badge-st.sl { background: rgba(20,192,140,.14); color: var(--down); }
.badge-st.run { background: rgba(124,107,255,.16); color: #B6A9FF; }

/* ---------- 我的 ---------- */
.wallet {
  margin: 12px 16px; border-radius: 22px; padding: 18px;
  background:
    radial-gradient(120% 120% at 85% -10%, rgba(232,184,75,.35), transparent 55%),
    linear-gradient(160deg, #23262F, #14171E 70%);
  border: 1px solid rgba(232,184,75,.22);
  position: relative; overflow: hidden;
}
.wallet::after {
  content: ""; position: absolute; right: -30px; bottom: -50px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,184,75,.18), transparent 70%);
}
.wallet label { font-size: 11px; color: rgba(var(--ink),.5); letter-spacing: 1px; }
.wallet .bal { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.wallet .bal b { font-size: 36px; font-weight: 720; letter-spacing: -1px; }
.wallet .bal span { font-size: 12px; color: rgba(var(--ink),.55); }
.wallet .acts { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.wallet .acts .btn { padding: 9px 16px; font-size: 12.5px; border-radius: 11px; }
.invite {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 11.5px; color: rgba(var(--ink),.55); position: relative; z-index: 1;
}
.invite code { background: rgba(0,0,0,.3); padding: 3px 8px; border-radius: 7px; letter-spacing: 1.5px; color: var(--brand-2); font-size: 11px; }

.menu-list { margin: 6px 16px; background: var(--surface); border-radius: 16px; border: 1px solid var(--line-soft); overflow: hidden; }
.menu-item {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 13.5px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--surface-2); }
.menu-item .mi { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); }
.menu-item .mi svg { width: 15px; height: 15px; }
.menu-item .val { margin-left: auto; font-size: 11.5px; color: var(--text-3); }
.menu-item .arrow { color: var(--text-3); font-size: 15px; }

/* ---------- 套餐 ---------- */
.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 6px 16px; }
.pkg {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 13px; position: relative; cursor: pointer; transition: .18s;
}
.pkg.hot { border-color: rgba(232,184,75,.45); background: linear-gradient(180deg, rgba(232,184,75,.1), transparent 60%), var(--surface); }
.pkg:active { transform: scale(.98); }
.pkg .pk-tag {
  position: absolute; top: -1px; right: -1px; font-size: 9px; padding: 3px 8px;
  border-radius: 0 16px 0 10px; background: var(--brand); color: #23180A; font-weight: 700;
}
.pkg b { font-size: 13px; font-weight: 600; display: block; }
.pkg .tk { font-size: 22px; font-weight: 720; margin-top: 5px; letter-spacing: -.5px; }
.pkg .tk span { font-size: 11px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.pkg .bn { font-size: 10.5px; color: var(--brand); margin-top: 1px; min-height: 15px; }
.pkg .pr { margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--brand-2); }
.pkg .pr span { font-size: 11px; color: var(--text-3); font-weight: 400; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  max-width: 460px; margin: 0 auto;
  height: calc(62px + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; align-items: center;
  background: rgba(12,15,21,.92);
  backdrop-filter: blur(20px) saturate(150%);
  border-top: 1px solid var(--line-soft);
}
.tab {
  flex: 1; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); font-size: 10px; cursor: pointer; transition: .16s;
}
.tab svg { width: 21px; height: 21px; stroke-width: 1.9; }
.tab.active { color: var(--brand); }
.tab.active svg { stroke: var(--brand); }

/* ---------- 弹层 ---------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.62);
  backdrop-filter: blur(3px); z-index: 100; opacity: 0;
  transition: opacity .22s; display: flex; align-items: flex-end; justify-content: center;
}
.sheet-mask.show { opacity: 1; }
.sheet {
  width: 100%; max-width: 460px; background: var(--bg-soft);
  border-radius: 24px 24px 0 0; padding: 8px 0 calc(16px + var(--safe-b));
  border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform .28s cubic-bezier(.22,1,.36,1);
  max-height: 88vh; overflow-y: auto;
}
.sheet-mask.show .sheet { transform: translateY(0); }
.sheet-grab { width: 36px; height: 4px; border-radius: 3px; background: var(--line); margin: 6px auto 12px; }
.sheet h3 { margin: 0 18px 4px; font-size: 16px; font-weight: 650; }
.sheet .sub { margin: 0 18px 14px; font-size: 11.5px; color: var(--text-3); }

.input {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; color: var(--text);
  font-family: inherit; font-size: 13px; outline: none; transition: .16s;
}
.input:focus { border-color: rgba(232,184,75,.5); }
.input::placeholder { color: var(--text-3); }

/* toast */
.toast {
  position: fixed; left: 50%; top: 76px; transform: translate(-50%, -14px);
  background: rgba(30,36,48,.96); color: var(--text); padding: 10px 18px;
  border-radius: 13px; font-size: 12.5px; z-index: 300; opacity: 0;
  pointer-events: none; transition: .26s; border: 1px solid var(--line);
  backdrop-filter: blur(10px); max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* loading */
.spin {
  width: 14px; height: 14px; border: 2px solid rgba(var(--ink),.25);
  border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 8px;
}
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.engine-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); }
.engine-row .st { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; }
.st.on { background: rgba(20,192,140,.14); color: var(--down); }
.st.off { background: rgba(var(--ink),.05); color: var(--text-3); }

.empty { text-align: center; padding: 60px 30px; color: var(--text-3); font-size: 12.5px; line-height: 1.9; }
.empty .em { font-size: 26px; margin-bottom: 8px; opacity: .5; }

.note { font-size: 10.5px; color: var(--text-3); line-height: 1.7; padding: 4px 18px 10px; }
.warn-bar {
  margin: 10px 16px; padding: 11px 13px; border-radius: 12px; font-size: 10.5px;
  line-height: 1.7; color: #C9A96A; background: rgba(232,184,75,.06);
  border: 1px solid rgba(232,184,75,.16);
}

/* ===== 回测报告 ===== */
.bt-pick {
  display: flex; align-items: center; gap: 11px;
  margin: 12px 16px 0; padding: 12px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px;
}
.bt-pick:active { background: var(--surface-2); }
.bt-sym-name { font-size: 14px; font-weight: 620; }
.bt-sym-name .mono { font-size: 10.5px; color: var(--text-3); font-weight: 500; letter-spacing: .4px; margin-left: 4px; }
.bt-sym-sub { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.bt-pick-cta { display: flex; align-items: center; gap: 1px; font-size: 11px; color: var(--brand); white-space: nowrap; }
.bt-pick-cta svg { width: 13px; height: 13px; }

.bt-profiles { display: flex; gap: 8px; padding: 6px 16px 4px; }
.bt-prof {
  flex: 1; padding: 9px 11px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: .18s;
}
.bt-prof b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.bt-prof span { font-size: 9.5px; color: var(--text-3); letter-spacing: .1px; }
.bt-prof.active { border-color: rgba(232,184,75,.42); background: rgba(232,184,75,.09); }
.bt-prof.active b { color: var(--brand); }

.bt-loading { padding: 64px 20px; text-align: center; color: var(--text-2); font-size: 12.5px; }
.bt-loading .spin { margin: 0 auto 12px; width: 22px; height: 22px; }
.bt-loading small { display: block; margin-top: 6px; color: var(--text-3); font-size: 10.5px; }

.bt-hero { margin: 10px 16px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bt-hero-label { font-size: 10.5px; color: var(--text-3); letter-spacing: .3px; }
.bt-hero-r { font-size: 34px; font-weight: 680; letter-spacing: -1.2px; line-height: 1.15; margin-top: 2px; }
.bt-hero-r span { font-size: 14px; font-weight: 600; margin-left: 2px; opacity: .55; letter-spacing: 0; }
.bt-hero-sub { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.bt-hero-side { text-align: right; flex: 0 0 auto; }
.bt-verdict {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 600; white-space: nowrap; margin-bottom: 4px;
}
.bt-verdict.good { color: var(--brand); background: rgba(232,184,75,.12); border: 1px solid rgba(232,184,75,.3); }
.bt-verdict.ok { color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); }
.bt-verdict.bad { color: #E8944B; background: rgba(232,148,75,.1); border: 1px solid rgba(232,148,75,.28); }

.bt-canvas { width: 100%; display: block; }
.bt-chart-note { font-size: 9.5px; color: var(--text-3); margin-top: 7px; line-height: 1.6; }

.bt-table { font-size: 11.5px; }
.bt-tr {
  display: grid; grid-template-columns: 1.5fr .7fr .8fr .9fr;
  align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-soft);
}
.bt-tr:last-child { border-bottom: none; }
.bt-tr > span:nth-child(n+2) { text-align: right; }
.bt-th { color: var(--text-3); font-size: 10px; padding-bottom: 6px; }

.bt-dirs { display: flex; gap: 9px; }
.bt-dir { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 9px 11px; }
.bt-dir-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.bt-dir-top span { font-size: 10.5px; color: var(--text-3); }
.bt-dir-bar { height: 4px; border-radius: 2px; background: rgba(var(--ink),.07); overflow: hidden; margin: 7px 0 5px; }
.bt-dir-bar i { display: block; height: 100%; border-radius: 2px; }
.bt-dir-foot { font-size: 10px; color: var(--text-3); }

.bt-trades { margin: 6px 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.bt-trade {
  display: grid; grid-template-columns: 24px 1fr auto auto;
  align-items: center; gap: 9px; padding: 8px 13px;
  border-bottom: 1px solid var(--line-soft);
}
.bt-trade:last-child { border-bottom: none; }
.bt-dir-badge {
  width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700;
}
.bt-dir-badge.up { background: rgba(245,72,95,.13); }
.bt-dir-badge.down { background: rgba(20,192,140,.13); }
.bt-trade-time { font-size: 11px; color: var(--text-2); }
.bt-trade-px { font-size: 11px; color: var(--text-3); }
.bt-trade-r { font-size: 12px; font-weight: 600; min-width: 52px; text-align: right; }

.bt-method ul { margin: 0; padding-left: 15px; }
.bt-method li { font-size: 10.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 3px; }
.bt-src { font-size: 9.5px; color: var(--text-3); line-height: 1.65; margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line); }

.bt-diagnose .dg-row { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 11.5px; line-height: 1.65; color: var(--text-2); }
.bt-diagnose .dg-row i { width: 5px; height: 5px; border-radius: 50%; margin-top: 7px; flex: 0 0 5px; background: var(--text-3); }
.bt-diagnose .dg-row.good i { background: var(--brand); }
.bt-diagnose .dg-row.bad i { background: #E8944B; }
.bt-diagnose .dg-row.warn i { background: #C9A227; }

.bt-entry {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 16px 4px; padding: 11px 13px;
  background: linear-gradient(120deg, rgba(232,184,75,.1), rgba(232,184,75,.03));
  border: 1px solid rgba(232,184,75,.22); border-radius: 14px;
}
.bt-entry:active { transform: scale(.99); }
.bt-entry b { display: block; font-size: 12.5px; font-weight: 600; }
.bt-entry small { font-size: 10px; color: var(--text-3); }
.bt-entry-ic { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(232,184,75,.14); color: var(--brand); flex: 0 0 28px; }
.bt-entry-ic svg { width: 15px; height: 15px; }
.bt-entry > svg { width: 14px; height: 14px; color: var(--text-3); }

/* ===== 支付 ===== */
.sec-label { font-size: 10.5px; color: var(--text-3); letter-spacing: .4px; margin: 2px 0 8px; }
.pay-line { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 3px 0; }
.pay-line span { color: var(--text-3); }
.pay-ch {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  transition: .16s;
}
.pay-ch:active { background: var(--surface-2); transform: scale(.99); }
.pay-ch > svg { width: 14px; height: 14px; color: var(--text-3); }
.pay-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: 0 0 32px; }
.pay-name { font-size: 13.5px; font-weight: 600; }
.pay-note { font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-rec { font-size: 9.5px; color: var(--brand); border: 1px solid rgba(232,184,75,.3); background: rgba(232,184,75,.08); padding: 1px 6px; border-radius: 999px; }

.qr-wrap { display: flex; justify-content: center; padding: 8px 0 10px; }
.qr-box { background: #fff; border-radius: 14px; padding: 10px; line-height: 0; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.qr-box svg { width: 196px; height: 196px; display: block; }
.qr-tip { text-align: center; font-size: 11px; color: var(--text-3); line-height: 1.6; }
.qr-amount { text-align: center; font-size: 20px; font-weight: 680; color: var(--brand-2); margin-top: 6px; }
.qr-amount span { font-size: 11px; color: var(--text-3); font-weight: 400; }

/* USDT 转账：金额大字 + 可复制地址 + 金额警告 */
.pay-amt { text-align: center; padding: 2px 0 2px; }
.pay-amt b { font-size: 30px; font-weight: 720; color: var(--brand-2); letter-spacing: -.5px; }
.pay-amt span { font-size: 13px; font-weight: 600; color: var(--text-2); margin-left: 6px; }
.pay-amt small { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
/* 汇率来源单独一行、再淡一档：金额是主角，牌价与更新时间是佐证 */
.pay-amt small.pay-fx { font-size: 9.5px; opacity: .75; margin-top: 1px; }
.pay-addr { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-top: 2px; }
.pa-k { font-size: 10px; color: var(--text-3); letter-spacing: .3px; }
.pa-v {
  font-size: 11.5px; line-height: 1.55; margin: 3px 0 7px; color: var(--text-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all; user-select: all;
}
.pay-addr .mini-btn { width: 100%; justify-content: center; }
.pay-warn {
  margin-top: 9px; padding: 9px 11px; border-radius: 11px;
  font-size: 11px; line-height: 1.6; color: #E8B84B;
  background: rgba(232,184,75,.09); border: 1px solid rgba(232,184,75,.22);
}
.pay-warn b { color: #F2C964; }
.pay-proof { margin-top: 10px; }
.pay-proof .fld { margin-bottom: 8px; }
.pay-qr-img img { width: 196px; height: 196px; object-fit: contain; display: block; border-radius: 6px; }

.pay-jump { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface-2); border-radius: 12px; font-size: 12px; color: var(--text-2); margin-bottom: 12px; }
.pay-jump-ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(59,130,246,.15); color: #6BA4FF; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.usdt-box { background: var(--surface-2); border-radius: 14px; padding: 12px; }
.usdt-row { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; }
.usdt-row span { color: var(--text-3); }
.usdt-addr {
  margin: 9px 0; padding: 10px; border-radius: 10px;
  background: var(--bg); border: 1px dashed var(--line);
  font-size: 11px; word-break: break-all; line-height: 1.6; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.sandbox-box { background: rgba(232,184,75,.07); border: 1px solid rgba(232,184,75,.22); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.sb-badge { display: inline-block; font-size: 9.5px; color: var(--brand); border: 1px solid rgba(232,184,75,.35); border-radius: 999px; padding: 1px 7px; margin-bottom: 6px; }
.sb-text { font-size: 11px; color: var(--text-2); line-height: 1.65; }

/* ================= v0.3 · 实时 / 风格 / 会员 ================= */

/* ---------- 会员 pill ---------- */
.plan-pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 9px 0 5px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; transition: .18s;
}
.plan-pill:active { background: var(--surface-2); }
.pp-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .3px;
  padding: 2px 6px; border-radius: 999px;
  background: rgba(139,149,167,.16); color: var(--text-2);
}
.pp-tag.pro { background: rgba(232,184,75,.16); color: var(--brand); }
.pp-tag.elite { background: rgba(77,107,254,.2); color: #8FA6FF; }
.pp-num { font-size: 12.5px; font-weight: 650; color: var(--text); }
.pp-unit { font-size: 9.5px; color: var(--text-3); }

/* ---------- 实时状态条 ---------- */
.rt-bar {
  display: flex; align-items: center; gap: 12px;
  margin: 2px 16px 8px; padding: 6px 11px; min-height: 30px;
  background: rgba(20,192,140,.05);
  border: 1px solid rgba(20,192,140,.14);
  border-radius: 11px;
}
.rt-item { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--text-2); }
.rt-dot {
  display: block; flex: 0 0 5px; width: 5px; height: 5px; min-width: 5px;
  border-radius: 50%; background: var(--text-3);
}
.rt-dot.on { background: var(--down); box-shadow: 0 0 0 3px rgba(20,192,140,.12); animation: rtPulse 2s infinite; }
.rt-dot.mid { background: #E8944B; }
.rt-ts { margin-left: auto; font-size: 10px; color: var(--text-3); }
@keyframes rtPulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

.live-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.live-dot i { width: 5px; height: 5px; border-radius: 50%; background: var(--down); animation: rtPulse 2s infinite; }
.live-dot.off i { background: #E8944B; animation: none; }
.live-dot.off { color: #E8944B; }

.live-mini {
  display: inline-block; margin-left: 5px; padding: 0 5px;
  font-size: 9px; border-radius: 4px; vertical-align: 1px;
  color: var(--text-3); border: 1px solid var(--line);
}
.live-mini.on { color: var(--down); border-color: rgba(20,192,140,.3); background: rgba(20,192,140,.08); }

/* 价格跳动 */
@keyframes bumpUp { 0% { background: rgba(245,72,95,.28) } 100% { background: transparent } }
@keyframes bumpDown { 0% { background: rgba(20,192,140,.24) } 100% { background: transparent } }
.bump-up { animation: bumpUp .7s ease-out; border-radius: 4px; }
.bump-down { animation: bumpDown .7s ease-out; border-radius: 4px; }

/* ---------- 交易风格卡 ---------- */
.style-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 2px 16px 0; }
.style-card {
  padding: 10px 9px 9px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: .18s; cursor: pointer; position: relative; overflow: hidden;
}
.style-card:active { transform: scale(.98); }
.style-card.active {
  border-color: var(--tint);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 14%, transparent), transparent 72%), var(--surface);
}
.sc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.sc-top b { font-size: 14px; font-weight: 650; }
.sc-risk { font-size: 8.5px; font-weight: 600; white-space: nowrap; }
.sc-approach {
  font-size: 10.5px; font-weight: 600; margin-top: 5px; color: var(--text-2);
}
.style-card.active .sc-approach { color: var(--tint); }
.sc-desc { font-size: 9.5px; color: var(--text-3); margin-top: 2px; line-height: 1.45; min-height: 27px; }
.sc-meta { display: flex; justify-content: space-between; font-size: 8.5px; color: var(--text-3); margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }

.style-note {
  margin: 9px 16px 0; padding: 11px 12px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
}
.sn-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 620; color: var(--brand); }
.sn-head svg { width: 14px; height: 14px; }
.sn-body { font-size: 11px; color: var(--text-2); line-height: 1.6; margin-top: 5px; }
.sn-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.sn-tags span {
  font-size: 9px; color: var(--text-3); padding: 1.5px 7px;
  background: var(--surface-2); border-radius: 999px;
}

/* ---------- 信心门槛（0.48）：研判页第 1 节里的常驻配置条 ---------- */
/* 注意：上面的 .conf-bar 是「信心进度条」，这里是配置条，类名必须分开写 */
.gate-bar {
  margin: 9px 16px 0; padding: 10px 12px 11px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
}
.gate-bar.own { border-color: rgba(232, 184, 75, .3); }
.gb-h { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.gb-t { font-size: 11.5px; font-weight: 620; color: var(--text); }
.gb-v { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .3px; }
.gb-src { font-size: 9.5px; color: var(--text-3); }
.gate-bar.own .gb-src { color: var(--brand); opacity: .8; }
.gb-chips { padding: 7px 0 0; gap: 5px; }
.gb-chips .chip.sm { font-size: 10.5px; padding: 4px 9px; }
.gb-chips .gb-back { color: var(--text-3); border-style: dashed; }
.gb-custom {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 8px; font-size: 10px; color: var(--text-3);
}
.gb-custom label { font-size: 10.5px; color: var(--text-2); }
.gb-num {
  width: 56px; padding: 5px 7px; border-radius: 8px; text-align: center;
  font: inherit; font-size: 12px; font-weight: 620; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-soft);
  -moz-appearance: textfield; appearance: textfield;
}
.gb-num::-webkit-outer-spin-button, .gb-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gb-num:focus { outline: none; border-color: var(--brand); }
.gb-hint { font-size: 9.5px; color: var(--text-3); }
.gb-note { margin-top: 7px; font-size: 9.5px; line-height: 1.6; color: var(--text-3); }

/* ---------- 指标 chips ---------- */
.tt { font-size: 10.5px; color: var(--text-3); font-weight: 400; }
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 16px; }
.ind-chip {
  padding: 8px 10px; border-radius: 11px; cursor: pointer; transition: .16s;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.ind-chip.on { border-color: rgba(232,184,75,.3); background: rgba(232,184,75,.06); }
.ind-chip b { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.ind-chip.on b { color: var(--text); }
.ind-chip span { display: block; font-size: 9px; color: var(--text-3); margin-top: 1px; line-height: 1.4; }

/* ---------- 六战法：研判构建 ---------- */
/* 六个格子而不是六个小 chip：战法是「这次要看哪几套打法」，点错一套等于少看一半行情，
   所以给足点击面积和一眼能分辨的标签。 */
.tx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 16px; }
.tx-card {
  text-align: left; cursor: pointer; font-family: inherit;
  padding: 9px 10px; border-radius: 12px; transition: .16s;
  background: var(--surface); border: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.tx-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--tint, var(--brand)); opacity: 0; transition: .16s;
}
.tx-card.on { border-color: rgba(232,184,75,.42); background: rgba(232,184,75,.07); }
@supports (border-color: color-mix(in srgb, red 40%, transparent)) {
  .tx-card.on {
    border-color: color-mix(in srgb, var(--tint, #E8B84B) 45%, transparent);
    background: color-mix(in srgb, var(--tint, #E8B84B) 8%, transparent);
  }
}
.tx-card.on::before { opacity: 1; }
.tx-top { display: flex; align-items: baseline; gap: 6px; }
.tx-top b { font-size: 12px; font-weight: 640; color: var(--text-3); }
.tx-card.on .tx-top b { color: var(--text); }
.tx-top i { font-style: normal; font-size: 8.5px; color: var(--text-3); margin-left: auto; }
.tx-hr { display: block; margin-top: 2px; font-size: 9px; color: var(--text-3); opacity: .8; }
.tx-note { padding: 7px 16px 0; font-size: 10px; line-height: 1.55; color: var(--text-3); }
html[data-theme="light"] .tx-card { background: #FFFFFF; }
/* 上一行比 .tx-card.on 更「具体」，会把选中态底色一起盖成纯白 —— 这里按同一优先级补回来，
   否则浅色下只剩一圈细边框，六张卡选没选几乎看不出来。 */
html[data-theme="light"] .tx-card.on {
  background: #FFF7E4;
  background: color-mix(in srgb, var(--tint, #E8B84B) 13%, #FFFFFF);
  border-color: color-mix(in srgb, var(--tint, #E8B84B) 52%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
html[data-theme="light"] .tk-cell.on { background: rgba(232,184,75,.14); }

/* ---------- 模型分组 ---------- */
.model-group-label {
  display: flex; align-items: baseline; gap: 7px;
  padding: 12px 16px 5px; font-size: 11px; font-weight: 600; color: var(--text-2);
}
.model-group-label span { font-size: 9.5px; font-weight: 400; color: var(--text-3); }
.menu-item.locked { opacity: .62; }
.mini-tag { font-size: 9px; padding: 1px 5px; border-radius: 5px; margin-left: 3px; font-weight: 500; }
.mini-tag.gold { color: var(--brand); background: rgba(232,184,75,.12); border: 1px solid rgba(232,184,75,.25); }
.lock-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; color: var(--text-3);
  padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line);
  white-space: nowrap;
}
.lock-tag svg { width: 10px; height: 10px; }

/* ---------- 提示词 ---------- */
.prompt-card {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 16px 4px; padding: 11px 13px;
  background: linear-gradient(120deg, rgba(124,107,255,.1), rgba(124,107,255,.02));
  border: 1px solid rgba(124,107,255,.22); border-radius: 14px;
  cursor: pointer; transition: .16s;
}
.prompt-card:active { transform: scale(.99); }
.pc-ic { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(124,107,255,.16); color: var(--ai-2); flex: 0 0 28px; }
.pc-ic svg { width: 15px; height: 15px; }
.prompt-card b { display: block; font-size: 12.5px; font-weight: 600; }
.prompt-card small { font-size: 10px; color: var(--text-3); }
.prompt-card > svg { width: 14px; height: 14px; color: var(--text-3); flex: 0 0 14px; }
.prompt-full {
  margin: 0 16px 6px; padding: 12px;
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 12px;
  max-height: 320px; overflow-y: auto;
}
.prompt-full pre {
  margin: 0; font-size: 10px; line-height: 1.75; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}

/* ---------- 结果页补充 ---------- */
.verdict-style { font-size: 11px; font-weight: 600; margin-top: 2px; letter-spacing: .2px; }
.verdict-foot {
  display: flex; flex-direction: column; gap: 4px; margin-top: 10px;
  font-size: 10.5px; color: var(--text-3); line-height: 1.55;
}
.verdict-foot span { display: flex; align-items: center; gap: 5px; }
.verdict-foot svg { width: 12px; height: 12px; flex: 0 0 12px; }
.price-grid.dim { opacity: .55; }

.align-row { display: flex; gap: 7px; padding: 0 16px; }
.align-cell {
  flex: 1; padding: 8px 6px; border-radius: 11px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.align-cell b { display: block; font-size: 10.5px; color: var(--text-2); font-weight: 600; }
.align-cell span { display: block; font-size: 11.5px; font-weight: 620; margin-top: 2px; color: var(--text-3); }
.align-cell small { display: block; font-size: 8.5px; color: var(--text-3); margin-top: 1px; }
.align-cell.long { border-color: rgba(245,72,95,.3); background: rgba(245,72,95,.07); }
.align-cell.long span { color: var(--up); }
.align-cell.short { border-color: rgba(20,192,140,.3); background: rgba(20,192,140,.07); }
.align-cell.short span { color: var(--down); }

.ind-list { margin: 0 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.ind-row {
  display: grid; grid-template-columns: 76px 1fr auto;
  align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.ind-row:last-child { border-bottom: none; }
.ir-name { font-size: 11px; color: var(--text-2); }
.ir-val { font-size: 11px; color: var(--text); }
.ir-read { font-size: 9.5px; color: var(--text-3); text-align: right; white-space: nowrap; }
.ir-read.bull { color: var(--up); }
.ir-read.bear { color: var(--down); }
.note + .ind-row { margin-top: 0; }

.vote-thesis { color: var(--text); font-size: 12.5px; line-height: 1.55; }
.vote-approach {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 7px;
  font-size: 10px; color: var(--ai-2);
  padding: 2px 8px; background: rgba(124,107,255,.1); border-radius: 6px;
}
.vote-approach svg { width: 11px; height: 11px; }
.vote-approach em { font-style: normal; color: var(--text-3); }
.vote-inds { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.vote-inds span {
  font-size: 9px; color: var(--text-3);
  padding: 1.5px 6px; border-radius: 5px; background: var(--surface-2);
}
.vote-inds b { color: var(--text-2); font-weight: 500; margin-right: 3px; }
.vote-levels { display: flex; gap: 12px; font-size: 11px; color: var(--text-3); margin-top: 8px; }
.conf-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); margin-top: 4px; }

/* ---------- 会员中心 ---------- */
.member-card {
  margin: 14px 16px 4px; padding: 16px;
  border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(232,184,75,.12), rgba(232,184,75,.02) 60%), var(--surface);
  border: 1px solid rgba(232,184,75,.2);
}
.member-card.pro { background: linear-gradient(135deg, rgba(232,184,75,.18), rgba(232,184,75,.03) 60%), var(--surface); border-color: rgba(232,184,75,.32); }
.member-card.elite { background: linear-gradient(135deg, rgba(77,107,254,.2), rgba(124,107,255,.04) 60%), var(--surface); border-color: rgba(124,107,255,.35); }
.mc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mc-plan { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.mc-tag { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.mc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; padding: 3px 9px;
  border: 1px solid; border-radius: 999px;
}
.mc-badge svg { width: 11px; height: 11px; }

.mc-quota { margin-top: 14px; padding: 11px 12px; background: rgba(0,0,0,.22); border-radius: 13px; }
.mq-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--text-2); }
.mq-head b { font-size: 17px; font-weight: 680; color: var(--text); }
.mq-head b i { font-style: normal; font-size: 10.5px; color: var(--text-3); font-weight: 400; }
.mq-bar { height: 4px; border-radius: 2px; background: rgba(var(--ink),.08); overflow: hidden; margin: 8px 0 5px; }
.mq-bar i { display: block; height: 100%; border-radius: 2px; transition: width .4s; }
.mq-foot { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-3); }

.mc-acts { display: flex; gap: 8px; margin-top: 12px; }
.mc-acts .btn { flex: 1; }
.mc-invite { font-size: 10px; color: var(--text-3); margin-top: 10px; text-align: center; }
.mc-invite code { color: var(--text-2); letter-spacing: 1px; font-size: 10.5px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 0 16px; }
.plan-col {
  padding: 10px 9px; border-radius: 13px; position: relative;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.plan-col.active { border-color: var(--tint); background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 12%, transparent), transparent 70%), var(--surface); }
.plan-col > b { font-size: 12.5px; font-weight: 650; }
.pc-cur {
  position: absolute; top: -1px; right: -1px;
  font-size: 8px; padding: 1px 6px; border-radius: 0 12px 0 8px;
  background: var(--tint); color: #0B0E13; font-weight: 700;
}
.pc-price { font-size: 17px; font-weight: 680; margin-top: 5px; color: var(--text); }
.pc-price span { font-size: 8.5px; color: var(--text-3); font-weight: 400; }
.pc-limit { font-size: 9.5px; color: var(--text-3); margin-top: 1px; }
.plan-col ul { margin: 7px 0 0; padding-left: 12px; }
.plan-col li { font-size: 8.5px; color: var(--text-3); line-height: 1.55; margin-bottom: 2px; }

.upgrade-hint {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 16px 0; padding: 11px 13px;
  background: linear-gradient(120deg, rgba(232,184,75,.12), rgba(232,184,75,.02));
  border: 1px solid rgba(232,184,75,.24); border-radius: 14px;
  cursor: pointer;
}
.upgrade-hint b { display: block; font-size: 12.5px; font-weight: 620; }
.upgrade-hint small { font-size: 10px; color: var(--text-3); }
.upgrade-hint > svg { width: 14px; height: 14px; color: var(--brand); flex: 0 0 14px; }

/* ---------- 订阅弹层 ---------- */
.plan-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.plan-tab {
  flex: 1; padding: 10px; border-radius: 13px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-soft); transition: .16s;
}
.plan-tab.active { border-color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, var(--surface)); }
.plan-tab b { display: block; font-size: 13.5px; font-weight: 650; }
.plan-tab.active b { color: var(--tint); }
.plan-tab span { font-size: 9.5px; color: var(--text-3); }

.plan-benefits {
  padding: 11px 12px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.pb-head { font-size: 11px; font-weight: 620; }
.plan-benefits ul { margin: 7px 0 0; padding-left: 14px; }
.plan-benefits li { font-size: 10.5px; color: var(--text-2); line-height: 1.7; }

.sub-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; margin-bottom: 7px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line-soft); transition: .16s;
}
.sub-opt.active { border-color: rgba(232,184,75,.45); background: rgba(232,184,75,.07); }
.so-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 16px; display: flex; align-items: center; justify-content: center; }
.sub-opt.active .so-radio { border-color: var(--brand); }
.sub-opt.active .so-radio i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.so-title { font-size: 12.5px; font-weight: 600; }
.so-tag {
  font-size: 8.5px; color: var(--brand); margin-left: 4px;
  padding: 1px 5px; border-radius: 4px; background: rgba(232,184,75,.12);
}
.so-note { font-size: 9.5px; color: var(--text-3); margin-top: 1px; }
.so-price { text-align: right; }
.so-price b { display: block; font-size: 15px; font-weight: 680; color: var(--brand-2); }
.so-price s { font-size: 9px; color: var(--text-3); }

.channel-hint {
  margin: 6px 16px 2px; padding: 10px 12px;
  background: rgba(232,184,75,.06); border: 1px solid rgba(232,184,75,.2);
  border-radius: 12px;
}
.channel-hint b { display: block; font-size: 11.5px; font-weight: 620; color: var(--brand); }
.channel-hint small { display: block; font-size: 10px; color: var(--text-3); line-height: 1.65; margin-top: 3px; }

/* ================================================================
 * 战绩本 / 账户页（MT4·MT5 接入）
 * ================================================================ */

.muted { color: var(--text-3); }
.sm { font-size: 10.5px; }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---- 骨架 / 引导 ---- */
.stats-skel { padding-top: 4px; }

.bind-guide {
  margin: 28px 16px; padding: 26px 20px 22px;
  background: linear-gradient(180deg, rgba(232,184,75,0.07), rgba(21,26,35,0.9) 40%);
  border: 1px solid rgba(232,184,75,0.18);
  border-radius: 22px; text-align: center;
}
.bg-icon {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,184,75,0.12); color: var(--brand);
}
.bg-icon svg { width: 28px; height: 28px; }
.bind-guide h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 680; }
.bind-guide p { margin: 0 0 18px; font-size: 12px; color: var(--text-2); line-height: 1.72; text-align: left; }
.bg-channels { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.bg-ch {
  text-align: left; padding: 10px 12px; border-radius: 12px;
  background: rgba(var(--ink),0.03); border: 1px solid var(--line-soft);
}
.bg-ch b { font-size: 12px; font-weight: 620; }
.bg-ch .badge {
  display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 5px;
  font-size: 9px; font-style: normal; color: var(--brand);
  background: rgba(232,184,75,0.13); vertical-align: 1px;
}
.bg-ch small { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 3px; line-height: 1.6; }
.bg-note { margin-top: 12px; font-size: 10px; color: var(--text-3); text-align: center; }

/* ---- 分段 tab ---- */
.seg-tabs {
  display: flex; gap: 4px; margin: 12px 16px 4px; padding: 3px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 13px;
}
.seg {
  flex: 1; padding: 8px 4px; border: 0; background: transparent; cursor: pointer;
  color: var(--text-2); font-size: 12px; font-weight: 560; border-radius: 10px;
  font-family: inherit; transition: background .18s, color .18s;
}
.seg.active { background: rgba(232,184,75,0.14); color: var(--brand); }
.seg i {
  font-style: normal; font-size: 9.5px; margin-left: 4px; opacity: .95; color: var(--text-2);
  padding: 0 4px; border-radius: 4px; background: rgba(var(--ink),0.1);
}

/* ---- 账户条 ---- */
.acct-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 12px 16px 0; padding: 12px 14px;
  background: linear-gradient(135deg, rgba(77,107,254,0.12), rgba(21,26,35,0.95));
  border: 1px solid rgba(77,107,254,0.2); border-radius: 16px;
}
.as-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pf-badge {
  flex: 0 0 auto; padding: 3px 7px; border-radius: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  color: var(--tint, var(--brand));
  background: color-mix(in srgb, var(--tint, #E8B84B) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint, #E8B84B) 30%, transparent);
}
.pf-badge.sm { font-size: 9.5px; padding: 2px 5px; }
.as-name { min-width: 0; }
.as-name b { display: block; font-size: 12.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-name small { display: block; font-size: 9.5px; color: var(--text-3); margin-top: 1px; }
.as-right { text-align: right; flex: 0 0 auto; }
.as-right b { display: block; font-size: 15px; font-weight: 680; font-variant-numeric: tabular-nums; }
.as-right small { display: block; font-size: 10px; margin-top: 1px; }

.acct-switch { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: none; }
.acct-switch::-webkit-scrollbar { display: none; }
.acct-switch .chip { flex: 0 0 auto; }

/* ---- 卡片通用 ---- */
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 4px;
}
.card-head b { font-size: 12.5px; font-weight: 620; }
.card-head span { font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.st-canvas { display: block; width: 100%; padding: 0 2px 4px; }

/* ---- 四宫格 ---- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); overflow: hidden; }
.sg-cell { padding: 13px 14px; background: var(--surface); }
.sg-cell span { display: block; font-size: 10.5px; color: var(--text-3); }
.sg-cell b { display: block; font-size: 19px; font-weight: 680; margin: 3px 0 2px; font-variant-numeric: tabular-nums; }
.sg-cell i { font-style: normal; font-size: 9.5px; color: var(--text-3); }

/* ---- 指标列表 ---- */
.stat-list { padding: 4px 0; }
.sl-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; font-size: 12px;
}
.sl-row span { color: var(--text-2); }
.sl-row b { font-weight: 620; font-variant-numeric: tabular-nums; }
.sl-row + .sl-row { border-top: 1px solid var(--line-soft); }

/* ---- 净值曲线脚注 ---- */
.legend { display: flex; align-items: center; gap: 4px; font-size: 10px; }
.legend i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.lg-bal { background: #4D6BFE; }
.lg-eq { background: #E8B84B; margin-left: 4px; }
.eq-foot { display: flex; justify-content: space-between; padding: 2px 14px 12px; }
.eq-foot div { text-align: center; flex: 1; }
.eq-foot span { display: block; font-size: 9.5px; color: var(--text-3); }
.eq-foot b { display: block; font-size: 12px; font-weight: 620; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---- 风险指标网格 ---- */
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); margin-top: 8px; }
.risk-grid div { padding: 10px 14px; background: var(--surface); }
.risk-grid span { display: block; font-size: 10px; color: var(--text-3); }
.risk-grid b { display: block; font-size: 13.5px; font-weight: 640; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---- 横向对比条 ---- */
.hbar-list { padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 9px; }
.hbar-row { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.hb-label { flex: 0 0 74px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { flex: 1; height: 7px; border-radius: 4px; background: rgba(var(--ink),0.05); overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: 4px; }
.hb-track i.up { background: linear-gradient(90deg, rgba(245,72,95,0.45), var(--up)); }
.hb-track i.down { background: linear-gradient(90deg, rgba(20,192,140,0.45), var(--down)); }
.hbar-row b { flex: 0 0 62px; text-align: right; font-size: 11px; font-weight: 620; font-variant-numeric: tabular-nums; }
.hbar-row small { flex: 0 0 34px; text-align: right; color: var(--text-3); font-size: 9.5px; }

/* ---- 日历 ---- */
.cal-legend { display: flex; align-items: center; gap: 6px; padding: 12px 18px 0; font-size: 10px; color: var(--text-2); }
.cal-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.cal-legend i.up { background: rgba(245,72,95,0.7); }
.cal-legend i.down { background: rgba(20,192,140,0.7); }
.cal-legend span { margin-left: auto; color: var(--text-3); font-size: 9.5px; }
.cal-card { padding-bottom: 10px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 6px 14px 4px; }
.cal-week span { text-align: center; font-size: 9.5px; color: var(--text-3); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0 14px; }
.cal-cell {
  aspect-ratio: 1; border-radius: 7px; background: rgba(var(--ink),0.025);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 9.5px; color: var(--text-3); position: relative;
}
.cal-cell.pad { background: transparent; }
.cal-cell.has { color: var(--text); }
.cal-cell span { font-size: 9px; opacity: .8; line-height: 1; }
.cal-cell i { font-style: normal; font-size: 8px; font-weight: 620; margin-top: 1px; line-height: 1; }
.cal-cell i.up { color: #FFD9DE; }
.cal-cell i.down { color: #B8F5E2; }
.cal-foot { padding: 8px 14px 0; font-size: 9.5px; color: var(--text-3); }

/* ---- 持仓 / 挂单 ---- */
.pos-sum { display: flex; padding: 12px 14px; }
.pos-sum div { flex: 1; text-align: center; }
.pos-sum span { display: block; font-size: 9.5px; color: var(--text-3); }
.pos-sum b { display: block; font-size: 13px; font-weight: 640; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pos-row {
  margin: 8px 16px; padding: 11px 13px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.pr-top { display: flex; align-items: center; gap: 7px; }
.pr-top b { font-size: 12.5px; font-weight: 640; }
.pr-lots { font-size: 10px; color: var(--text-3); }
.pr-pnl { margin-left: auto; font-size: 13.5px; font-weight: 660; font-variant-numeric: tabular-nums; }
.pr-bot { display: flex; gap: 12px; margin-top: 7px; font-size: 10px; color: var(--text-2); flex-wrap: wrap; }
.risk-note { margin: 10px 18px 16px; font-size: 9.5px; color: var(--text-3); line-height: 1.7; }

/* ---- 风控 ---- */
.risk-head { padding: 16px 18px 6px; }
.risk-head b { display: block; font-size: 14px; font-weight: 660; color: var(--brand); }
.risk-head small { display: block; font-size: 10px; color: var(--text-3); margin-top: 3px; }
.risk-row { padding-bottom: 12px; }
.rr-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; font-size: 12px; }
.rr-head span { color: var(--text-2); }
.rr-head b { font-weight: 640; font-variant-numeric: tabular-nums; }
.rr-bar { height: 6px; margin: 0 14px; border-radius: 3px; background: rgba(var(--ink),0.06); overflow: hidden; }
.rr-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(232,184,75,0.5), var(--brand)); transition: width .3s; }
.rr-bar i.down { background: linear-gradient(90deg, rgba(245,72,95,0.5), var(--up)); }
.risk-row small { display: block; padding: 7px 14px 0; font-size: 9.5px; color: var(--text-3); }

/* ---- 登录 ---- */
.auth-wrap { padding: 30px 22px 24px; text-align: center; }
/* 品牌图用不透明版（logo-tile.png：白底 + 图形，一个透明像素都没有），
 * 圆角由这里的 border-radius 裁 —— 原图四角是 alpha=0 的像素，
 * 某些 WebView 会把它们当黑块画出来，实机上就是四个黑角。 */
.auth-logo {
  display: block; width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 15px;
  background: #fff url(/logo-tile.png) center/cover no-repeat;
  box-shadow: 0 8px 20px -12px rgba(24, 50, 120, .45);
}
html[data-theme="dark"] .auth-logo { box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .8); }
.auth-wrap h2 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.auth-sub { margin: 0 0 24px; font-size: 11.5px; color: var(--text-3); letter-spacing: .2px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-switch { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.auth-switch b { color: var(--brand); font-weight: 600; cursor: pointer; margin-left: 4px; }
.auth-note { margin-top: 26px; font-size: 10px; color: var(--text-3); line-height: 1.7; text-align: center; }

.fld { display: block; }
.fld > span { display: flex; align-items: baseline; gap: 8px; font-size: 10.5px; color: var(--text-3); margin-bottom: 5px; }
.fld > span i { font-style: normal; }
/* 标签行右侧的小链接（登录页「忘记密码？」） */
.fld-link { margin-left: auto; flex: 0 0 auto; font-size: 11px; font-weight: 500; color: var(--brand); cursor: pointer; }
.fld-link:active { opacity: .6; }
.fld input {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-size: 13px; font-family: inherit;
  outline: none; transition: border-color .18s;
}
.fld input:focus { border-color: rgba(232,184,75,0.5); }
.fld input::placeholder { color: var(--text-3); }

/* ---- 账户页 ---- */
.acct-user { display: flex; align-items: center; gap: 11px; padding: 16px 18px 8px; }
.au-avatar {
  width: 42px; height: 42px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(232,184,75,0.22), rgba(77,107,254,0.16));
  color: var(--brand); font-size: 17px; font-weight: 700;
}
.au-info { flex: 1; min-width: 0; }
.au-info b { display: block; font-size: 13.5px; font-weight: 640; }
.au-info small { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

.acct-card {
  margin: 8px 16px; padding: 13px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.ac-top { display: flex; align-items: center; gap: 8px; }
.ac-name { flex: 1; min-width: 0; }
.ac-name b { display: block; font-size: 12.5px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-name small { display: block; font-size: 9.5px; color: var(--text-3); margin-top: 1px; }
.st-tag {
  flex: 0 0 auto; font-size: 9.5px; padding: 3px 7px; border-radius: 6px;
  background: rgba(139,149,167,0.14); color: var(--text-2);
}
.st-tag.connected { background: rgba(20,192,140,0.14); color: var(--down); }
.st-tag.error { background: rgba(245,72,95,0.14); color: var(--up); }
.st-tag.syncing { background: rgba(232,184,75,0.14); color: var(--brand); }
.st-tag.stale { background: rgba(232,184,75,0.14); color: var(--brand); }
.ac-bal { display: flex; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.ac-bal div { flex: 1; }
.ac-bal span { display: block; font-size: 9.5px; color: var(--text-3); }
.ac-bal b { display: block; font-size: 13px; font-weight: 640; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ac-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line-soft);
  font-size: 9.5px; color: var(--text-3); gap: 8px; flex-wrap: wrap;
}
.ac-acts { display: flex; gap: 6px; }
.mini-btn {
  padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-2);
  font-size: 10px; font-family: inherit; cursor: pointer;
}
.mini-btn:active { opacity: .7; }
.mini-btn.danger { color: #F5485F; border-color: rgba(245,72,95,0.28); }
.ac-err { margin-top: 9px; font-size: 10px; color: var(--up); line-height: 1.6; }
.ac-token { margin-top: 9px; font-size: 9.5px; color: var(--text-3); line-height: 1.6; }
.ac-token code { color: var(--text-2); font-size: 9.5px; }

/* ---- 绑定表单 ---- */
.bind-form { padding: 14px; display: flex; flex-direction: column; gap: 13px; }
.bf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bf-row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.bf-label { font-size: 10.5px; color: var(--text-3); flex: 0 0 auto; }
.ch-list { display: flex; flex-direction: column; gap: 7px; }
.ch-opt {
  text-align: left; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text); font-family: inherit; transition: border-color .18s, background .18s;
}
.ch-opt.active { border-color: rgba(232,184,75,0.45); background: rgba(232,184,75,0.07); }
.ch-opt.off { opacity: .5; }
.ch-name { display: block; font-size: 12px; font-weight: 620; }
.ch-name .badge {
  font-style: normal; font-size: 9px; font-weight: 500; margin-left: 6px;
  padding: 1px 5px; border-radius: 5px; color: var(--brand);
  background: rgba(232,184,75,0.13);
}
.ch-opt small { display: block; font-size: 10px; color: var(--text-3); margin-top: 3px; line-height: 1.55; }
.ch-opt em { display: block; font-style: normal; font-size: 9.5px; color: var(--up); margin-top: 4px; }
.bf-note { font-size: 9.5px; color: var(--text-3); line-height: 1.6; }
.hint-card {
  margin: 10px 16px; padding: 12px 14px; border-radius: 14px;
  background: rgba(77,107,254,0.06); border: 1px solid rgba(77,107,254,0.16);
}
.hint-card b { display: block; font-size: 11.5px; font-weight: 620; color: #8FA4FF; }
.hint-card p { margin: 5px 0 0; font-size: 10px; color: var(--text-2); line-height: 1.66; }
/* 分步骤说明（云端接入等） */
.hi-steps { list-style: none; margin: 9px 0 0; padding: 0; counter-reset: hs; }
.hi-steps li { display: flex; gap: 9px; padding: 7px 0; border-top: 1px dashed rgba(var(--ink),.06); }
.hi-steps li:first-child { border-top: 0; padding-top: 2px; }
.hi-steps li > span {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 6px; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #8FA4FF; background: rgba(77,107,254,.16);
}
.hi-steps li > div { flex: 1; min-width: 0; }
.hi-steps b { display: block; font-size: 11px; font-weight: 600; color: var(--text); }
.hi-steps small { display: block; font-size: 9.5px; color: var(--text-3); line-height: 1.6; margin-top: 2px; }
.hi-steps code {
  font-size: 9px; padding: 1px 4px; border-radius: 4px;
  background: rgba(var(--ink),.07); color: #B8C4E0;
}
.hint-card .hi-foot { font-size: 9.5px; color: var(--text-3); margin-top: 8px; }

/* ---- 交易足迹 ---- */
.trade-sum {
  display: flex; justify-content: space-between; padding: 12px 18px 8px;
  font-size: 11px; color: var(--text-2);
}
.trade-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--line-soft);
}
.tr-l { min-width: 0; flex: 1; }
.tr-line { display: flex; align-items: center; gap: 6px; }
.dir {
  font-size: 9px; padding: 1px 4px; border-radius: 4px; font-weight: 600;
  background: rgba(245,72,95,0.14); color: var(--up);
}
.dir.down { background: rgba(20,192,140,0.14); color: var(--down); }
.tr-line b { font-size: 12px; font-weight: 620; }
.tr-line small { font-size: 9.5px; color: var(--text-3); }
.tr-open {
  font-style: normal; font-size: 8.5px; padding: 1px 4px; border-radius: 4px;
  color: var(--brand); background: rgba(232,184,75,0.13);
}
.tr-sub { display: flex; gap: 9px; margin-top: 4px; font-size: 9.5px; color: var(--text-2); flex-wrap: wrap; }
.tr-r { font-size: 13px; font-weight: 660; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.empty.sm { padding: 20px; font-size: 11px; }

/* ================= EA 工坊 ================= */
.ea-head { padding: 14px 16px 12px; }
.ea-name-row { display: flex; align-items: flex-start; gap: 10px; }
.ea-name { font-size: 15px; font-weight: 650; letter-spacing: .2px; }
.ea-desc { margin-top: 4px; font-size: 11px; line-height: 1.65; color: var(--text-3); }
.ea-score {
  flex: 0 0 auto; text-align: center; min-width: 58px; padding: 5px 8px 4px;
  border-radius: 11px; font-size: 17px; font-weight: 700; line-height: 1.05;
  background: rgba(var(--ink),.05); border: 1px solid var(--line-soft);
}
.ea-score small { display: block; margin-top: 3px; font-size: 9px; font-weight: 500; opacity: .85; }
.ea-score.good { color: var(--up); border-color: rgba(245,72,95,.3); background: rgba(245,72,95,.1); }
.ea-score.ok { color: var(--brand); border-color: rgba(232,184,75,.3); background: rgba(232,184,75,.1); }
.ea-score.bad { color: var(--down); border-color: rgba(20,192,140,.28); background: rgba(20,192,140,.09); }

.ea-selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.ea-sel { display: flex; flex-direction: column; gap: 4px; }
.ea-sel > span { font-size: 9.5px; color: var(--text-3); letter-spacing: .3px; }
.ea-sel select {
  width: 100%; padding: 7px 8px; font-family: inherit; font-size: 12px;
  color: var(--text-1); background: var(--surface-2, rgba(var(--ink),.04));
  border: 1px solid var(--line-soft); border-radius: 9px; outline: none;
  appearance: none; text-align: center;
}

/* ---------- 策略 · 战法起点 ---------- */
/* 六格两列：一格一套战法，点一下把条件写进多空两边。所以格子要能放下
   名称 + 标签 + 一句说明，纯 chip 放不下，也不该让人猜那是什么。 */
.ea-tactic .tk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.tk-cell {
  text-align: left; cursor: pointer; font-family: inherit;
  padding: 9px 10px; border-radius: 12px; transition: .16s;
  background: var(--surface-2, rgba(var(--ink),.03));
  border: 1px solid var(--line-soft);
}
.tk-cell.on { border-color: rgba(232,184,75,.45); background: rgba(232,184,75,.08); }
.tk-name { display: flex; align-items: baseline; gap: 5px; font-size: 12px; font-weight: 650; color: var(--text-2); }
.tk-cell.on .tk-name { color: var(--text); }
.tk-name i { font-style: normal; font-size: 8.5px; color: var(--brand); margin-left: auto; }

.tk-tag { display: block; margin-top: 1px; font-size: 9px; color: var(--text-3); letter-spacing: .2px; }
.tk-desc { display: block; margin-top: 4px; font-size: 9.5px; line-height: 1.5; color: var(--text-3); }
.tk-cell.on .tk-desc { color: var(--text-2); }

.ea-rules .ea-rule-row { display: flex; gap: 8px; padding: 5px 0; font-size: 11.5px; line-height: 1.6; }
.ea-rules .ea-rule-row > i {
  flex: 0 0 18px; height: 18px; border-radius: 6px; font-style: normal;
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  background: rgba(var(--ink),.06); color: var(--text-2);
}
.ea-rules .ea-rule-row > i.up { color: var(--up); background: rgba(245,72,95,.13); }
.ea-rules .ea-rule-row > i.down { color: var(--down); background: rgba(20,192,140,.13); }
.ea-rules .ea-rule-row > div { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--text-2); }
.ea-rules .ea-rule-row > div > span { position: relative; }
.ea-rule-foot { margin-top: 8px; font-size: 10px; color: var(--text-3); }

.ea-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ea-field { display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 7px 9px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
.ea-field > span { font-size: 10.5px; color: var(--text-2); line-height: 1.3; }
.ea-field > span i { display: block; font-style: normal; font-size: 9px; color: var(--text-3); }
.ea-field input {
  width: 62px; flex: 0 0 auto; padding: 4px 6px; text-align: right;
  font-family: var(--mono, ui-monospace); font-size: 12px; color: var(--text-1);
  background: rgba(0,0,0,.22); border: 1px solid var(--line-soft); border-radius: 7px; outline: none;
}
.ea-field input:focus { border-color: rgba(232,184,75,.5); }

.ea-actions { display: flex; gap: 8px; margin: 12px 16px 0; }
.ea-actions .btn { flex: 1; padding: 11px 6px; font-size: 12.5px; border-radius: 12px; }
.ea-actions.sub { margin-top: 8px; }
.btn-sm { padding: 7px 12px !important; font-size: 11.5px !important; flex: 0 0 auto !important; border-radius: 10px !important; }
.ea-actions.sub .btn-sm { flex: 1 !important; }

.ea-error {
  margin: 10px 16px 0; padding: 9px 12px; font-size: 11.5px; line-height: 1.6;
  color: #ffb4bc; background: rgba(245,72,95,.1); border: 1px solid rgba(245,72,95,.25); border-radius: 11px;
}

.ea-cmp { font-size: 11.5px; }
.ea-cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 6px; padding: 7px 0;
  border-bottom: 1px solid var(--line-soft); align-items: center; }
.ea-cmp-row:last-child { border-bottom: none; }
.ea-cmp-row > span:nth-child(n+2) { text-align: right; }
.ea-cmp-head { color: var(--text-3); font-size: 10px; }
.ea-cmp-row i { font-style: normal; font-size: 9.5px; margin-left: 3px; }

.ea-step { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.ea-step:last-child { border-bottom: none; }
.ea-step.off { opacity: .5; }
.ea-step-top { display: flex; align-items: center; gap: 7px; font-size: 11.5px; }
.ea-step-top b { flex: 1; font-weight: 550; }
.ea-step-src { flex: 0 0 auto; padding: 1px 6px; border-radius: 5px; font-size: 9px;
  background: rgba(var(--ink),.07); color: var(--text-3); }
.ea-step-src.model { background: rgba(124,107,255,.18); color: #b9aefe; }
.ea-step-sub { margin-top: 3px; font-size: 10px; color: var(--text-3); line-height: 1.55; }

.ea-code {
  max-height: 380px; overflow: auto; margin: 0; padding: 11px 12px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 10.5px; line-height: 1.55;
  color: #c8d2e0; background: rgba(0,0,0,.3); border: 1px solid var(--line-soft); border-radius: 11px;
  /* 代码不折行：折行会把 //+---+ 边框和缩进打乱，宁可横向滚动 */
  white-space: pre; word-break: normal; overflow-wrap: normal; tab-size: 3;
  -webkit-overflow-scrolling: touch;
}
.ea-assume { font-size: 10.5px; line-height: 1.75; color: var(--text-3); }
.ea-saved-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.ea-saved-row:last-child { border-bottom: none; }
.ea-saved-row b { font-size: 12.5px; font-weight: 600; display: block; }
.ea-saved-row small { font-size: 10px; color: var(--text-3); }

/* ===== 回测：交易风格切换 ===== */
.bt-styles { padding: 6px 16px 0; }
.bt-styles-label {
  font-size: 10px; color: var(--text-3); letter-spacing: .4px; padding-bottom: 5px;
}
.bt-styles-label span { color: rgba(139,149,167,.6); }
.bt-sty-row { display: flex; gap: 7px; }
.bt-sty {
  flex: 1; min-width: 0; padding: 7px 6px 6px; border-radius: 11px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-soft);
  font-size: 12.5px; font-weight: 560; color: var(--text-2); transition: .16s;
}
.bt-sty b { font-weight: 560; }
.bt-sty i {
  display: block; margin-top: 1px; font-style: normal;
  font-size: 8.5px; font-weight: 400; color: var(--text-3); letter-spacing: .1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bt-sty.active {
  border-color: var(--tint, var(--brand));
  background: color-mix(in srgb, var(--tint, var(--brand)) 12%, transparent);
  color: var(--tint, var(--brand));
}
.bt-sty.active i { color: var(--tint, var(--brand)); opacity: .72; }

/* ===== 回测：三风格对比 ===== */
.bt-cmp { margin: 10px 16px 0; }
.bt-cmp-status {
  font-size: 11.5px; line-height: 1.6; padding: 8px 10px; border-radius: 10px;
  margin: 2px 0 9px; background: rgba(var(--ink),.04); color: var(--text-2);
}
.bt-cmp-status b { font-weight: 650; }
.bt-cmp-status.good { background: rgba(245,72,95,.09); color: #f08897; }
.bt-cmp-status.good b { color: var(--up); }
.bt-cmp-status.warn { background: rgba(232,184,75,.09); color: #d9b96d; }
.bt-cmp-status.warn b { color: var(--brand); }
.bt-cmp-status.bad { background: rgba(20,192,140,.09); color: #6ecfae; }
.bt-cmp-status.bad b { color: var(--down); }

.bt-cmp-table { font-size: 11.5px; }
.bt-cmp-tr {
  display: grid; grid-template-columns: 1.35fr .62fr .68fr .78fr .58fr .62fr;
  align-items: center; padding: 9px 8px; border-radius: 9px;
  border-bottom: 1px solid var(--line-soft); transition: .14s;
}
.bt-cmp-tr:last-child { border-bottom: none; }
.bt-cmp-tr > span:nth-child(n+2) { text-align: right; }
.bt-cmp-tr.active { background: color-mix(in srgb, var(--tint, var(--brand)) 9%, transparent); }
.bt-cmp-th {
  color: var(--text-3); font-size: 10px; padding: 4px 8px 5px; border-bottom: 1px solid var(--line);
}
.bt-cmp-name { display: flex; align-items: center; gap: 6px; font-weight: 560; color: var(--text); }
.bt-cmp-name i {
  width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: var(--tint, var(--text-3));
}

.bt-cmp-oos {
  display: flex; align-items: center; gap: 6px; margin-top: 9px;
  padding: 9px 10px; border-radius: 11px; background: var(--surface-2);
  overflow-x: auto;
}
.bt-cmp-oos::-webkit-scrollbar { display: none; }
.bt-cmp-oos-label {
  flex: 0 0 auto; font-size: 9.5px; color: var(--text-3); letter-spacing: .2px;
  padding-right: 4px; border-right: 1px solid var(--line);
}
.bt-cmp-oos-item { flex: 1 0 auto; min-width: 62px; text-align: center; }
.bt-cmp-oos-item b { display: block; font-size: 10px; font-weight: 500; margin-bottom: 1px; }
.bt-cmp-oos-item .num { display: block; font-size: 13px; font-weight: 620; letter-spacing: -.2px; }
.bt-cmp-oos-sub { display: block; font-size: 9px; color: var(--text-3); margin-top: 1px; }

.bt-cmp-legend {
  display: flex; justify-content: center; gap: 14px; margin-top: 6px;
  font-size: 10px; color: var(--text-3);
}
.bt-cmp-legend span { display: flex; align-items: center; gap: 4px; }
.bt-cmp-legend i { width: 7px; height: 2.5px; border-radius: 2px; }

.bt-cmp-skeleton { display: flex; flex-direction: column; gap: 11px; padding: 4px 0 2px; }
.sk-row { display: flex; align-items: center; gap: 10px; }
.sk-row .sk:first-child { flex: 1; }
.sk {
  display: block; height: 11px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(var(--ink),.05) 25%, rgba(var(--ink),.1) 50%, rgba(var(--ink),.05) 75%);
  background-size: 220% 100%; animation: sk-shine 1.3s linear infinite;
}
@keyframes sk-shine { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* ===== EA：条件编辑器 ===== */
.ea-chip-new { border-style: dashed; color: var(--brand); }

.ea-stale {
  display: flex; align-items: center; gap: 8px; margin: 8px 16px 0;
  padding: 8px 10px; border-radius: 10px; font-size: 11.5px;
  background: rgba(232,184,75,.09); border: 1px solid rgba(232,184,75,.22);
  color: #d9b96d;
}
.ea-stale span { flex: 1; }
.ea-stale button {
  flex: 0 0 auto; padding: 4px 10px; border-radius: 8px; font-size: 11px;
  background: rgba(232,184,75,.16); color: var(--brand);
}

.erl-legend {
  font-size: 10.5px; line-height: 1.65; color: var(--text-3);
  padding: 0 0 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 10px;
}
.erl-legend b { color: var(--text-2); font-weight: 600; }

.erl-sec { padding-top: 2px; }
.erl-sec + .erl-sec { margin-top: 12px; border-top: 1px dashed var(--line-soft); padding-top: 11px; }
.erl-sec-head {
  display: flex; align-items: baseline; gap: 7px; margin-bottom: 7px;
}
.erl-sec-head b { font-size: 12.5px; font-weight: 650; }
.erl-sec-head b.up { color: var(--up); }
.erl-sec-head b.down { color: var(--down); }
.erl-sec-head span { font-size: 10px; color: var(--text-3); }

.erl {
  border: 1px solid var(--line-soft); border-radius: 10px;
  background: rgba(var(--ink),.025); padding: 7px 8px 8px; margin-bottom: 6px;
}
.erl.is-or { border-left: 2px solid var(--brand); background: rgba(232,184,75,.035); }

.erl-top { display: flex; align-items: center; gap: 6px; }
.erl-join {
  flex: 0 0 auto; width: 28px; height: 24px; border-radius: 7px;
  font-size: 11px; font-weight: 600; line-height: 1;
  background: rgba(var(--ink),.06); color: var(--text-2);
  border: 1px solid var(--line-soft); transition: .14s;
}
.erl-join.or { background: rgba(232,184,75,.18); color: var(--brand); border-color: rgba(232,184,75,.4); }
.erl-join.ghost {
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 400; color: var(--text-3); background: transparent; border-color: transparent;
}

.erl-tools { flex: 0 0 auto; display: flex; gap: 3px; }
/* 战法来源徽标：贴在这条条件旁边，删条件或取消战法它就一起消失 */
.erl-src {
  flex: 0 0 auto; font-size: 9px; font-weight: 620; letter-spacing: .2px;
  padding: 2px 6px; border-radius: 999px;
  color: var(--brand); background: rgba(232,184,75,.12);
  border: 1px solid rgba(232,184,75,.28); white-space: nowrap;
}
.erl-tools button, .erl-tools-b {
  width: 22px; height: 24px; border-radius: 6px; font-size: 12px; line-height: 1;
  background: rgba(var(--ink),.05); color: var(--text-2); border: 1px solid transparent;
}
.erl-tools button:disabled { opacity: .25; }
.erl-tools button:last-child, .erl-tools-b { color: #f08897; }
.erl-tools-b { flex: 0 0 auto; }

.erl-sel, .erl-num, .erl-kind {
  height: 30px; border-radius: 8px; padding: 0 6px;
  font-size: 12px; color: var(--text); background: rgba(var(--ink),.05);
  border: 1px solid var(--line-soft); min-width: 0;
  -webkit-appearance: none; appearance: none;
}
.erl-sel {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
                    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 12px) 13px, calc(100% - 8px) 13px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  padding-right: 20px;
}
.erl-field { flex: 1; }
.erl-num { width: 100%; text-align: right; padding-right: 8px; }
.erl-num::-webkit-outer-spin-button, .erl-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.erl-mid { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.erl-op { flex: 0 0 84px; }
.erl-val { flex: 1; min-width: 0; display: flex; gap: 5px; }
.erl-kind { flex: 0 0 58px; width: 58px; font-size: 11px; }

/* 抽屉按钮化的选择器：去掉原生三角，改用手感更好的 ▾ */
button.erl-sel, button.erl-kind {
  display: flex; align-items: center; justify-content: space-between; gap: 3px;
  background-image: none; padding: 0 8px; text-align: left;
  font-family: inherit; cursor: pointer; overflow: hidden; white-space: nowrap;
}
button.erl-sel { padding-right: 8px; }
button.erl-sel:active, button.erl-kind:active { background: rgba(var(--ink),.1); }
.erl-chev { font-style: normal; font-size: 9px; color: var(--text-3); flex: 0 0 auto; }
.erl-hint { flex: 1; font-size: 10.5px; color: var(--text-3); }
.erl-interval { padding-left: 0; }
.erl-tilde { flex: 0 0 auto; font-size: 11px; color: var(--text-3); }

.erl-empty {
  font-size: 11px; color: var(--text-3); padding: 9px 10px; border-radius: 9px;
  border: 1px dashed var(--line); text-align: center; margin-bottom: 6px;
}
.erl-add {
  width: 100%; padding: 8px; border-radius: 9px; font-size: 11.5px;
  border: 1px dashed var(--line); color: var(--text-2); background: transparent;
}
.erl-add:disabled { opacity: .4; }

.erl-foot { display: flex; gap: 7px; margin-top: 11px; flex-wrap: wrap; }
.erl-json { margin-top: 9px; }
.erl-json textarea {
  width: 100%; height: 210px; padding: 10px; border-radius: 10px;
  font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; line-height: 1.5;
  color: #c8d2e0; background: rgba(0,0,0,.35); border: 1px solid var(--line-soft);
  resize: vertical;
}

/* ===== EA：自定义参数 ===== */
.eac-row {
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 8px; margin-bottom: 7px; background: rgba(var(--ink),.025);
}
.eac-top { display: flex; gap: 6px; align-items: center; }
.eac-name {
  flex: 1; min-width: 0; height: 30px; padding: 0 8px; border-radius: 8px;
  font-size: 12px; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line-soft);
}
.eac-num {
  flex: 0 0 74px; height: 30px; padding: 0 8px; border-radius: 8px; text-align: right;
  font-size: 12px; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line-soft);
}
.eac-num::-webkit-outer-spin-button, .eac-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.eac-range { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 10px; color: var(--text-3); }
.eac-range label { display: flex; align-items: center; gap: 4px; }
.eac-range input {
  width: 52px; height: 24px; padding: 0 6px; border-radius: 6px; text-align: right;
  font-size: 11px; color: var(--text-2); background: rgba(255,255,255,.04); border: 1px solid var(--line-soft);
}
.eac-range .muted { flex: 1; text-align: right; font-size: 9.5px; }

/* ===== EA：条件体检 ===== */
.abl-base {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 9px 11px; border-radius: 10px; background: var(--surface-2); margin-bottom: 10px;
}
.abl-base span { font-size: 10px; color: var(--text-3); letter-spacing: .3px; }
.abl-base b { font-size: 20px; font-weight: 650; letter-spacing: -.4px; }
.abl-base small { font-size: 10.5px; color: var(--text-3); }

.abl-list { display: flex; flex-direction: column; gap: 7px; }
.abl-row {
  border-radius: 10px; padding: 8px 9px; border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line);
}
.abl-row.bad { border-left-color: #E8B84B; background: rgba(232,184,75,.05); }
.abl-row.good { border-left-color: #3FBFC0; background: rgba(63,191,192,.05); }
.abl-row.flat { border-left-color: rgba(139,149,167,.5); }

.abl-top { display: flex; align-items: center; gap: 6px; }
.abl-tag {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--ink),.07); color: var(--text-2);
}
.abl-text { flex: 1; min-width: 0; font-size: 11.5px; line-height: 1.4; color: var(--text); }
.abl-verdict { flex: 0 0 auto; font-size: 10px; padding: 2px 6px; border-radius: 5px; }
.abl-row.bad .abl-verdict { background: rgba(232,184,75,.16); color: #E8B84B; }
.abl-row.good .abl-verdict { background: rgba(63,191,192,.15); color: #3FBFC0; }
.abl-row.flat .abl-verdict { background: rgba(var(--ink),.06); color: var(--text-3); }

.abl-nums { display: flex; gap: 10px; margin-top: 5px; font-size: 10px; color: var(--text-3); flex-wrap: wrap; }
.abl-warn { margin-top: 5px; font-size: 10px; color: #d9b96d; }

.abl-tips { display: flex; flex-direction: column; gap: 9px; font-size: 11.5px; line-height: 1.6; color: var(--text-2); }
.abl-tips b { display: inline-block; min-width: 52px; font-size: 10px; padding: 2px 6px; border-radius: 5px; margin-right: 6px; text-align: center; }
.abl-tips b.bad { background: rgba(232,184,75,.14); color: #E8B84B; }
.abl-tips b.good { background: rgba(63,191,192,.13); color: #3FBFC0; }
.abl-tips b.flat { background: rgba(var(--ink),.06); color: var(--text-3); }
.abl-tips .muted { font-size: 10.5px; color: var(--text-3); }

/* ===== EA：零成交诊断 ===== */
.ea-diag { border-color: rgba(232,184,75,.22); }
.diag-hint { font-size: 11.5px; line-height: 1.65; color: #d9b96d; margin-bottom: 9px; }
.diag-list { display: flex; flex-direction: column; gap: 5px; }
.diag-row {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px;
  background: rgba(var(--ink),.03); border-left: 2px solid transparent;
}
.diag-row.warn { border-left-color: rgba(232,184,75,.6); }
.diag-row.bad { border-left-color: #E8B84B; background: rgba(232,184,75,.055); }
.diag-tag {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 4px; font-size: 9.5px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--ink),.07); color: var(--text-2);
}
.diag-text { flex: 1; min-width: 0; font-size: 11px; color: var(--text-2); line-height: 1.4; }
.diag-pct { flex: 0 0 auto; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.diag-row.bad .diag-pct { color: #E8B84B; }
.diag-joint {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 7px 9px; border-radius: 8px; background: rgba(var(--ink),.035); margin-bottom: 9px;
  font-size: 10px; color: var(--text-3);
}
.diag-joint b { font-size: 12px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* ===== EA：策略名与出场设置 ===== */
.ea-name-input {
  display: block; width: 100%; padding: 0; border: none; background: transparent;
  font-size: 15px; font-weight: 650; color: var(--text); letter-spacing: -.2px;
  font-family: inherit; line-height: 1.35;
}
.ea-name-input:focus { outline: none; border-bottom: 1px solid var(--line); }

.eaexit-row { display: flex; align-items: center; gap: 10px; }
.eaexit-label { flex: 0 0 auto; font-size: 10px; color: var(--text-3); letter-spacing: .3px; }
.eaexit-seg { flex: 1; display: flex; gap: 6px; }
.eaexit-seg button {
  flex: 1; padding: 8px 4px; border-radius: 9px; font-size: 11.5px;
  background: rgba(var(--ink),.04); border: 1px solid var(--line-soft); color: var(--text-2);
  transition: .14s;
}
.eaexit-seg button.active {
  border-color: var(--brand); color: var(--brand);
  background: color-mix(in srgb, var(--brand) 13%, transparent);
}
.eaexit-sw {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 11px; cursor: pointer;
}
.eaexit-sw input {
  flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px;
  accent-color: var(--brand);
}
.eaexit-sw span { flex: 1; font-size: 12px; color: var(--text); line-height: 1.35; }
.eaexit-sw small { display: block; font-size: 10px; color: var(--text-3); margin-top: 2px; line-height: 1.45; }

/* ===== APP 化：页面转场 ===== */
@keyframes navIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes navOut { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.view.nav-in { animation: navIn .24s cubic-bezier(.22,1,.36,1); }
.view.nav-out { animation: navOut .22s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: reduce) {
  .view.nav-in, .view.nav-out { animation: none; }
}

/* ===== 策略实验室首页 ===== */
.shop-hero {
  margin: 14px 16px 4px; padding: 18px 16px 14px; border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232,184,75,.16) 0%, transparent 58%),
    linear-gradient(160deg, #1A1F2B 0%, #141821 100%);
  border: 1px solid rgba(232,184,75,.16);
  position: relative; overflow: hidden;
}
.shop-hero.sk { background: var(--surface); border-color: var(--line); }
.shop-kicker {
  font-size: 9px; letter-spacing: 2.2px; color: var(--brand);
  font-weight: 700; opacity: .85;
}
.shop-hero h2 {
  margin: 7px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -.3px;
  line-height: 1.3;
}
.shop-hero p { margin: 0; font-size: 11.5px; color: var(--text-2); line-height: 1.6; }
.shop-stats {
  display: flex; gap: 0; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(var(--ink),.06);
}
.shop-stats > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.shop-stats b { font-size: 17px; font-weight: 700; color: var(--brand-2); }
.shop-stats span { font-size: 10px; color: var(--text-3); }

.shop-last {
  display: flex; align-items: center; gap: 10px; margin: 12px 16px 0;
  padding: 11px 13px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
}
.shop-last:active { background: var(--surface-2); }
.sl-l { flex: 1; min-width: 0; }
.sl-k { display: block; font-size: 9.5px; color: var(--text-3); letter-spacing: .6px; }
.sl-l b { display: block; font-size: 13px; font-weight: 600; margin: 1px 0 2px; }
.sl-l small { font-size: 10.5px; color: var(--text-2); }
.sl-score {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.sl-score.good { color: #3FBFC0; background: rgba(63,191,192,.12); }
.sl-score.ok { color: var(--brand); background: rgba(232,184,75,.12); }
.sl-score.bad { color: #E8B84B; background: rgba(232,184,75,.1); }

.shop-mine { padding: 0 16px; }
.shop-empty {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 26px 16px; border-radius: 16px; text-align: center;
  border: 1px dashed var(--line); color: var(--text-2); font-size: 12.5px;
}
.shop-empty .se-ico { color: var(--text-3); opacity: .7; }
.shop-empty .se-ico svg { width: 26px; height: 26px; }
.shop-empty small { font-size: 10.5px; color: var(--text-3); }

/* 我的策略空态：一行到底，别用整幅插画占掉半屏 */
.mine-empty {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 14px;
  background: var(--surface); border: 1px dashed var(--line);
}
.mne-ic {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,184,75,.10); color: var(--brand);
}
.mne-ic svg { width: 15px; height: 15px; }
.mne-tx { flex: 1; min-width: 0; }
.mne-tx b { display: block; font-size: 11.5px; font-weight: 620; color: var(--text-2); }
.mne-tx small {
  display: block; margin-top: 2px; font-size: 9.5px; line-height: 1.45; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mine-empty .mini-btn { flex: 0 0 auto; margin-left: 0; }
@media (max-width: 360px) {
  .mne-tx small { white-space: normal; }
}

/* 我的策略 / 我的 AI 模型共用的一行：
   左边字母块 → 名字 + 一行元信息 + 一行状态与入口 → 右侧分数 → 删除。
   三行各有各的差事，所以给了行高和间距，不再挤成一坨。 */
.mine-row {
  display: flex; align-items: flex-start; gap: 11px; padding: 12px 12px 11px;
  border-radius: 15px; background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 8px; cursor: pointer;
}
.mine-row:active { background: var(--surface-2); }
.mr-ico {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,184,75,.1); color: var(--brand); font-weight: 700; font-size: 14px;
}
.mine-row .grow { flex: 1 1 auto; min-width: 0; }
.mine-row b {
  display: block; font-size: 13px; font-weight: 650; line-height: 1.35; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mine-row b .lib-tag { margin-left: 6px; vertical-align: 1px; }
.mine-row small {
  display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.45; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 「上次研判 2026-11-17 16:21 ›」是 small 里的一个 <b>：不能被 .mine-row b 撑成 13px 独立一行 */
.mine-row small b,
.mine-row small .am-when {
  display: inline; font-size: inherit; font-weight: 600; line-height: inherit;
  color: var(--brand); white-space: normal;
}
.mr-score {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  gap: 1px; line-height: 1; padding-left: 2px;
}
.mr-score b { font-size: 16px; font-weight: 700; }
.mr-score i { font-style: normal; font-size: 8.5px; color: var(--text-3); }
.mr-score.good { color: #3FBFC0; }
.mr-score.ok { color: var(--brand); }
.mr-score.bad { color: #E8B84B; }
.mr-del {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(var(--ink),.05); border: none; color: var(--text-2);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0;
}
.mr-del:active { color: #F5485F; background: rgba(245,72,95,.10); }
/* 策略行第三行：监控状态 + 入口。状态本身就是答案：「在不在盯、多久一次」 */
.mr-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 5px;
}
.mr-st {
  display: inline-flex; align-items: center; gap: 4px; min-width: 0;
  font-size: 10px; line-height: 1.4; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mr-st i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.mr-st.on { color: var(--down); }
.mr-acts { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.mr-go {
  font-size: 10px; line-height: 1.4; color: var(--brand);
  background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap;
}
.mr-go:active { opacity: .65; }
/* 模型行右侧的方向：只写 BUY / SELL，HOLD 不占地方 */
.mr-word {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .3px;
  padding: 3px 7px; border-radius: 7px;
}
.mr-word.bu { color: var(--up); background: rgba(245,72,95,.12); }
.mr-word.sd { color: var(--down); background: rgba(63,191,192,.12); }

/* 「我的策略」一行四块：
   左：名字 + 改名 + 监控状态（同一行）／品种周期／上次回测三个数
   右（竖排）：右上「日期 + ×」→ 分数 → 右下「开始监控 / 去信号追踪」
   以前「本机」那个标签只是身份说明，占的却是最显眼的位置；改名才是这里真正会做的动作。 */
.mr-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.mr-head b {
  display: inline-block; max-width: 100%; font-size: 13px; font-weight: 650;
  line-height: 1.35; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mr-tag {
  flex: 0 0 auto; font: inherit; font-size: 9.5px; line-height: 1.5;
  padding: 0 5px; border-radius: 5px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(var(--ink),.03); color: var(--text-3);
}
.mr-tag:active { color: var(--brand); border-color: rgba(232,184,75,.45); }
.mr-head .mr-st { flex: 0 0 auto; }
.mr-meta {
  display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.45; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mr-bt {
  display: block; margin-top: 2px; font-size: 10px; line-height: 1.45; color: var(--text-2);
  font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mr-bt.dim { color: var(--text-3); }
/* 第三行里点得开的「上次研判 2026-11-17 09:20 ›」 */
.mr-bt .am-when {
  font-size: inherit; font-weight: 600; color: var(--brand);
  white-space: normal; cursor: pointer;
}
.mr-bt .am-when:active { opacity: .65; }
.mr-right {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end;
  gap: 2px; margin-left: auto; padding-left: 2px;
}
.mr-top { display: flex; align-items: center; gap: 4px; }
.mr-date { font-style: normal; font-size: 9.5px; letter-spacing: .2px; color: var(--text-3); }
.mr-right .mr-del {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 6px;
  font-size: 13px; line-height: 1; padding: 0;
}
/* 分数：跟上面「上次回测」卡右侧那颗同一个长相（同色系底、圆角），
   只是小一号。0.37 起不再写「分」——上面那颗也没写，两处口径一致。 */
.mr-right .mr-score {
  flex-direction: row; align-items: baseline; gap: 1px;
  padding: 2px 7px; border-radius: 9px; background: rgba(var(--ink),.05);
}
.mr-right .mr-score.good { background: rgba(63,191,192,.12); }
.mr-right .mr-score.ok { background: rgba(232,184,75,.12); }
.mr-right .mr-score.bad { background: rgba(232,184,75,.10); }
.mr-right .mr-score.dim { background: none; padding: 2px 0; }
.mr-right .mr-score b { font-size: 14px; }
.mr-right .mr-go { margin-top: 1px; }
.mr-go.dim { color: var(--text-3); }
.mr-score.dim { color: var(--text-3); }
html[data-theme="light"] .mr-st.on { color: #0E8F6A; }

.tpl-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 16px;
}
.tpl-card {
  padding: 13px 12px 11px; border-radius: 16px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 5px; min-height: 128px;
  transition: .16s;
}
.tpl-card:active { transform: scale(.985); background: var(--surface-2); }
.tc-top { display: flex; align-items: center; justify-content: space-between; }
.tc-tag {
  font-size: 9px; padding: 2px 7px; border-radius: 6px; letter-spacing: .4px;
  background: rgba(var(--ink),.06); color: var(--text-2);
}
.tc-tag.aggressive { background: rgba(245,72,95,.13); color: #F2788C; }
.tc-tag.balanced { background: rgba(232,184,75,.13); color: var(--brand); }
.tc-tag.conservative { background: rgba(63,191,192,.13); color: #3FBFC0; }
.tc-num { font-size: 9.5px; color: var(--text-3); }
.tc-name { font-size: 13.5px; font-weight: 650; letter-spacing: -.1px; margin-top: 1px; }
.tc-desc {
  font-size: 10.5px; color: var(--text-3); line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tc-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 9.5px; color: var(--text-3); padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}
.tc-go { color: var(--brand); font-weight: 500; }
.tpl-card.blank {
  border-style: dashed; border-color: var(--line);
  align-items: flex-start; justify-content: center; grid-column: span 2;
  min-height: 0; padding: 15px 14px;
}
.tc-plus { color: var(--text-3); }
.tc-plus svg { width: 20px; height: 20px; }
.tpl-card.blank .tc-name { font-size: 13px; }

/* 编辑器顶部的品种/周期/样本 */
.ea-selects {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  padding: 12px 16px 2px;
}
.ea-pick {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 9px 11px; border-radius: 12px; cursor: pointer; text-align: left;
  background: var(--surface); border: 1px solid var(--line); font-family: inherit;
}
.ea-pick:active { background: var(--surface-2); }
.ea-pick span { font-size: 9.5px; color: var(--text-3); letter-spacing: .4px; }
.ea-pick b { font-size: 13px; font-weight: 650; color: var(--text); }
.ea-score.sm { padding: 5px 9px; font-size: 13px; }

/* 底部抽屉：选项列表 */
.pick-list { padding: 0 12px 4px; }
.pick-list.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pick-group {
  font-size: 9.5px; color: var(--text-3); letter-spacing: .8px;
  padding: 10px 6px 4px; grid-column: 1 / -1;
}
.pick-row {
  display: flex; align-items: center; gap: 8px; padding: 11px 12px;
  border-radius: 12px; cursor: pointer; margin-bottom: 4px;
  background: var(--surface); border: 1px solid transparent;
}
.pick-row:active { background: var(--surface-2); }
.pick-row.on { border-color: rgba(232,184,75,.42); background: rgba(232,184,75,.07); }
.pr-l { flex: 1; min-width: 0; }
.pr-l b { display: block; font-size: 13px; font-weight: 550; color: var(--text); }
.pr-l small { display: block; font-size: 10px; color: var(--text-3); margin-top: 1px; }
.pr-check { flex: 0 0 auto; color: var(--brand); font-size: 13px; }
.sheet-sep {
  font-size: 9.5px; color: var(--text-3); letter-spacing: .8px;
  padding: 14px 18px 8px;
}

/* 底部抽屉：操作列表 */
.act-list { padding: 0 12px; }
.act-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: 13px; cursor: pointer; margin-bottom: 5px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.act-row:active { background: var(--surface-2); }
.act-row .ai {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--ink),.05); color: var(--text-2);
}
.act-row .ai svg { width: 17px; height: 17px; }
.act-row .ai.tone-amber { background: rgba(232,184,75,.12); color: var(--brand); }
.act-row .ai.tone-ai { background: rgba(124,107,255,.14); color: var(--ai-2); }
.act-row .ai.tone-teal { background: rgba(63,191,192,.13); color: #3FBFC0; }
.act-row b { display: block; font-size: 13px; font-weight: 600; }
.act-row small { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.act-row .grow { min-width: 0; }
.act-row.off { opacity: .78; }
.act-row.off b { color: var(--text-2); }
.act-lock {
  margin-left: 6px; font-style: normal; font-size: 8.5px; padding: 0 4px;
  border-radius: 4px; color: var(--brand); background: rgba(232,184,75,.14);
  vertical-align: 1px;
}
.act-left { font-size: 9.5px; color: var(--text-3); flex: 0 0 auto; }
.act-lk { color: var(--text-3); display: flex; flex: 0 0 auto; }
.act-lk svg { width: 13px; height: 13px; }
.ea-upsell {
  margin: 0 12px 10px; padding: 11px 12px; border-radius: 13px; cursor: pointer;
  background: rgba(232,184,75,.07); border: 1px solid rgba(232,184,75,.22);
}
.ea-upsell b { display: block; font-size: 12px; font-weight: 620; color: var(--text); }
.ea-upsell small { display: block; font-size: 9.5px; color: var(--text-3); margin-top: 3px; line-height: 1.5; }
.ea-upsell span { display: flex; align-items: center; gap: 2px; font-size: 10.5px; color: var(--brand); margin-top: 6px; }
.ea-upsell svg { width: 11px; height: 11px; }
.sheet-foot-note {
  text-align: center; font-size: 9.5px; color: var(--text-3); padding: 4px 16px 2px;
}

/* EA JSON */
.ea-json {
  width: 100%; height: 200px; padding: 10px; border-radius: 10px;
  font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; line-height: 1.5;
  color: #c8d2e0; background: rgba(0,0,0,.35); border: 1px solid var(--line-soft);
  resize: vertical;
}

/* 6 个标签后收紧 */
.tabbar .tab { font-size: 9.5px; gap: 2px; }
.tabbar .tab svg { width: 20px; height: 20px; }

/* ===== 微调：抽屉行高与单结果分段 ===== */
.pick-row { padding: 9px 12px; min-height: 44px; }
.pick-list.two .pick-row { min-height: 52px; }
.seg-single { padding-top: 12px; }

/* 条件控件略放大，手指更好点 */
.erl-sel, .erl-num, .erl-kind { height: 34px; }
.erl-op { flex: 0 0 88px; }
.erl-kind { flex: 0 0 60px; width: 60px; }

/* 头部标题上的改名小标 */
.h-edit {
  font-size: 9px; font-weight: 500; color: var(--text-3); margin-left: 7px;
  padding: 1px 6px; border-radius: 5px; background: rgba(var(--ink),.05);
  vertical-align: 2px; letter-spacing: .3px;
}

/* ===== 自选工具条 ===== */
.watch-toolbar {
  display: flex; gap: 8px; padding: 12px 16px 10px; align-items: center;
}
.wt-add {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; border-radius: 13px; cursor: pointer;
  background: linear-gradient(160deg, rgba(232,184,75,.14), rgba(232,184,75,.05));
  border: 1px solid rgba(232,184,75,.32); color: var(--brand);
  font-size: 13px; font-weight: 600; font-family: inherit;
}
.wt-add svg { width: 15px; height: 15px; }
.wt-add:active { background: rgba(232,184,75,.2); }
.wt-edit {
  flex: 0 0 68px; height: 40px; border-radius: 13px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; font-family: inherit;
}
.wt-edit.on { color: var(--brand); border-color: rgba(232,184,75,.4); background: rgba(232,184,75,.1); }
.quote-row.editing { opacity: .96; }
.q-del {
  flex: 0 0 30px; width: 30px; height: 30px; margin-right: 8px; border-radius: 10px;
  background: rgba(245,72,95,.12); border: 1px solid rgba(245,72,95,.3);
  color: #F2788C; font-size: 19px; line-height: 1; cursor: pointer; font-weight: 600;
}
.q-del:active { background: rgba(245,72,95,.22); }

/* 添加品种抽屉 */
.ws-search, #ws-q { margin-bottom: 2px; }
.ws-add-tag {
  flex: 0 0 auto; font-size: 11px; color: var(--brand); font-weight: 600;
  padding: 3px 9px; border-radius: 7px; background: rgba(232,184,75,.1);
  border: 1px solid rgba(232,184,75,.25);
}
.ws-count {
  text-align: center; font-size: 11px; color: var(--text-3);
  padding: 10px 0 6px; letter-spacing: .4px;
}

/* ===== 风格自定义 ===== */
.sc-usr {
  font-style: normal; font-size: 8px; font-weight: 600; margin-left: 4px;
  padding: 1px 4px; border-radius: 4px; vertical-align: 1px; white-space: nowrap;
  background: rgba(124,107,255,.16); color: #A78BFF; letter-spacing: .3px;
}
.sc-edit {
  position: absolute; right: 7px; bottom: 7px; width: 24px; height: 24px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-3); display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.sc-edit svg { width: 12px; height: 12px; }
.sc-edit:active { color: var(--brand); border-color: rgba(232,184,75,.4); }
.style-card { padding-bottom: 34px; }
/* 自定义风格：单独占满一整行，不再留半块空白 */
.style-card-new {
  grid-column: 1 / -1;
  display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
  gap: 11px; border-style: dashed; text-align: left; padding: 12px 14px;
}
.sc-new-body { flex: 1; min-width: 0; }
.sc-new-go { color: var(--text-3); display: flex; flex: 0 0 auto; }
.sc-new-go svg { width: 15px; height: 15px; }
.sc-new-ic {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; color: #A78BFF;
  background: rgba(124,107,255,.12); display: flex; align-items: center; justify-content: center;
}
.sc-new-ic svg { width: 16px; height: 16px; }
.sc-new-t { font-size: 12.5px; font-weight: 650; color: var(--text); }
.sc-new-d { font-size: 9.5px; color: var(--text-3); line-height: 1.45; margin-top: 2px; }
.sn-edit {
  margin-left: auto; font-size: 10px; color: var(--brand); cursor: pointer;
  background: rgba(232,184,75,.1); border: 1px solid rgba(232,184,75,.25);
  padding: 3px 9px; border-radius: 7px; font-family: inherit;
}
.mini-btn {
  font-size: 10.5px; padding: 4px 9px; border-radius: 8px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-2); font-family: inherit; margin-left: 6px;
}
.mini-btn:active { color: var(--brand); border-color: rgba(232,184,75,.4); }

/* ===== 图表缩放控件 ===== */
.chart-tools {
  position: absolute; right: 58px; bottom: 30px;
  display: flex; flex-direction: column; gap: 5px; z-index: 3;
}
.ct-btn {
  width: 30px; height: 30px; border-radius: 9px; font-size: 15px; line-height: 1;
  background: rgba(20,25,34,.78); border: 1px solid rgba(var(--ink),.1);
  color: var(--text-2); backdrop-filter: blur(6px); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ct-btn:active { background: rgba(40,48,62,.9); color: var(--text); }
.ct-reset { font-size: 13px; }

/* ===== AI 交易分栏 ===== */
.seg-tabs.an-seg { margin-top: 10px; }
.seg-tabs .seg i {
  font-style: normal; font-size: 9px; margin-left: 4px; opacity: 1;
  background: rgba(var(--ink),.1); color: var(--text-2);
  padding: 0 4px; border-radius: 999px; font-weight: 700;
}

/* ===== 发现 · 交易圈 ===== */
.composer {
  margin: 12px 16px 0; padding: 11px 12px 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.composer-input {
  width: 100%; min-height: 62px; resize: vertical; padding: 0;
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; line-height: 1.6; font-family: inherit;
}
.composer-input::placeholder { color: var(--text-3); }
.composer-bar {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  padding-top: 9px; border-top: 1px solid var(--line-soft);
}
.cb-chip {
  flex: 0 0 auto; font-size: 11px; padding: 5px 10px; border-radius: 8px;
  background: rgba(var(--ink),.05); border: 1px solid var(--line-soft);
  color: var(--text-2); cursor: pointer; font-family: inherit;
}
.cb-chip.on { color: var(--brand); border-color: rgba(232,184,75,.4); background: rgba(232,184,75,.09); }
.dir-mini { display: flex; gap: 4px; flex: 1; }
.dm {
  font-size: 11px; padding: 4px 8px; border-radius: 7px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-soft); color: var(--text-3);
  font-family: inherit;
}
.dm.on { color: var(--text); background: rgba(255,255,255,.07); border-color: var(--line); }

.feed-meta {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px 6px;
  font-size: 10.5px; color: var(--text-3);
}
.live-dot-inline {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: #3FBFC0; margin-right: 5px; vertical-align: 1px;
}

.post {
  margin: 0 16px 10px; padding: 13px 13px 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.post-head { display: flex; align-items: center; gap: 9px; }
.post-av {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 650;
}
.post-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.me-tag {
  font-style: normal; font-size: 9px; padding: 0 4px; border-radius: 4px;
  background: rgba(232,184,75,.16); color: var(--brand);
}
.post-sub { font-size: 10px; color: var(--text-3); margin-top: 1px; }
.post-sym {
  flex: 0 0 auto; display: flex; align-items: center; gap: 4px;
  font-size: 10.5px; padding: 4px 8px; border-radius: 7px;
  background: rgba(var(--ink),.05); border: 1px solid var(--line-soft);
  color: var(--text-2); cursor: pointer; font-family: inherit;
}
.post-sym b { font-size: 9.5px; font-weight: 500; }
.post-text {
  margin: 10px 0 0; font-size: 13px; line-height: 1.68; color: var(--text);
  white-space: pre-wrap; word-break: break-word;
}
.post-replies {
  margin-top: 9px; padding: 8px 10px; border-radius: 10px;
  background: rgba(var(--ink),.03);
}
.pr-row { font-size: 11.5px; line-height: 1.6; color: var(--text-2); }
.pr-row b { color: var(--text-3); font-weight: 500; margin-right: 5px; }
.post-acts {
  display: flex; align-items: center; gap: 16px; margin-top: 10px;
  padding-top: 8px; border-top: 1px solid var(--line-soft);
}
.pa {
  display: flex; align-items: center; gap: 5px; font-size: 11px;
  background: none; border: none; color: var(--text-3); cursor: pointer;
  font-family: inherit; padding: 0;
}
.pa svg { width: 14px; height: 14px; }
.pa.on { color: #F2788C; }
.pa.on svg { fill: rgba(242,120,140,.18); }
.pa-ts { margin-left: auto; font-size: 9.5px; color: var(--text-3); }

/* ===== 研学社 ===== */
.aca-list { padding: 4px 16px 0; }
.aca-card {
  padding: 13px 13px 11px; margin-bottom: 9px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
}
.aca-card:active { background: var(--surface-2); }
.aca-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.aca-cat { font-size: 9.5px; letter-spacing: .5px; font-weight: 600; }
.aca-min { font-size: 9.5px; color: var(--text-3); }
.aca-card b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.45; }
.aca-card p {
  margin: 5px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.aca-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px; font-size: 10px; color: var(--text-3);
}
.aca-foot span { color: var(--brand); }
.article-body { padding: 4px 18px 0; max-height: 56vh; overflow: auto; }
.article-body p { margin: 0 0 12px; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.sheet-pad { padding: 0 12px 8px; }

/* ===== 排行榜 ===== */
.rank-hero {
  margin: 12px 16px 4px; padding: 16px; border-radius: 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232,184,75,.16) 0%, transparent 60%),
    linear-gradient(160deg, #1A1F2B 0%, #141821 100%);
  border: 1px solid rgba(232,184,75,.16);
}
.rk-k { font-size: 9.5px; letter-spacing: 1.4px; color: var(--brand); font-weight: 700; }
.rk-val { font-size: 21px; font-weight: 700; margin: 6px 0 3px; }
.rk-sub { font-size: 11px; color: var(--text-3); }
.rank-list { padding: 8px 16px 0; }
.rank-row {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 7px;
}
.rank-row.me { border-color: rgba(232,184,75,.4); background: rgba(232,184,75,.06); }
.rk-no {
  flex: 0 0 20px; text-align: center; font-size: 12px; font-weight: 700;
  color: var(--text-3); font-variant-numeric: tabular-nums;
}
.rk-no.top1 { color: #E8B84B; }
.rk-no.top2 { color: #C9D2E0; }
.rk-no.top3 { color: #D9A05B; }
.rk-av {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650;
}
.rk-name { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.rk-sub2 { font-size: 9.5px; color: var(--text-3); margin-top: 1px; }
.rk-num { text-align: right; }
.rk-num b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.rk-num span { font-size: 9px; color: var(--text-3); }

/* ===== 邀请 ===== */
.inv-hero {
  margin: 14px 16px 0; padding: 18px 16px 16px; border-radius: 20px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(232,184,75,.18) 0%, transparent 55%),
    linear-gradient(160deg, #1A1F2B 0%, #141821 100%);
  border: 1px solid rgba(232,184,75,.18);
}
.inv-k { font-size: 9px; letter-spacing: 2.2px; color: var(--brand); font-weight: 700; }
.inv-big { font-size: 19px; font-weight: 700; line-height: 1.45; margin: 8px 0 7px; }
.inv-big b { color: var(--brand); font-size: 22px; }
.inv-sub { font-size: 11.5px; color: var(--text-2); line-height: 1.65; }
.inv-code-card { margin: 12px 16px 0; text-align: center; padding: 16px 14px 13px; }
.ic-label { font-size: 10px; color: var(--text-3); letter-spacing: .6px; }
.ic-code {
  font-size: 26px; font-weight: 700; letter-spacing: 4px; margin: 6px 0 12px;
  color: var(--brand); font-family: ui-monospace, Consolas, monospace;
}
.ic-acts { display: flex; gap: 7px; }
.ic-acts .btn { flex: 1; padding: 8px 6px; font-size: 11.5px; }
.ic-link {
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line-soft);
  font-size: 10px; color: var(--text-3); word-break: break-all; line-height: 1.5;
}
.inv-stats {
  display: flex; margin: 12px 16px 0; padding: 13px 0;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.inv-stats > div { flex: 1; text-align: center; }
.inv-stats b { display: block; font-size: 16px; font-weight: 700; }
.inv-stats span { font-size: 10px; color: var(--text-3); }
.inv-list { padding: 0 16px; }
.inv-row {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px;
  border-radius: 13px; background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 7px;
}
.ir-av {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,184,75,.12); color: var(--brand); font-size: 12px; font-weight: 650;
}
.inv-row b { display: block; font-size: 12px; font-weight: 600; }
.inv-row small { font-size: 9.5px; color: var(--text-3); }
.ir-day { font-size: 11.5px; font-weight: 600; color: var(--brand); }
.inv-rules { padding: 0 16px; }
.inv-rules > div {
  display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line-soft);
}
.inv-rules b {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; background: rgba(232,184,75,.14); color: var(--brand);
}
.inv-rules span { font-size: 11.5px; line-height: 1.65; color: var(--text-2); }

/* 发现页顶部邀请入口 */
.inv-banner {
  display: flex; align-items: center; gap: 9px;
  margin: 12px 16px 0; padding: 10px 12px; border-radius: 13px;
  background: linear-gradient(90deg, rgba(232,184,75,.12), rgba(232,184,75,.035));
  border: 1px solid rgba(232,184,75,.22);
  color: var(--text-2); font-size: 11.5px; font-family: inherit;
  cursor: pointer; text-align: left; width: calc(100% - 32px);
}
.inv-banner:active { background: rgba(232,184,75,.16); }
.inv-banner b { color: var(--brand); font-weight: 600; }
.ib-ico { color: var(--brand); display: flex; }
.ib-ico svg { width: 16px; height: 16px; }
.ib-go { color: var(--brand); flex: 0 0 auto; font-size: 11px; }

/* ===== 行情页：自选 / 财经日历 ===== */
.seg-tabs.mkt-seg { margin: 10px 16px 2px; }

.eco-strip {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 16px 0; padding: 9px 12px; width: calc(100% - 32px);
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); font-size: 11.5px; font-family: inherit; cursor: pointer; text-align: left;
}
.eco-strip.soon { border-color: rgba(232,184,75,.34); background: rgba(232,184,75,.07); }
.eco-strip b { font-size: 9.5px; color: var(--text-3); font-weight: 550; margin-left: 5px; }
.es-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.es-dot.high { background: var(--up); box-shadow: 0 0 0 3px rgba(245,72,95,.14); }
.es-dot.medium { background: var(--brand); }
.es-time { color: var(--text); font-weight: 600; }
.es-go { flex: 0 0 auto; color: var(--brand); font-size: 10.5px; }

.eco-head {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 16px 0; padding: 12px 13px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.eh-k { font-size: 12.5px; font-weight: 650; }
.eh-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }

.eco-day { margin: 12px 16px 0; }
.eco-day-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 2px 6px; font-size: 10.5px; color: var(--text-3);
}
.eco-day-head b { font-size: 12px; font-weight: 600; color: var(--text-2); }
.eco-day.today .eco-day-head b { color: var(--brand); }

.eco-row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 11px; margin-bottom: 6px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-left: 2px solid var(--line);
}
.eco-row.high { border-left-color: var(--up); }
.eco-row.medium { border-left-color: var(--brand); }
.eco-row.low, .eco-row.holiday { opacity: .82; }
.eco-row.past { opacity: .45; }
.eco-time { flex: 0 0 38px; font-size: 11.5px; font-weight: 600; color: var(--text-2); padding-top: 1px; }
.eco-dot { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; margin-top: 7px; background: var(--text-3); }
.eco-dot.high { background: var(--up); }
.eco-dot.medium { background: var(--brand); }
.eco-main { flex: 1; min-width: 0; }
.eco-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 560; line-height: 1.45; }
.eco-ccy {
  flex: 0 0 auto; font-size: 9px; font-weight: 600; letter-spacing: .4px;
  padding: 0 4px; border-radius: 4px; background: rgba(var(--ink),.06); color: var(--text-3);
}
.eco-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; line-height: 1.5; word-break: break-word; }

/* ===== 交易圈：关注 / 收藏 / 分享 ===== */
.post-acts { gap: 12px; }
.pa span { font-size: 10.5px; }
.pa.on-fav { color: var(--brand); }
.pa.on-fav svg { fill: rgba(232,184,75,.2); }
.post-av {
  padding: 0; border: 0; font-family: inherit; cursor: pointer;
}
.post-name { cursor: pointer; }
.post-tags { display: flex; gap: 6px; margin-top: 9px; }
.pf-follow {
  flex: 0 0 auto; font-size: 10.5px; font-family: inherit; cursor: pointer;
  padding: 4px 10px; border-radius: 8px; white-space: nowrap;
  background: rgba(232,184,75,.12); border: 1px solid rgba(232,184,75,.32); color: var(--brand);
}
.pf-follow.on { background: transparent; border-color: var(--line); color: var(--text-3); }
.post-acts .pf-follow { margin-left: auto; }
.fm-fav {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 10.5px; color: var(--brand);
}
.fm-fav svg { width: 12px; height: 12px; }

/* ===== 研学社：卡片互动 ===== */
.aca-body { cursor: pointer; }
.aca-foot { gap: 8px; }
.aca-author {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 10px; color: var(--text-3);
  max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aca-acts { display: flex; align-items: center; gap: 13px; }
.aca-acts .pa { gap: 4px; font-size: 10px; }
.aca-acts .pa svg { width: 13px; height: 13px; }
.aca-foot .pa span { color: var(--text-3); }
.aca-foot .pa.on span { color: #F2788C; }
.aca-foot .pa.on-fav span, .aca-foot .pa.on-fav { color: var(--brand); }
.aca-foot .pa.on-fav svg { fill: rgba(232,184,75,.2); }

/* ===== 排行榜跳转 ===== */
.rk-go { flex: 0 0 auto; display: flex; color: var(--text-3); }
.rk-go svg { width: 13px; height: 13px; }

/* ===== 抽屉：帖子 / 文章 / 主页 ===== */
.sheet-post {
  margin: 0 16px; padding: 12px 13px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.sheet-post .post-acts { border-top: 1px solid var(--line-soft); }
.cmt-list { padding: 0 16px; max-height: 32vh; overflow: auto; }
.cmt-row { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.cmt-row:last-child { border-bottom: 0; }
.cmt-av {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-2); font-size: 11px; font-weight: 600;
}
.cmt-row b { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.cmt-row span { display: block; font-size: 12px; line-height: 1.65; color: var(--text); word-break: break-word; }
.cmt-row small { font-size: 9.5px; color: var(--text-3); }
.aca-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 16px 10px; font-size: 10.5px; color: var(--text-3);
}
.article-acts {
  display: flex; align-items: center; gap: 16px;
  margin: 6px 16px 8px; padding-top: 8px; border-top: 1px solid var(--line-soft);
}

/* ===== 交易者主页 ===== */
.tr-hero {
  margin: 0 16px; padding: 14px; border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232,184,75,.14) 0%, transparent 60%),
    linear-gradient(160deg, #1A1F2B 0%, #141821 100%);
  border: 1px solid rgba(232,184,75,.16);
}
.tr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tr-k { display: block; font-size: 10px; letter-spacing: .5px; color: var(--text-3); }
.tr-ret { display: block; font-size: 24px; font-weight: 700; margin-top: 2px; letter-spacing: -.5px; }
.tr-tiles { display: flex; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(var(--ink),.07); }
.tr-tiles > div { flex: 1; text-align: center; }
.tr-tiles b { display: block; font-size: 13.5px; font-weight: 650; }
.tr-tiles span { font-size: 9.5px; color: var(--text-3); }
.tr-block {
  margin: 12px 16px 0; padding: 12px 13px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.tr-block-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 10.5px; color: var(--text-3); }
.tr-block-head b { font-size: 12px; font-weight: 600; color: var(--text); }
.tr-curve { display: block; width: 100%; height: 78px; margin-top: 8px; }
.tr-months { display: flex; align-items: flex-end; gap: 8px; height: 96px; margin-top: 10px; }
.tr-m { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.tr-m i { display: block; width: 100%; max-width: 26px; border-radius: 4px 4px 2px 2px; }
.tr-m i.up { background: linear-gradient(180deg, rgba(245,72,95,.92), rgba(245,72,95,.32)); }
.tr-m i.down { background: linear-gradient(180deg, rgba(20,192,140,.92), rgba(20,192,140,.32)); }
.tr-m b { font-size: 10px; }
.tr-m span { font-size: 9px; color: var(--text-3); }
.tr-trades { padding: 0 16px; }
.tr-trade {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; margin-bottom: 6px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line-soft); font-size: 11.5px;
}
.tr-trade .muted { margin-left: auto; font-size: 9.5px; }
.tr-side { font-size: 9.5px; padding: 0 5px; border-radius: 4px; background: rgba(var(--ink),.06); }
.tr-trade b { font-weight: 600; }
.tr-editor { font-size: 12px; line-height: 1.7; color: var(--text-2); }

/* ===== 我的收藏 ===== */
.fav-row { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.fav-row:active { background: var(--surface); }
.fav-row b { display: block; font-size: 12.5px; font-weight: 600; }
.fav-row span { font-size: 11px; color: var(--text-3); line-height: 1.6; }
.eco-hint {
  margin: 6px 16px 0; padding: 8px 11px; border-radius: 10px;
  background: rgba(232,184,75,.07); border: 1px dashed rgba(232,184,75,.24);
  font-size: 10.5px; color: var(--brand);
}
.eco-row.past { opacity: .58; }
.eco-past {
  display: inline-block; font-style: normal; margin-right: 5px;
  font-size: 9px; color: var(--text-3); border: 1px solid var(--line);
  border-radius: 4px; padding: 0 3px; vertical-align: 1px;
}
.aca-card .aca-author { max-width: 34%; }
.aca-follow {
  flex: 0 0 auto; font-family: inherit; cursor: pointer; white-space: nowrap;
  font-size: 9.5px; padding: 2px 6px; border-radius: 6px;
  background: rgba(232,184,75,.12); border: 1px solid rgba(232,184,75,.3); color: var(--brand);
}

/* ===== 财经日历：表格式 + 筛选 ===== */
.eco-filters { margin: 10px 16px 0; }
.eco-frow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ef {
  font-family: inherit; cursor: pointer; padding: 5px 11px; border-radius: 9px;
  font-size: 11.5px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
}
.ef.on { color: #0B0E13; background: var(--brand); border-color: var(--brand); font-weight: 620; }
.ef-sep { width: 1px; height: 14px; background: var(--line); margin: 0 3px; }
.eco-ccys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-bottom: 2px; }
.ccy {
  flex: 0 0 auto; font-family: inherit; cursor: pointer; white-space: nowrap;
  padding: 4px 9px; border-radius: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .3px;
  color: var(--text-3); background: transparent; border: 1px solid var(--line-soft);
}
.ccy.on { color: var(--brand); border-color: rgba(232,184,75,.45); background: rgba(232,184,75,.1); }
.ccy i {
  font-style: normal; margin-left: 4px; padding: 0 3px; border-radius: 3px;
  font-size: 9px; background: rgba(245,72,95,.16); color: var(--up);
}

.eco-table {
  border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.et-head, .et-row {
  display: grid;
  grid-template-columns: 52px 30px minmax(0, 1fr) 76px;
  align-items: center; gap: 6px; text-align: left;
}
.et-head {
  padding: 7px 10px; font-size: 9.5px; letter-spacing: .3px; color: var(--text-3);
  background: rgba(var(--ink),.03); border-bottom: 1px solid var(--line-soft);
}
.et-row {
  width: 100%; font-family: inherit; cursor: pointer;
  padding: 9px 10px; border: 0; border-bottom: 1px solid var(--line-soft);
  background: transparent; color: var(--text);
  border-left: 2px solid transparent;
}
.et-row:last-child { border-bottom: 0; }
.et-row.high { border-left-color: var(--up); }
.et-row.medium { border-left-color: var(--brand); }
.et-row.past { opacity: .5; }
.et-row:active { background: rgba(var(--ink),.04); }
.et-time { font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.et-ccy b {
  font-size: 9.5px; font-weight: 650; letter-spacing: .3px;
  padding: 1px 4px; border-radius: 4px; background: rgba(var(--ink),.06); color: var(--text-2);
}
.et-name { min-width: 0; }
.et-name b {
  display: block; font-size: 12px; font-weight: 560; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.et-name small {
  display: block; font-size: 9.5px; color: var(--text-3); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.imp {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  margin-left: 5px; vertical-align: 2px; background: var(--text-3);
}
.imp.high { background: var(--up); box-shadow: 0 0 0 3px rgba(245,72,95,.14); }
.imp.medium { background: var(--brand); }
.et-val { font-size: 11px; text-align: right; color: var(--text-2); }

/* ---------- 财经日历：周视图 ---------- */
.cal-head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px 8px;
}
.cal-nav {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
}
.cal-nav svg { width: 14px; height: 14px; }
.cal-nav.next svg { transform: rotate(180deg); }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-title { flex: 1; min-width: 0; text-align: center; }
.cal-title b { display: block; font-size: 13.5px; font-weight: 640; }
.cal-title b span { font-weight: 400; font-size: 10.5px; color: var(--text-3); margin-left: 4px; }
.cal-title small { display: block; font-size: 9.5px; color: var(--text-3); margin-top: 1px; }

.cal-week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
  margin: 0 16px 10px;
}
.cw-day {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 0 7px; border-radius: 10px; cursor: pointer; font-family: inherit;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.cw-day:focus, .cw-day:focus-visible { outline: none; }
.cw-day .cw-wd { font-size: 8.5px; color: var(--text-3); line-height: 1.2; }
.cw-day b { font-size: 13px; font-weight: 640; line-height: 1.15; }
.cw-day.past { opacity: .55; }
.cw-day.today { border-color: rgba(232,184,75,.42); background: rgba(232,184,75,.08); }
.cw-day.today b { color: var(--brand); }
.cw-day.on { border-color: var(--brand); }
.cw-dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; margin-top: 1px; }
.cw-dot.low { background: var(--text-3); opacity: .55; }
.cw-dot.high { background: var(--up); }

.cal-day { margin: 0 16px 12px; }
.cal-day-head { display: flex; align-items: baseline; gap: 6px; padding: 0 2px 6px; }
.cal-day-head b { font-size: 12px; font-weight: 620; color: var(--text-2); }
.cal-day.today .cal-day-head b { color: var(--brand); }
.cdh-date { font-size: 9.5px; color: var(--text-3); }
.cal-day-head i { margin-left: auto; font-size: 9.5px; font-style: normal; color: var(--text-3); }

.stars { display: block; font-style: normal; font-size: 9px; letter-spacing: -.8px; margin-top: 2px; }
.stars.s3, .stars-big.s3 { color: var(--up); }
.stars.s2, .stars-big.s2 { color: var(--brand); }
.stars.s1, .stars-big.s1 { color: var(--text-3); }
.stars-big { font-style: normal; letter-spacing: 0; }
.et-val b { display: block; font-size: 11px; font-weight: 600; }
.et-val small { display: block; font-size: 9px; color: var(--text-3); }

.cal-acts { padding: 2px 16px 8px; }
.cal-acts .btn { display: flex; align-items: center; justify-content: center; gap: 6px; }
.cal-acts .btn svg { width: 14px; height: 14px; }
.cal-acts-sub { text-align: center; font-size: 9.5px; color: var(--text-3); margin-top: 6px; line-height: 1.4; }

/* ---------- 分享面板 ---------- */
.sh-card {
  margin: 0 16px 12px; padding: 12px 13px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.sh-tag {
  font-size: 9px; letter-spacing: .4px; color: var(--brand);
  text-transform: uppercase;
}
.sh-title { font-size: 13.5px; font-weight: 640; margin-top: 4px; line-height: 1.4; }
.sh-text {
  font-size: 11px; color: var(--text-2); line-height: 1.55; margin-top: 5px;
  white-space: pre-wrap; word-break: break-word;
  max-height: 116px; overflow: hidden;
}
.sh-link {
  margin-top: 8px; font-size: 9.5px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sh-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 2px;
  padding: 2px 10px 10px;
}
.sh-ch {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
  font-size: 9.5px; color: var(--text-2); padding: 2px 0;
}
.sh-ch:active .sh-ic { transform: scale(.94); }
.sh-ic {
  width: 42px; height: 42px; border-radius: 13px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.24); transition: transform .14s;
}
.sh-ic svg { width: 22px; height: 22px; }
.sh-note {
  margin: 0 16px 12px; font-size: 9.5px; line-height: 1.6; color: var(--text-3);
  padding: 9px 11px; border-radius: 10px; background: rgba(var(--ink),.03);
}
.sh-poster-btn {
  display: flex; align-items: center; gap: 11px; width: calc(100% - 32px);
  margin: 0 16px 12px; padding: 11px 12px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(120deg, rgba(232,184,75,.16), rgba(232,184,75,.04));
  border: 1px solid rgba(232,184,75,.34); color: var(--text);
  font-family: inherit; text-align: left;
}
.sh-poster-btn:active { transform: scale(.99); }
.sh-poster-btn .spb-ic {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #14171F;
}
.sh-poster-btn .spb-ic svg { width: 18px; height: 18px; }
.sh-poster-btn .spb-t { flex: 1; min-width: 0; display: block; }
.sh-poster-btn .spb-t b { display: block; font-size: 12.5px; font-weight: 640; }
.sh-poster-btn .spb-t small { display: block; font-size: 9.5px; color: var(--text-3); margin-top: 2px; line-height: 1.4; }
.sh-poster-btn > svg { width: 15px; height: 15px; color: var(--text-3); flex: 0 0 auto; }
.sh-poster {
  margin: 0 16px 10px; border-radius: 16px; overflow: hidden;
  background: #0B0E13; border: 1px solid var(--line); line-height: 0;
}
.sh-poster img { width: 100%; height: auto; display: block; }
.sh-poster-tip {
  margin: 0 16px 12px; font-size: 9.5px; color: var(--text-3); text-align: center;
}
/* 事件详情抽屉 */
.ce-body { padding: 0 16px; }
.ce-tiles { display: flex; gap: 8px; }
.ce-tiles > div {
  flex: 1; padding: 10px; border-radius: 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
}
.ce-tiles span { display: block; font-size: 9.5px; color: var(--text-3); }
.ce-tiles b { display: block; font-size: 14px; font-weight: 650; margin-top: 3px; }
.ce-tiles small { display: block; font-size: 9px; color: var(--text-3); margin-top: 2px; }
.ce-vals {
  display: flex; margin-top: 10px; padding: 11px 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.ce-vals > div { flex: 1; text-align: center; }
.ce-vals span { display: block; font-size: 9.5px; color: var(--text-3); }
.ce-vals b { display: block; font-size: 13px; margin-top: 3px; }
.ce-note {
  margin-top: 10px; padding: 9px 11px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-soft);
  font-size: 11px; line-height: 1.7; color: var(--text-2);
}
.ce-link { margin-top: 10px; font-size: 11.5px; }
.ce-link a { color: var(--brand); text-decoration: none; }

/* ===== AI 交易：模型选择 ===== */
.mx-bar { display: flex; align-items: center; gap: 6px; margin: 0 16px 8px; }
.mx-f {
  font-family: inherit; cursor: pointer; padding: 4px 10px; border-radius: 8px;
  font-size: 11px; color: var(--text-3); background: transparent; border: 1px solid var(--line-soft);
}
.mx-f.on { color: var(--brand); border-color: rgba(232,184,75,.4); background: rgba(232,184,75,.1); }
.mx-eng { margin-left: auto; font-size: 10px; color: var(--text-3); }
.mx-local {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 32px);
  margin: 0 16px 10px; padding: 10px 12px; border-radius: 13px; cursor: pointer;
  font-family: inherit; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
}
.mx-local.on { border-color: rgba(232,184,75,.4); background: rgba(232,184,75,.06); }
.mxl-t { flex: 1; min-width: 0; }
.mxl-t b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.mxl-t small { font-size: 10px; color: var(--text-3); }
.mx-label {
  display: flex; align-items: center; gap: 6px; margin: 12px 16px 6px;
  font-size: 10.5px; letter-spacing: .4px; color: var(--text-3);
}
.mx-label span { font-size: 9.5px; padding: 0 4px; border-radius: 4px; background: rgba(var(--ink),.05); }
.mx-need {
  margin-left: auto; font-size: 9px; font-style: normal; padding: 1px 5px; border-radius: 5px;
  color: var(--brand); background: rgba(232,184,75,.12); border: 1px solid rgba(232,184,75,.22);
}
/* 一行三列：国内一行、海外一行 */
.mx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 16px; }
.mx-card {
  display: flex; flex-direction: column; gap: 1px; cursor: pointer; text-align: left;
  padding: 9px 8px 8px; border-radius: 12px; font-family: inherit; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.mx-card.on { border-color: rgba(232,184,75,.5); background: rgba(232,184,75,.07); }
.mx-card.locked { opacity: .6; }
.mx-top { display: flex; align-items: center; gap: 6px; }
.mx-av {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.mx-name {
  font-size: 11.5px; font-weight: 640; line-height: 1.3; margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mx-lock { margin-left: auto; color: var(--text-3); display: flex; }
.mx-lock svg { width: 10px; height: 10px; }
.mx-vendor {
  font-size: 8.5px; color: var(--text-3); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mx-desc {
  font-size: 10px; color: var(--text-3); line-height: 1.45; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 29px;
}
.mx-state {
  align-self: flex-start; margin-top: 5px; padding: 1px 5px; border-radius: 5px;
  font-size: 8.5px; color: var(--text-3); background: rgba(var(--ink),.05); white-space: nowrap;
}
.mx-state.cur, .mx-local .mx-state.cur { color: var(--brand); background: rgba(232,184,75,.14); }
.mx-local .mx-state { flex: 0 0 auto; margin: 0; padding: 2px 7px; border-radius: 6px; font-size: 9.5px; }
.mx-gate {
  display: flex; align-items: center; gap: 10px; margin: 10px 16px 0; padding: 10px 12px;
  border-radius: 12px; cursor: pointer;
  background: rgba(232,184,75,.06); border: 1px solid rgba(232,184,75,.18);
}
.mx-gate .mg-t { flex: 1; min-width: 0; }
.mx-gate .mg-t b { display: block; font-size: 11.5px; color: var(--text); font-weight: 600; }
.mx-gate .mg-t small { display: block; font-size: 9.5px; color: var(--text-3); margin-top: 2px; line-height: 1.45; }
.mx-gate .mg-go { font-size: 10.5px; color: var(--brand); display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.mx-gate .mg-go svg { width: 11px; height: 11px; }

/* ===== 账户页：用户信息 + 会员 / 分享 / 奖励 ===== */
.au-card {
  margin: 12px 16px 0; padding: 14px; border-radius: 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232,184,75,.13) 0%, transparent 60%),
    linear-gradient(160deg, #1A1F2B 0%, #12161E 100%);
  border: 1px solid rgba(232,184,75,.16);
}
.au-top { display: flex; align-items: center; gap: 10px; }
.au-avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #0B0E13;
  background: linear-gradient(150deg, #F4CF78, #E8B84B);
}
.au-info { flex: 1; min-width: 0; }
.au-info b { display: block; font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-info small { font-size: 10px; color: var(--text-3); }
.au-plan {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 8px; font-size: 10.5px; font-weight: 600;
  color: var(--tint, var(--brand)); border: 1px solid color-mix(in srgb, var(--tint, #E8B84B) 40%, transparent);
  background: color-mix(in srgb, var(--tint, #E8B84B) 12%, transparent);
}
.au-plan.pro, .au-plan.elite { }
.au-member { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(var(--ink),.07); }
.aum-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; color: var(--text-3); }
.aum-row b { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.5px; }
.aum-row b i { font-style: normal; font-size: 11px; color: var(--text-3); font-weight: 500; }
.aum-bar { height: 5px; border-radius: 3px; background: rgba(var(--ink),.07); overflow: hidden; margin: 6px 0; }
.aum-bar i { display: block; height: 100%; border-radius: 3px; }
.aum-foot { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-3); }

.au-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.aud {
  display: flex; flex-direction: column; gap: 2px; cursor: pointer; text-align: left;
  padding: 10px 11px; border-radius: 13px; font-family: inherit; color: var(--text);
  background: rgba(var(--ink),.035); border: 1px solid var(--line);
}
.aud:active { background: rgba(var(--ink),.07); }
.aud-ic { display: flex; color: var(--text-2); }
.aud-ic svg { width: 15px; height: 15px; }
.aud-ic.brand { color: var(--brand); }
.aud b { font-size: 12px; font-weight: 600; }
.aud b em { font-style: normal; color: var(--brand); font-size: 10.5px; }
.aud small { font-size: 9.5px; color: var(--text-3); }

.au-acts { display: flex; gap: 6px; margin-top: 11px; }
.au-acts .btn { flex: 1; padding: 8px 6px; font-size: 11.5px; }
.au-plans { display: flex; gap: 8px; margin: 0 16px; }
.aup {
  flex: 1; display: flex; flex-direction: column; gap: 1px; cursor: pointer; text-align: left;
  padding: 9px 10px; border-radius: 12px; font-family: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
}
.aup.cur { border-color: color-mix(in srgb, var(--tint, #E8B84B) 55%, transparent); background: color-mix(in srgb, var(--tint, #E8B84B) 10%, transparent); }
.aup b { font-size: 11.5px; font-weight: 620; }
.aup span { font-size: 12px; color: var(--tint, var(--brand)); font-weight: 650; }
.aup small { font-size: 9px; color: var(--text-3); }

/* ===== 战绩本（他人） ===== */
.peer-hero {
  margin: 12px 16px 0; padding: 14px; border-radius: 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232,184,75,.12) 0%, transparent 60%),
    linear-gradient(160deg, #1A1F2B 0%, #141821 100%);
  border: 1px solid var(--line);
}
.ph-top { display: flex; align-items: center; gap: 10px; }
.ph-av {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.ph-top b { display: block; font-size: 14.5px; font-weight: 650; }
.ph-top small { display: block; font-size: 10px; color: var(--text-3); }
.ph-rank { flex: 0 0 auto; font-size: 10.5px; color: var(--brand); }
.ph-rank i { font-style: normal; color: var(--text-3); }
.ph-ret { margin-top: 12px; }
.ph-ret span { display: block; font-size: 10px; color: var(--text-3); }
.ph-ret b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.6px; margin-top: 1px; }
.ph-tiles { display: flex; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(var(--ink),.07); }
.ph-tiles > div { flex: 1; text-align: center; }
.ph-tiles b { display: block; font-size: 13.5px; font-weight: 650; }
.ph-tiles span { font-size: 9.5px; color: var(--text-3); }

.lock-pane {
  margin: 16px; padding: 26px 18px; border-radius: 16px; text-align: center;
  background: var(--surface); border: 1px dashed var(--line);
}
.lock-pane .lp-ic {
  width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--ink),.05); color: var(--text-3);
}
.lock-pane .lp-ic svg { width: 20px; height: 20px; }
.lock-pane b { display: block; font-size: 14px; font-weight: 650; }
.lock-pane p { font-size: 11.5px; color: var(--text-2); line-height: 1.7; margin: 6px 0 12px; }
.lock-pane ul {
  margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; text-align: left;
  background: rgba(var(--ink),.03); list-style: none;
}
.lock-pane li {
  position: relative; padding-left: 12px; margin-bottom: 6px;
  font-size: 11px; line-height: 1.65; color: var(--text-3);
}
.lock-pane li:last-child { margin-bottom: 0; }
.lock-pane li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--text-3);
}

/* ===== 策略：存储说明 / 四步 / 报错诊断 ===== */
.el-row { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.el-row:last-of-type { border-bottom: 0; }
.el-row i.ok {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 10px; font-weight: 700;
  background: rgba(232,184,75,.14); color: var(--brand);
}
.el-row b { display: block; font-size: 12px; font-weight: 600; }
.el-row small { display: block; font-size: 10.5px; color: var(--text-3); line-height: 1.6; margin-top: 1px; }

.es-item {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 0; border-bottom: 1px solid var(--line-soft);
}
.es-item:last-child { border-bottom: 0; }
.es-item > i {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 10px; font-weight: 700;
  background: rgba(var(--ink),.06); color: var(--text-2);
}
.es-item b { display: block; font-size: 12px; font-weight: 600; }
.es-item small { display: block; font-size: 10.5px; color: var(--text-3); line-height: 1.6; }
.es-item > div { flex: 1; min-width: 0; }
.es-item .mini-btn { flex: 0 0 auto; align-self: center; }

.ed-hint { font-size: 10.5px; color: var(--text-3); line-height: 1.65; margin-bottom: 8px; }
#ea-diag-text {
  width: 100%; box-sizing: border-box; resize: vertical;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.6;
}
.ed-result { margin-top: 10px; }
.ed-sum { display: flex; align-items: baseline; gap: 8px; font-size: 10.5px; color: var(--text-3); margin-bottom: 8px; }
.ed-sum b { font-size: 12.5px; }
.ed-ticket { margin-left: auto; font-family: ui-monospace, monospace; }
.ed-item {
  padding: 9px 11px; border-radius: 11px; margin-bottom: 7px;
  background: rgba(245,72,95,.05); border: 1px solid rgba(245,72,95,.18);
}
.ed-item.warning { background: rgba(232,184,75,.05); border-color: rgba(232,184,75,.2); }
.edi-head { display: flex; align-items: baseline; gap: 6px; }
.edi-head b { flex: 1; font-size: 12px; font-weight: 620; }
.edi-head i { font-style: normal; font-size: 9px; color: var(--text-3); }
.edi-row { display: flex; gap: 7px; margin-top: 6px; }
.edi-row span {
  flex: 0 0 26px; font-size: 9.5px; color: var(--text-3); padding-top: 2px;
}
.edi-row p { flex: 1; font-size: 11px; line-height: 1.7; color: var(--text-2); margin: 0; }
.ed-advice {
  padding: 9px 11px; border-radius: 10px; font-size: 11px; line-height: 1.7;
  color: var(--text-2); background: rgba(var(--ink),.03);
}
.lib-tag {
  font-style: normal; margin-left: 5px; padding: 0 4px; border-radius: 4px;
  font-size: 8.5px; font-weight: 600; color: var(--brand);
  background: rgba(232,184,75,.13); border: 1px solid rgba(232,184,75,.26);
}
.lib-tag.cloud { color: var(--text-3); background: rgba(255,255,255,.05); border-color: var(--line); }

/* ===== 已建立的自定义风格：横向占满一整行 ===== */
.style-card.style-card-own {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 11px;
  text-align: left; padding: 12px 13px;
}
.so-ic {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  background: color-mix(in srgb, var(--tint, #7C6BFF) 16%, transparent);
  color: var(--tint, #7C6BFF);
}
.so-body { flex: 1; min-width: 0; }
.so-top { display: flex; align-items: center; gap: 5px; }
.so-top b { font-size: 13.5px; font-weight: 660; }
.so-top .sc-risk { margin-left: auto; }
.so-sub {
  font-size: 10.5px; color: var(--text-3); margin-top: 3px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.so-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 9.5px; color: var(--text-3); margin-top: 4px; }
.style-card-own .sc-edit { position: static; flex: 0 0 auto; margin: 0; }
.style-card-own.active { border-color: var(--tint); }

/* ===== 行为内核 ===== */
.kc-del {
  font-style: normal; margin-left: 4px; opacity: .55; font-size: 12px; line-height: 1;
  padding: 0 1px; border-radius: 4px;
}
.kc-del:hover { opacity: 1; color: #F2788C; }
.se-kernel-note {
  margin-top: 6px; font-size: 10.5px; color: var(--text-3); line-height: 1.5;
  padding: 7px 10px; border-radius: 9px; background: var(--surface-2);
  border: 1px dashed var(--line-soft);
}

/* ===== 我的：个人资料卡 ===== */
.me-card {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 16px 0; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px;
  cursor: pointer; transition: .16s;
}
.me-card:active { transform: scale(.994); }
.me-av {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; line-height: 1;
  background: linear-gradient(140deg, rgba(232,184,75,.22), rgba(124,107,255,.18));
  border: 1px solid var(--line);
}
.me-info { flex: 1; min-width: 0; }
.me-name { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 680; }
.me-edit {
  font-size: 9.5px; font-weight: 600; color: var(--brand);
  background: rgba(232,184,75,.12); border: 1px solid rgba(232,184,75,.25);
  padding: 1px 6px; border-radius: 6px; font-style: normal;
}
.me-bio {
  font-size: 11px; color: var(--text-3); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.me-go { color: var(--text-3); display: flex; flex: 0 0 auto; }
.me-go svg { width: 15px; height: 15px; }

/* 头像选择 */
.pf-av-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.pf-big {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; line-height: 1;
  background: linear-gradient(140deg, rgba(232,184,75,.22), rgba(124,107,255,.18));
  border: 1px solid var(--line);
}
.pf-avs { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.pf-av {
  width: 32px; height: 32px; border-radius: 10px; font-size: 16px; line-height: 1;
  background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text-2);
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
  transition: .15s;
}
.pf-av:active { transform: scale(.94); }
.pf-av.on { border-color: var(--brand); background: rgba(232,184,75,.14); }
.pf-av-tx { width: auto; padding: 0 8px; font-size: 9.5px; font-weight: 600; }

/* 抽屉里的表单行：.ea-field 是 EA 参数用的紧凑横排（标签右贴小输入框），
   抽屉里需要的是「标签在上、输入框整行」，所以这里改成纵向布局 */
.sheet .sheet-row {
  display: block;
  margin-left: 16px; margin-right: 16px;
  padding: 9px 12px 11px;
}
.sheet .sheet-row > span { display: block; margin-bottom: 6px; }
.sheet .sheet-row input {
  width: 100%; flex: none; text-align: left;
  font-family: inherit; font-size: 13px; padding: 8px 10px; border-radius: 9px;
}
.sheet .sheet-row .chips { padding: 0; }

/* 我的：用户卡上的头像 / 昵称 / 简介 */
.au-avatar { cursor: pointer; }
.au-avatar.emoji {
  font-size: 23px; line-height: 1;
  background: linear-gradient(150deg, rgba(232,184,75,.34), rgba(124,107,255,.3));
  color: var(--text);
}
.au-info { cursor: pointer; }
.au-info b { display: flex; align-items: center; gap: 6px; }
.au-bio {
  margin-top: 10px; padding-top: 9px;
  border-top: 1px dashed rgba(var(--ink), .14);
  font-size: 11px; color: var(--text-3); line-height: 1.5; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 风格编辑器里的文本字段：默认 62px 是给 EA 数字参数用的，名称/标语/内核说明要能看全文 */
.ea-field input[data-act="se-name"],
.ea-field input[data-act="se-tagline"],
.ea-field input[data-act="se-approach"],
.ea-field input[data-act="se-approach-desc"],
.ea-field input[data-act="se-horizon"] {
  width: 64%; flex: 0 1 64%; text-align: left;
  font-family: inherit; font-size: 12.5px; padding: 6px 9px;
}

/* ---------- 信号详情抽屉（0.12：信号明细的行原来点了没反应） ---------- */
.sg-hero {
  display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 14px;
  border-radius: 14px; background: var(--grad-card); border: 1px solid var(--line-soft);
}
.sg-dir { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: rgba(var(--ink), .06); color: var(--text-2); }
.sg-dir.up { color: var(--up); background: rgba(245, 72, 95, .14); }
.sg-dir.down { color: var(--down); background: rgba(20, 192, 140, .14); }
.sg-px { flex: 1; min-width: 0; }
.sg-px span, .sg-pnl span { display: block; font-size: 10px; color: var(--text-3); margin-bottom: 3px; }
.sg-px b { font-size: 18px; font-weight: 700; letter-spacing: -.4px; color: var(--text); }
.sg-pnl { text-align: right; }
.sg-pnl b { font-size: 14px; font-weight: 700; color: var(--text-2); }
.sg-pnl.up b { color: var(--up); }
.sg-pnl.down b { color: var(--down); }
.sg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 10px 16px 0;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden;
}
.sg-kv { background: var(--surface); padding: 9px 6px 10px; text-align: center; }
.sg-kv > span { display: block; font-size: 9.5px; color: var(--text-3); margin-bottom: 4px; }
.sg-kv b { font-size: 12px; font-weight: 620; color: var(--text); font-variant-numeric: tabular-nums; }
.sg-why { margin: 12px 16px 0; }
.sg-why b { font-size: 11px; color: var(--text-2); }
.sg-why p { margin: 5px 0 0; font-size: 11.5px; line-height: 1.72; color: var(--text-2); }
.sg-meta { margin: 10px 16px 0; font-size: 10.5px; color: var(--text-3); line-height: 1.6; }

/* ---------- 研判结果页：三个后续动作并成一行三列（回测 / 设为信号 / 分享） ---------- */
.an-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 16px 0; }
.an-act {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 11px 10px 12px; border-radius: 14px; text-align: left;
  background: var(--grad-card); border: 1px solid var(--line-soft);
  transition: transform .12s ease, background .12s ease;
}
.an-act:active { transform: scale(.978); background: rgba(var(--ink), .04); }
.an-act .row-ic { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 8px; }
.an-act .row-ic svg { width: 16px; height: 16px; }
.an-act b { font-size: 12px; font-weight: 650; color: var(--text); letter-spacing: -.1px; }
.an-act small {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 4px; font-size: 9.5px; line-height: 1.5; color: var(--text-3);
}

/* ---------- 头像：上传的图片（0.12） ---------- */
.av-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.au-avatar.photo { padding: 0; overflow: hidden; background: none; }
.pf-big { overflow: hidden; }
.pf-big.has-photo { background: none; border-color: rgba(var(--ink), .16); padding: 0; }
.pf-hint {
  margin: 8px 16px 0; font-size: 10.5px; line-height: 1.6; color: var(--text-3);
}

/* 头像圆上的相机角标：点它上传图片 */
.pf-big { position: relative; cursor: pointer; }
.pf-big .pf-cam {
  position: absolute; right: -3px; bottom: -3px;
  width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #14100A;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 6px -3px rgba(0, 0, 0, .6);
}
.pf-big .pf-cam svg { width: 13px; height: 13px; stroke-width: 2; }
.pf-big:active { transform: scale(.96); }
/* 兜底：file input 一律不渲染（hidden 会被 .pf-av 的 display:flex 之类的类选择器盖掉） */
.pf-big input[type="file"], .pf-avs input[type="file"] { display: none; }
/* 相机角标要露在圆外：pf-big 不能 overflow:hidden（图片本身已经有圆角） */
.pf-big { overflow: visible; }
.pf-big .av-photo { border-radius: 50%; }

/* ---------- 最近研判（0.13：研判结果落库，列表 3 条 + 点开详情） ---------- */
.hist-card {
  margin: 0 16px; border-radius: 14px; overflow: hidden;
  background: var(--grad-card); border: 1px solid var(--line-soft);
}
.hist-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer;
  transition: background .12s ease;
}
.hist-row + .hist-row { border-top: 1px solid var(--line-soft); }
.hist-row:active { background: rgba(var(--ink), .045); }
.hist-dir {
  flex: 0 0 auto; min-width: 42px; text-align: center;
  font-size: 10.5px; font-weight: 700; padding: 4px 7px; border-radius: 7px;
  color: var(--text-2); background: rgba(var(--ink), .06);
}
.hist-dir.up { color: var(--up); background: rgba(245, 72, 95, .13); }
.hist-dir.down { color: var(--down); background: rgba(20, 192, 140, .13); }
.hist-body { flex: 1; min-width: 0; }
.hist-body b {
  display: block; font-size: 12.5px; font-weight: 620; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hist-body b i { font-style: normal; font-weight: 400; color: var(--text-3); margin-left: 6px; font-size: 11px; }
.hist-body small { display: block; margin-top: 3px; font-size: 10px; color: var(--text-3); }
.hist-px {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 620; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.hist-row svg { width: 13px; height: 13px; color: var(--text-3); flex: 0 0 auto; }

/* 结果页顶部：这次是历史快照 */
.hist-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 16px 0; padding: 8px 12px; border-radius: 11px;
  background: rgba(232, 184, 75, .1); border: 1px solid rgba(232, 184, 75, .28);
  font-size: 10.5px; color: var(--brand-2); font-weight: 600;
}
.hist-bar span { flex: 1; display: flex; align-items: center; gap: 5px; }
.hist-bar svg { width: 12px; height: 12px; }
.hist-bar-btn {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 600; color: var(--brand-2);
  background: rgba(232, 184, 75, .18); border: 1px solid rgba(232, 184, 75, .3);
}
.hist-bar-btn:active { transform: scale(.96); }
/* 「XAUUSD · 1h」与风格名之间补一个分隔点，避免视觉上粘成一串 */
.hist-body b i::before { content: '·'; margin-right: 5px; color: var(--text-3); opacity: .7; }

/* ===== 模型品牌图标：品牌色实底 + 官方 LOGO =====
 * 尺寸沿用各处原有容器（.mx-av 20px / .vote-avatar 28px / .menu-item .mi 26px），
 * 这里只负责铺底色与让 LOGO 保持居中、按比例缩放。LOGO 用 currentColor，所以文字色即图形色。 */
.m-logo {
  background: var(--mc, #7C6BFF); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex: 0 0 auto; font-weight: 700; line-height: 1;
}
.m-logo svg { width: 64%; height: 64%; display: block; }
.m-logo i { font-style: normal; }
.mx-av.m-logo { border-radius: 7px; }
.mx-av.m-logo svg { width: 80%; height: 80%; }
.vote-avatar.m-logo { border-radius: 9px; }
.vote-avatar.m-logo svg { width: 68%; height: 68%; }
/* 列表项里的 .mi 自带浅底，这里优先级要压过去 */
.menu-item .mi.m-logo { background: var(--mc, #7C6BFF); color: #fff; }
/* .menu-item .mi svg 写死了 15px，会把品牌图标压小，这里按比例放开 */
.menu-item .mi.m-logo svg { width: 66%; height: 66%; }
/* 网络不通：整卡压暗、状态改成告警色、右上角换成闪电，一眼和「待激活」区分 */
.mx-card.netdown { opacity: .58; }
.mx-card.netdown .mx-state { color: #E0783C; background: rgba(224, 120, 60, .14); }
.mx-lock.mx-net { color: #E0783C; }
.mx-lock.mx-net svg { width: 11px; height: 11px; }

/* ===== 模型网络状态：诊断条 + 卡片提示 =====
 * 海外模型在国内网络下会「连得上但被地区拒绝」或「根本连不上」，
 * 这两种在卡片上都要说清「该做什么」，而不是只显示一个失败。 */
.mx-vendor.mx-hint { color: #E0783C; font-weight: 560; }
.mx-card.netdown .mx-name { color: var(--text-2); }

.mx-diag {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; margin: 0 0 8px; border-radius: 11px;
  background: rgba(224, 120, 60, .09);
  border: 1px solid rgba(224, 120, 60, .22);
}
.mx-diag .md-i { flex: 0 0 16px; width: 16px; height: 16px; color: #E0783C; display: flex; }
.mx-diag .md-i svg { width: 100%; height: 100%; }
.mx-diag .md-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mx-diag .md-t b { font-size: 11.5px; font-weight: 640; color: var(--text); }
.mx-diag .md-t small { font-size: 10.5px; color: var(--text-3); line-height: 1.35; }
.mx-diag .md-b {
  flex: 0 0 auto; height: 25px; padding: 0 10px; border-radius: 8px; border: none;
  background: #E0783C; color: #fff; font-size: 11px; font-weight: 640;
  font-family: inherit; cursor: pointer;
}
.mx-diag .md-b:active { transform: scale(.96); }

/* ===== 网络诊断弹层 ===== */
.nh { padding: 2px 16px 0; }
.nh-row {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 12px; line-height: 1.5;
}
.nh-row:last-child { border-bottom: none; }
.nh-row b { flex: 0 0 30px; color: var(--text-3); font-weight: 500; }
.nh-row span { flex: 1; color: var(--text); }
.nh-t { padding: 4px 16px 8px; font-size: 12px; font-weight: 640; color: var(--text); }
.nh-box {
  margin: 0 16px 9px; padding: 10px 12px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.nh-box b { display: block; font-size: 12px; font-weight: 640; color: var(--brand); margin-bottom: 3px; }
.nh-box p { margin: 0 0 7px; font-size: 11.5px; line-height: 1.5; color: var(--text-2); }
.nh-box code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; padding: 1px 4px; border-radius: 4px;
  background: rgba(255, 255, 255, .07); color: var(--text);
}
.nh-box pre {
  margin: 0; padding: 8px 10px; border-radius: 8px; overflow-x: auto;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line-soft);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; line-height: 1.55; color: var(--text);
  /* 中转地址一行放不下时折行，别让右花括号被裁在可视区外 */
  white-space: pre-wrap; word-break: break-all;
}
.nh-f { margin: 0 16px 12px; font-size: 11px; line-height: 1.6; color: var(--text-3); }
.sheet .btn-block { margin: 0 16px 18px; width: calc(100% - 32px); }

html[data-theme="light"] .nh-box pre { background: #0F131A; color: #E9EDF5; }
html[data-theme="light"] .nh-box code { background: rgba(0, 0, 0, .06); }

/* ===== 智能体 · 六战法 =====
 * 三列卡片是「现在能不能做」的速览：成立=金色、待触发=橙、不成立=压暗、不适用=更淡。
 * 下面是最优战的完整计划与共振清单 —— 用户真正要做决定的是这一块。 */
.ag-head { display: flex; align-items: center; gap: 8px; padding: 0 16px 10px; }
.ag-bias {
  flex: 0 0 auto; height: 22px; padding: 0 9px; border-radius: 7px;
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 640;
  background: rgba(124, 107, 255, .14); color: var(--ai-2);
}
.ag-bias.long { background: rgba(245, 72, 95, .14); color: #FF8593; }
.ag-bias.short { background: rgba(20, 192, 140, .14); color: #5BD9B0; }
.ag-head-note { flex: 1; min-width: 0; font-size: 11px; line-height: 1.45; color: var(--text-3); }

.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 12px; }
.ag-card { padding: 9px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ag-h { display: flex; align-items: center; gap: 5px; }
.ag-h b { font-size: 12px; font-weight: 650; color: var(--text); }
.ag-dir { font-style: normal; font-size: 10px; font-weight: 700; padding: 0 4px; border-radius: 4px; line-height: 1.4; }
.ag-dir.long { color: #FF8593; background: rgba(245, 72, 95, .16); }
.ag-dir.short { color: #5BD9B0; background: rgba(20, 192, 140, .16); }
.ag-st { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 7px; font-size: 10.5px; color: var(--text-3); }
.ag-st em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--text-2); margin-left: auto; }
.ag-bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.ag-bar span { display: block; height: 100%; border-radius: 2px; }
.ag-card.ok { border-color: rgba(232, 184, 75, .3); }
.ag-card.ok .ag-st { color: var(--brand-2); }
.ag-card.ok .ag-st em { color: var(--brand); }
.ag-card.wait .ag-st { color: #E0A23C; }
.ag-card.no { opacity: .68; }
.ag-card.na { opacity: .52; }

.ag-best {
  margin: 0 16px 12px; padding: 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.ag-best.long { border-color: rgba(245, 72, 95, .26); }
.ag-best.short { border-color: rgba(20, 192, 140, .26); }
.ag-best-h { display: flex; align-items: center; gap: 8px; }
.ag-pick {
  font-size: 10px; color: var(--text-3); padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--line);
}
.ag-best-h b { font-size: 13px; font-weight: 650; color: var(--text); }
.ag-best-h em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 650; }
.ag-best-h em.ok { color: var(--brand); }
.ag-best-h em.wait { color: #E0A23C; }
.ag-best-p { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 8px; margin: 11px 0 2px; }
.ag-pp { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-pp label { font-size: 10px; color: var(--text-3); }
.ag-pp b { font-size: 13px; font-weight: 640; color: var(--text); }
.ag-wait {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; padding: 7px 9px;
  border-radius: 9px; background: rgba(224, 162, 60, .1); color: #E5B25C;
  font-size: 11px; line-height: 1.45;
}
.ag-wait svg { width: 12px; height: 12px; flex: 0 0 12px; margin-top: 2px; }
.ag-confs { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.ag-confs span { display: flex; gap: 7px; font-size: 11px; line-height: 1.4; }
.ag-confs b { flex: 0 0 auto; font-weight: 560; }
.ag-confs i { flex: 1; min-width: 0; font-style: normal; color: var(--text-3); }
.ag-confs .ok b { color: var(--brand-2); }
.ag-confs .no b { color: var(--text-3); }
.ag-confs .no i { opacity: .7; }
.ag-invalid { margin-top: 9px; font-size: 10.5px; color: var(--text-3); }

.ag-none {
  margin: 0 16px 12px; padding: 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px dashed var(--line); text-align: center;
}
.ag-none-h { font-size: 12px; font-weight: 640; color: var(--text-2); }
.ag-none-b { margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--text-3); }

.ag-levels { margin: 0 16px 14px; border-radius: 12px; border: 1px solid var(--line-soft); overflow: hidden; }
.ag-lv { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; font-size: 11px; border-bottom: 1px solid var(--line-soft); }
.ag-lv:last-child { border-bottom: none; }
.ag-lv b { flex: 0 0 62px; color: var(--text-3); font-weight: 500; }
.ag-lv span { flex: 1; min-width: 0; color: var(--text); }
.ag-lv i { flex: 0 0 auto; font-style: normal; font-size: 10px; color: var(--text-3); }

html[data-theme="light"] .ag-card { background: #F4F6FB; }
html[data-theme="light"] .ag-bar { background: rgba(15, 20, 30, .08); }
html[data-theme="light"] .ag-best { background: #FFFFFF; }
html[data-theme="light"] .ag-none { background: #F4F6FB; }
html[data-theme="light"] .ag-confs .ok b { color: #B07E12; }
html[data-theme="light"] .ag-bias.long { color: #C83048; }
html[data-theme="light"] .ag-bias.short { color: #0E8F6A; }
html[data-theme="light"] .ag-dir.long { color: #C83048; }
html[data-theme="light"] .ag-dir.short { color: #0E8F6A; }

/* ===== AI 交易 · 两大类切换（AI 研判 / 信号追踪） ===== */
/* 两段都带一行职责说明：左边「产生信号」，右边「盯住已发出的信号」，
   用户一眼知道该点哪个，而不是靠猜。 */
.ai-seg { display: flex; gap: 8px; margin: 12px 16px 6px; }
.ai-tab {
  flex: 1; min-width: 0; text-align: left; cursor: pointer; font-family: inherit;
  padding: 10px 11px 9px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: border-color .18s, background .18s;
}
.ai-tab b {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 660; color: var(--text-2); letter-spacing: .2px;
}
.ai-tab span {
  display: block; margin-top: 3px; font-size: 10px; line-height: 1.35;
  color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ai-tab b i {
  font-style: normal; font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 999px;
  background: rgba(255,92,92,.16); color: #FF7A7A;
}
.ai-tab.on { background: rgba(232,184,75,.10); border-color: rgba(232,184,75,.42); }
.ai-tab.on b { color: var(--brand); }
.ai-tab.on span { color: var(--text-2); }

/* 设置页 1 / 2 / 3 的步骤号 */
.section-title .step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-right: 6px; vertical-align: 1px;
  border-radius: 5px; background: rgba(232,184,75,.16); color: var(--brand);
  font-size: 9.5px; font-weight: 700; font-style: normal;
}

/* ===== 持仓监控 ===== */
.pos-list { margin: 0 16px; display: flex; flex-direction: column; gap: 9px; }
.pos-card {
  position: relative; padding: 11px 12px 9px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-soft);
  cursor: pointer; overflow: hidden;
}
.pos-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line); }
.pos-card.close { border-color: rgba(255,92,92,.30); }
.pos-card.close::before { background: #FF5C5C; }
.pos-card.trim { border-color: rgba(245,166,35,.30); }
.pos-card.trim::before { background: #F5A623; }

.pc-top { display: flex; align-items: center; gap: 7px; }
.pc-top b { font-size: 13px; font-weight: 660; color: var(--text); }
.pc-tf {
  font-size: 9.5px; padding: 0 4px; border-radius: 4px;
  background: rgba(var(--ink),.08); color: var(--text-3);
}
.pc-dir {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 6px; font-size: 10.5px; font-weight: 700;
}
.pc-dir.long { background: rgba(255,92,92,.14); color: var(--up); }
.pc-dir.short { background: rgba(20,192,140,.14); color: var(--down); }
.pc-act {
  margin-left: auto; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.pc-act.close { background: rgba(255,92,92,.16); color: #FF8080; }
.pc-act.trim { background: rgba(245,166,35,.16); color: #F7B84B; }
.pc-act.hold { background: rgba(var(--ink),.08); color: var(--text-3); }

.pc-num { display: flex; gap: 12px; margin-top: 9px; flex-wrap: wrap; }
.pc-num span { display: flex; flex-direction: column; gap: 1px; }
.pc-num u { text-decoration: none; font-size: 9.5px; color: var(--text-3); }
.pc-num b { font-size: 12px; font-weight: 620; color: var(--text); }

.pc-why { margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line-soft); }
.pc-why.ok { font-size: 11px; color: var(--text-3); border-top: 0; padding-top: 6px; }
.pw { display: flex; gap: 6px; font-size: 11px; line-height: 1.45; color: var(--text-2); margin-bottom: 4px; }
.pw i {
  flex: 0 0 auto; font-style: normal; font-size: 9.5px; padding: 1px 5px; border-radius: 4px;
  background: rgba(255,92,92,.12); color: #FF8080; height: 15px; line-height: 13px;
}
.pos-card.trim .pw i { background: rgba(245,166,35,.14); color: #F7B84B; }
.pw-more { font-size: 10px; color: var(--text-3); }

.pc-foot {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 7px; font-size: 9.5px; color: var(--text-3);
}
.pc-foot span { display: inline-flex; align-items: center; gap: 3px; }
.pc-foot svg { width: 10px; height: 10px; }

.pos-calm {
  margin: 0 16px; padding: 13px; border-radius: 14px; text-align: center;
  font-size: 11.5px; color: var(--text-2);
  background: rgba(20,192,140,.07); border: 1px solid rgba(20,192,140,.20);
}
.pos-calm svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; color: var(--down); }

.pos-hold-head { margin: 12px 16px 5px; font-size: 10.5px; color: var(--text-3); letter-spacing: .3px; }
.pos-hold { margin: 0 16px; border-radius: 12px; border: 1px solid var(--line-soft); overflow: hidden; }
.pos-hrow {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer;
  border-bottom: 1px solid var(--line-soft); font-size: 11.5px;
}
.pos-hrow:last-child { border-bottom: none; }
.pos-hrow b { color: var(--text); font-weight: 620; }
.pos-hrow i { font-style: normal; font-size: 9.5px; color: var(--text-3); }
.pos-hrow .num { margin-left: auto; font-size: 11px; font-weight: 620; }

.pos-empty {
  margin: 0 16px; padding: 16px 14px; border-radius: 14px; text-align: center;
  background: var(--surface); border: 1px dashed var(--line);
  font-size: 11.5px; line-height: 1.6; color: var(--text-2);
}
.pe-hint { margin-top: 7px; font-size: 10.5px; color: var(--text-3); line-height: 1.55; }

.pos-note { margin: 10px 16px 0; font-size: 10px; line-height: 1.55; color: var(--text-3); }
.pos-note strong { color: var(--text-2); font-weight: 600; }
/* 持仓监控那一节的「复核频率」：它不在卡片里，得自己留左右边距，虚线也不能顶到屏幕边 */
.pos-freq { margin: 2px 16px 4px; }
/* 「全部」时按监控分行：每行一个名字 + 一套胶囊。行之间用极淡的分隔线，不抢胶囊的视觉 */
.pf-rows { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px; }
.pf-row { padding: 6px 0 2px; border-bottom: 1px dashed var(--line-soft); }
.pf-row:last-child { border-bottom: 0; }
.pf-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.pf-top b { font-size: 12px; font-weight: 620; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-top i { font-style: normal; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }

html[data-theme="light"] .ai-tab { background: #FFFFFF; }
html[data-theme="light"] .ai-tab.on { background: rgba(232,184,75,.12); }
html[data-theme="light"] .pc-act.close { color: #D93A3A; }
html[data-theme="light"] .pc-act.trim { color: #B87A0C; }
html[data-theme="light"] .pw i { color: #D93A3A; }
html[data-theme="light"] .pos-card { background: #FFFFFF; }
html[data-theme="light"] .pos-empty { background: #F7F9FD; }
html[data-theme="light"] .pc-dir.long { color: #C83048; }
html[data-theme="light"] .pc-dir.short { color: #0E8F6A; }

/* 研判三态指示：多 / 空 / 观望，只有一个亮着，结果是三选一而不是模糊地带 */
.tri3 { display: inline-flex; gap: 3px; margin-top: 7px; padding: 2px; border-radius: 8px; background: rgba(var(--ink),.06); }
.tri3 i {
  font-style: normal; font-size: 9.5px; font-weight: 660; letter-spacing: .4px;
  padding: 2px 7px; border-radius: 6px; color: var(--text-3);
}
.tri3 i.on.long { background: rgba(255,92,92,.18); color: var(--up); }
.tri3 i.on.short { background: rgba(20,192,140,.18); color: var(--down); }
.tri3 i.on.flat { background: rgba(var(--ink),.12); color: var(--text); }
html[data-theme="light"] .tri3 { background: rgba(15,20,30,.05); }
html[data-theme="light"] .tri3 i.on.long { color: #C83048; }
html[data-theme="light"] .tri3 i.on.short { color: #0E8F6A; }

/* ===== 信号追踪 · 二级栏目（AI 研判 / 策略） ===== */
/* 和上面那两个大方块（AI 研判 / 信号追踪）必须一眼看出不是同一层：
   上面是「去哪儿」，用大卡片；这里是「看哪一类」，用一条小胶囊。
   之前两处做得一模一样，用户当然分不清自己在第几层。 */
.tk-seg-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 16px 2px;
}
.tk-tabs {
  display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px;
  background: rgba(var(--ink),.06); border: 1px solid var(--line-soft);
}
.tk-tab {
  cursor: pointer; font-family: inherit; border: 0;
  padding: 5px 12px; border-radius: 999px; background: transparent;
  font-size: 11px; font-weight: 620; color: var(--text-3); letter-spacing: .1px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background .16s, color .16s;
}
.tk-tab i {
  font-style: normal; font-size: 9px; font-weight: 700; line-height: 1;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(var(--ink),.12); color: var(--text-2);
}
.tk-tab.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.16); }
.tk-tab.on i { background: rgba(232,184,75,.20); color: var(--brand); }
.tk-seg-hint { font-size: 9.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 行情监控 · 分类选择器 ===== */
/* 一个用户可能同时挂几个模型在盯，先给一排「看哪个」，下面三节都跟着它走。
   横向可滚动：模型多了不换行、不挤压。 */
/* 监控胶囊以前是横向滚动：第三个品种被切在屏幕外，看不出还有几个监控。
 * 现在改成换行铺开——数量本来就少（会员等级里最多几个），换行比藏着更清楚。 */
.mp-bar {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 16px 2px; padding-bottom: 2px;
  overflow: visible;
}
.mp-chip {
  flex: 0 0 auto; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-soft);
  font-size: 10.5px; color: var(--text-2);
}
.mp-chip b { font-weight: 620; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-chip i { font-style: normal; font-size: 8.5px; color: var(--text-3); letter-spacing: .3px; }
.mp-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); opacity: .5; }
.mp-chip.bu .mp-dot { background: var(--up); opacity: 1; }
.mp-chip.sd .mp-dot { background: var(--down); opacity: 1; }
.mp-chip.on { background: rgba(232,184,75,.12); border-color: rgba(232,184,75,.42); color: var(--text); }
.mp-chip.on i { color: var(--brand); }

/* ===== 行情分析 · 「全部」时的概览 ===== */
.mo-rows {
  margin: 0 16px; border-radius: 13px; overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--surface);
}
.mo-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.mo-row:last-child { border-bottom: 0; }
.mo-w {
  flex: 0 0 auto; font-size: 8.5px; font-weight: 700; letter-spacing: .3px;
  padding: 2px 6px; border-radius: 6px; background: rgba(var(--ink),.07); color: var(--text-3);
}
.mo-w.bu { background: rgba(255,92,92,.14); color: var(--up); }
.mo-w.sd { background: rgba(20,192,140,.14); color: var(--down); }
.mo-n { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; gap: 1px; }
.mo-n i { font-style: normal; font-size: 9px; font-weight: 400; color: var(--text-3); }
.mo-px { font-size: 11.5px; font-weight: 620; color: var(--text-2); }
.mo-hint { margin: 6px 16px 0; font-size: 9.5px; color: var(--text-3); }
.tt-inline { color: var(--text-3); }

/* ===== 行情分析 · 多品种结论列表 ===== */
/* 一个监控可以同时盯几个品种，所以结论不是三个大字，而是一行一个品种：
   品种 → BUY/SELL/HOLD → 现价 → 理由 → 报告。点行看这个品种的详情报告。 */
.sy-list {
  margin-top: 8px; border-radius: 11px; overflow: hidden;
  border: 1px solid var(--line-soft); background: rgba(var(--ink), .02);
}
.sy-row {
  width: 100%; display: flex; align-items: center; gap: 7px;
  padding: 8px 9px; border: 0; border-bottom: 1px solid var(--line-soft);
  background: none; font-family: inherit; text-align: left; cursor: pointer;
}
.sy-row:last-child { border-bottom: 0; }
.sy-row:active { background: rgba(var(--ink), .045); }
.sy-row.err .sy-why { color: #E8837C; }
.sy-sym { flex: 0 0 auto; font-size: 11px; font-weight: 660; color: var(--text); letter-spacing: -.1px; }
.sy-w {
  flex: 0 0 auto; font-size: 8.5px; font-weight: 700; letter-spacing: .3px;
  padding: 2px 5px; border-radius: 5px; background: rgba(var(--ink), .07); color: var(--text-3);
}
.sy-w.bu { background: rgba(255, 92, 92, .15); color: var(--up); }
.sy-w.sd { background: rgba(20, 192, 140, .15); color: var(--down); }
.sy-px { flex: 0 0 auto; font-size: 11px; font-weight: 620; color: var(--text-2); }
.sy-why {
  flex: 1; min-width: 0; font-size: 9.5px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sy-go { flex: 0 0 auto; font-size: 9px; font-weight: 600; color: var(--brand); }
.sy-none { padding: 12px; font-size: 10px; color: var(--text-3); text-align: center; }

/* ===== 品种选择抽屉 ===== */
.msp-tip {
  margin: 2px 16px 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(var(--ink), .04); font-size: 9.5px; line-height: 1.6; color: var(--text-3);
}
.msp-g { margin-bottom: 10px; }
.msp-gh {
  margin: 0 16px 5px; font-size: 9.5px; font-weight: 660;
  color: var(--text-3); letter-spacing: .4px;
}
.msp-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 16px; }
.msp-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  cursor: pointer; font-family: inherit;
  padding: 5px 9px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.msp-chip b { font-size: 10.5px; font-weight: 640; color: var(--text-2); }
.msp-chip i { font-style: normal; font-size: 8.5px; color: var(--text-3); }
.msp-chip.on { background: rgba(232, 184, 75, .13); border-color: rgba(232, 184, 75, .45); }
.msp-chip.on b { color: var(--brand); }
.msp-chip.off { opacity: .34; cursor: not-allowed; }
/* 划掉的是「这个周期取不到行情」的，不是「没选」——不区分的话两种灰看着一样 */
.msp-chip.off b { text-decoration: line-through; }
.msp-foot { display: flex; gap: 8px; margin: 12px 16px 6px; }

/* ===== 详情报告抽屉 ===== */
.mr-hero { display: flex; align-items: center; gap: 10px; margin: 4px 16px 10px; }
.mr-word {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 62px; padding: 7px 0; border-radius: 12px;
  background: rgba(var(--ink), .06); border: 1px solid var(--line-soft);
}
.mr-word b { font-size: 13px; font-weight: 760; letter-spacing: .4px; color: var(--text-2); }
.mr-word small { font-size: 9px; color: var(--text-3); }
.mr-word.bu { background: rgba(255, 92, 92, .13); border-color: rgba(255, 92, 92, .35); }
.mr-word.bu b { color: var(--up); }
.mr-word.sd { background: rgba(20, 192, 140, .13); border-color: rgba(20, 192, 140, .35); }
.mr-word.sd b { color: var(--down); }
.mr-px { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mr-px span { font-size: 9px; color: var(--text-3); }
.mr-px b { font-size: 13px; font-weight: 660; color: var(--text); }
.mr-plan {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 0 16px; border-radius: 12px; overflow: hidden;
  background: var(--line-soft);
}
.mr-plan div { background: var(--surface); padding: 8px 9px; display: flex; flex-direction: column; gap: 2px; }
.mr-plan span { font-size: 9px; color: var(--text-3); }
.mr-plan b { font-size: 12px; font-weight: 640; }
.mr-why { margin: 10px 16px 0; padding: 9px 11px; border-radius: 11px; background: rgba(var(--ink), .04); }
.mr-why b { font-size: 10px; font-weight: 660; color: var(--text-2); }
.mr-why p { margin: 3px 0 0; font-size: 10px; line-height: 1.6; color: var(--text-2); }
.mr-why i { font-style: normal; color: var(--text-3); }
.mr-err { margin: 8px 16px 0; font-size: 10px; color: #E8837C; line-height: 1.55; }
.mr-sec {
  margin: 14px 16px 6px; font-size: 10.5px; font-weight: 660; color: var(--text-2);
  display: flex; align-items: baseline; gap: 6px;
}
.mr-hint { font-size: 9px; font-weight: 400; color: var(--text-3); }
.mr-caps { margin: 0 16px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line-soft); }
/* 一行战法：名称 / 状态 / 分数，说明另起一行。
   用 flex 而不是 grid —— 说明里常带一长串价位（「3884.767901 - 3904.270835」），
   grid 的 min-content 会把它当不可断的块，整行横向溢出、文字跑到卡片外面。 */
.mr-cap {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px;
  padding: 7px 9px; border-bottom: 1px solid var(--line-soft); background: var(--surface);
}
.mr-cap:last-child { border-bottom: 0; }
.mr-cn { flex: 0 0 46px; font-size: 10.5px; font-weight: 620; color: var(--text); }
.mr-cs { flex: 1; min-width: 0; font-size: 9.5px; color: var(--text-3); }
.mr-cv { flex: 0 0 22px; font-size: 10.5px; font-weight: 640; color: var(--text-2); text-align: right; }
.mr-cw {
  flex: 0 0 100%; min-width: 0; padding-left: 52px;
  font-size: 9px; color: var(--text-3); line-height: 1.5;
  overflow-wrap: anywhere; word-break: break-word;
}
.mr-cap.ready .mr-cs { color: var(--up); }
.mr-cap.arm .mr-cs { color: var(--brand); }
.mr-rule { margin: 0 16px 4px; display: flex; gap: 6px; font-size: 9.5px; line-height: 1.6; }
.mr-rule i {
  flex: 0 0 auto; font-style: normal; font-weight: 660; color: var(--text-3);
}
.mr-rule span { flex: 1; min-width: 0; color: var(--text-2); }
.mr-align { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 16px; }
.mr-al {
  font-size: 9.5px; padding: 3px 7px; border-radius: 999px;
  background: rgba(var(--ink), .06); color: var(--text-3);
}
.mr-al.long { background: rgba(255, 92, 92, .14); color: var(--up); }
.mr-al.short { background: rgba(20, 192, 140, .14); color: var(--down); }
.mr-note { margin: 0 16px; }
.mr-note p { margin: 0 0 5px; font-size: 9.5px; line-height: 1.65; color: var(--text-3); }
.mr-sigs { margin: 0 16px; border-radius: 11px; overflow: hidden; border: 1px solid var(--line-soft); }
.mr-sig {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  border-bottom: 1px solid var(--line-soft); cursor: pointer; background: var(--surface);
}
.mr-sig:last-child { border-bottom: 0; }
.mr-sig b { font-size: 10.5px; font-weight: 660; }
.mr-sig b.up { color: var(--up); }
.mr-sig b.down { color: var(--down); }
.mr-sig span { font-size: 10.5px; color: var(--text-2); }
.mr-sig i { font-style: normal; font-size: 9px; color: var(--text-3); }
.mr-sig small { margin-left: auto; font-size: 9px; color: var(--text-3); }

/* ===== 持仓详情：复核判定 ===== */
.sg-review {
  margin: 10px 16px 0; padding: 10px 11px; border-radius: 12px;
  background: rgba(var(--ink), .04); border: 1px solid var(--line-soft);
}
.sg-review.close { background: rgba(255, 92, 92, .07); border-color: rgba(255, 92, 92, .28); }
.sg-review.trim { background: rgba(232, 184, 75, .07); border-color: rgba(232, 184, 75, .28); }
.sr-head { display: flex; align-items: center; gap: 8px; }
.sr-head b { font-size: 10.5px; font-weight: 660; color: var(--text-2); }
.sr-act {
  margin-left: auto; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: rgba(var(--ink), .08); color: var(--text-2);
}
.sr-act.close { background: rgba(255, 92, 92, .16); color: var(--up); }
.sr-act.trim { background: rgba(232, 184, 75, .18); color: var(--brand); }
.sr-act.trail { background: rgba(20, 192, 140, .16); color: var(--down); }
.sr-nums { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 9.5px; color: var(--text-3); }
.sr-nums b { font-size: 10.5px; font-weight: 640; color: var(--text); }
.sr-list { margin-top: 7px; display: flex; flex-direction: column; gap: 3px; }
.sr-row { display: flex; align-items: baseline; gap: 5px; font-size: 9.5px; line-height: 1.55; color: var(--text-3); }
.sr-row i { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); margin-top: 4px; }
.sr-row.ok i { background: rgba(20, 192, 140, .75); }
.sr-row.bad i { background: rgba(255, 92, 92, .85); }
.sr-row b { flex: 0 0 auto; font-weight: 660; color: var(--text-2); font-size: 9.5px; }
.sr-row span { flex: 1; min-width: 0; }
.sr-note { margin-top: 7px; font-size: 9px; line-height: 1.55; color: var(--text-3); }
.pc-more { font-weight: 600; color: var(--brand); }

/* 三态词：BUY / SELL / HOLD，只有一个亮 */
.word3 { display: inline-flex; gap: 2px; padding: 1px; border-radius: 7px; background: rgba(var(--ink),.06); flex: 0 0 auto; }
.word3 i {
  font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: .3px;
  padding: 1.5px 4px; border-radius: 5px; color: var(--text-3);
}
.word3 i.on.long { background: rgba(255,92,92,.18); color: var(--up); }
.word3 i.on.short { background: rgba(20,192,140,.18); color: var(--down); }
.word3 i.on.flat { background: rgba(var(--ink),.12); color: var(--text); }

/* 频率选择：一行 chips，点一下即生效，不做二次确认（改了能看见） */
.ev-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 2px; }
.ev-chip {
  cursor: pointer; font-family: inherit; font-size: 9.5px; font-weight: 600;
  padding: 3px 7px; border-radius: 999px; color: var(--text-3);
  background: rgba(var(--ink),.05); border: 1px solid transparent;
}
.ev-chip.on { background: rgba(232,184,75,.14); border-color: rgba(232,184,75,.38); color: var(--brand); }

/* 行情分析 / 持仓监控两行：一张卡里并排说清两条通道 */
.dt-word { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dt-word .dt-px { font-size: 13px; font-weight: 640; color: var(--text); }
.dt-word .dt-px.long { color: var(--up); }
.dt-word .dt-px.short { color: var(--down); }
.dt-word .dt-at { margin-left: auto; font-size: 9.5px; color: var(--text-3); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dt-ch { margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-soft); }
.dc-head { display: flex; align-items: baseline; gap: 8px; }
.dc-head + .dc-head { margin-top: 8px; }
.dc-k { font-size: 10.5px; font-weight: 660; color: var(--text-2); letter-spacing: .2px; }
.dc-k.off { color: var(--text-3); text-decoration: line-through; }
.dc-v { margin-left: auto; font-size: 9.5px; color: var(--text-3); text-align: right; }

/* 我的 AI 模型 / 我的策略 卡片 */
.am-list { margin: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.am-card {
  padding: 10px 11px 9px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.am-card.on { border-color: rgba(232,184,75,.30); }
.am-top { display: flex; align-items: center; gap: 8px; }
.am-top b { display: block; font-size: 12.5px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-top small { display: block; margin-top: 1px; font-size: 9.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 「上次研判 2026-11-17 16:21 ›」：时间本身是入口，点开看当时那份报告 */
.am-when { color: var(--brand); font-weight: 600; }
/* 正在修改某个已保存的模型：左侧一条竖杠，和普通卡片区分开 */
.an-edit-bar { display: flex; align-items: center; gap: 8px; border-left: 3px solid var(--brand); }
.an-edit-bar .grow b { font-size: 12.5px; font-weight: 650; color: var(--text); }
.an-edit-bar .grow small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.5; color: var(--text-3); }
.an-edit-bar .mini-btn { flex: 0 0 auto; }
.am-plan { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.am-plan span { display: flex; flex-direction: column; gap: 1px; }
.am-plan u { text-decoration: none; font-size: 9px; color: var(--text-3); }
.am-plan b { font-size: 11px; font-weight: 620; color: var(--text-2); }
.am-foot { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-soft); flex-wrap: wrap; }
.am-on { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--down); }
.am-on svg { width: 10px; height: 10px; }
.am-off { font-size: 10px; color: var(--text-3); }
.am-foot .mini-btn { margin-left: auto; }
.am-foot .mini-btn + .mini-btn { margin-left: 0; }

/* 持仓卡新增：来源 / 移止损动作 / 应用条 */
.pc-src {
  font-size: 9px; padding: 0 4px; border-radius: 4px; max-width: 78px;
  background: rgba(var(--ink),.06); color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-src.gone { color: #C9736C; background: rgba(245,72,95,.10); }
.pc-act.trail { background: rgba(91,143,249,.16); color: #6E9CFF; }
.pos-card.trail { border-color: rgba(91,143,249,.30); }
.pos-card.trail::before { background: #5B8FF9; }
.pc-apply {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
  padding: 6px 8px; border-radius: 9px; background: rgba(var(--ink),.04);
  font-size: 10px; color: var(--text-2);
}
.pc-apply span { flex: 1; min-width: 0; line-height: 1.4; }
.pc-apply b { color: var(--text); }

/* 全自动执行条：仓位动作由服务端直接落地，卡上只解释「刚刚发生了什么」。
 * 没有按钮、没有确认框——平仓 / 减仓 / 移止损 / 止盈 / 止损都不再用手指。 */
.pc-auto {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 6px 8px; border-radius: 9px;
  background: rgba(20,192,140,.09); border: 1px solid rgba(20,192,140,.20);
  font-size: 10px; color: var(--text-2);
}
.pc-auto > span { flex: 1; min-width: 0; line-height: 1.4; }
.pc-auto > span b { color: var(--text); font-weight: 640; }
.pc-auto .pa-ic { flex: 0 0 auto; display: inline-flex; color: #14C08C; }
.pc-auto .pa-ic svg { width: 12px; height: 12px; }
.pc-auto > i {
  flex: 0 0 auto; font-style: normal; font-size: 9px; letter-spacing: .2px;
  color: #0E9E74; background: rgba(20,192,140,.13);
  padding: 1px 5px; border-radius: 6px;
}
.pc-auto.trim { background: rgba(245,166,35,.10); border-color: rgba(245,166,35,.22); }
.pc-auto.trim .pa-ic { color: #C8801A; }
.pc-auto.trim > i { color: #C8801A; background: rgba(245,166,35,.14); }
html[data-theme="dark"] .pc-auto.trim .pa-ic,
html[data-theme="dark"] .pc-auto.trim > i { color: #F7B84B; }

/* 手动操作行：AI 建议之外用户自己想平就平、想减就减，点一下直接执行。
 * 五个动作（平仓 / 减仓 / 移止损 / 止盈 / 止损）要在一行里放得下：
 * 标签压到 9.5px、按钮内边距收窄，430px 屏上刚好排开，不换行也不截断。 */
.pc-manual {
  display: flex; align-items: center; gap: 5px; margin-top: 7px;
  font-size: 9.5px; color: var(--text-3);
}
.pc-manual > span {
  flex: 0 0 auto; letter-spacing: .4px;
}
.pc-manual .mini-btn {
  margin-left: 0; flex: 0 0 auto;
  font-size: 10px; padding: 4px 7px; border-radius: 7px;
}
.pc-manual .mini-btn.warn { color: #E8A33D; border-color: rgba(232,163,61,.30); }

/* 保存为模型 抽屉 */
.ams-plan {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px;
  margin: 10px 16px 0; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.ams-plan span { display: block; font-size: 9px; color: var(--text-3); }
.ams-plan b { font-size: 11.5px; font-weight: 640; color: var(--text); }
.ams-ch { display: flex; gap: 8px; margin: 8px 16px 0; }
.ams-opt {
  flex: 1; min-width: 0; text-align: left; cursor: pointer; font-family: inherit;
  padding: 8px 10px; border-radius: 11px;
  background: rgba(var(--ink),.04); border: 1px solid transparent;
}
.ams-opt b { display: block; font-size: 11.5px; font-weight: 650; color: var(--text-3); }
.ams-opt span { display: block; margin-top: 2px; font-size: 9px; line-height: 1.35; color: var(--text-3); }
.ams-opt.on { background: rgba(232,184,75,.10); border-color: rgba(232,184,75,.42); }
.ams-opt.on b { color: var(--brand); }
.ams-opt.on span { color: var(--text-2); }

/* 来源已失效的监控：视觉上立刻降级，别让用户以为还在跑 */
.dtc-card.gone { opacity: .62; border-style: dashed; }

html[data-theme="light"] .tk-tab,
html[data-theme="light"] .am-card,
html[data-theme="light"] .ams-plan { background: #FFFFFF; }
html[data-theme="light"] .tk-tab.on,
html[data-theme="light"] .ams-opt.on { background: rgba(232,184,75,.12); }
html[data-theme="light"] .word3 { background: rgba(15,20,30,.05); }
html[data-theme="light"] .word3 i.on.long,
html[data-theme="light"] .dt-word .dt-px.long { color: #C83048; }
html[data-theme="light"] .word3 i.on.short,
html[data-theme="light"] .dt-word .dt-px.short { color: #0E8F6A; }
html[data-theme="light"] .pc-act.trail { color: #3B6FD4; }
html[data-theme="light"] .am-on { color: #0E8F6A; }

/* 模型卡底部：来源名太长时省略，别把按钮挤到第二行 */
.am-foot .am-on { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-foot .mini-btn { flex: 0 0 auto; }

/* 卡片顶部中间列必须能伸缩：否则长名字会把右侧的 BUY/SELL/HOLD 挤走 */
.am-top .grow { flex: 1 1 auto; min-width: 0; }

/* ================= 研判报告（0.20）：多周期结构 / 关键价位 / 综合判断 / 交易计划 / 风控 ================= */
.rp-head { margin: 12px 16px 0; padding: 13px 14px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); }
.rp-h-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rp-kicker { font-size: 10px; letter-spacing: .1em; color: var(--text-3); }
.rp-when { font-size: 10.5px; color: var(--text-3); }
.rp-title { margin: 3px 0 11px; font-size: 15.5px; font-weight: 640; color: var(--text);
  display: flex; align-items: baseline; gap: 7px; }
.rp-title i { font-style: normal; font-size: 10.5px; font-weight: 500; color: var(--text-3); }

.rp-hero { display: flex; align-items: stretch; gap: 11px; }
.rp-word { flex: 0 0 auto; min-width: 74px; padding: 7px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); text-align: center; }
.rp-word b { display: block; font-size: 16px; font-weight: 700; letter-spacing: .02em; color: var(--text-2); }
.rp-word small { display: block; margin-top: 1px; font-size: 10px; color: var(--text-3); }
.rp-word.long { border-color: rgba(245, 72, 95, .32); background: rgba(245, 72, 95, .10); }
.rp-word.long b { color: var(--up); }
.rp-word.short { border-color: rgba(20, 192, 140, .32); background: rgba(20, 192, 140, .10); }
.rp-word.short b { color: var(--down); }

.rp-stats { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; }
.rp-stats span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rp-stats u { text-decoration: none; font-size: 9.5px; color: var(--text-3); }
.rp-stats b { font-size: 12.5px; font-weight: 620; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.rp-sec { margin: 18px 16px 0; }
.rp-sh { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.rp-sh i { flex: 0 0 auto; width: 17px; height: 17px; border-radius: 6px; background: var(--brand);
  color: #17130A; font-size: 10.5px; font-weight: 700; font-style: normal;
  display: flex; align-items: center; justify-content: center; }
.rp-sh b { font-size: 13.5px; font-weight: 640; color: var(--text); }
.rp-sh span { margin-left: auto; font-size: 10.5px; color: var(--text-3); }
.rp-none { padding: 12px; border: 1px dashed var(--line); border-radius: 12px;
  font-size: 11.5px; line-height: 1.65; color: var(--text-3); }

/* 一、多周期结构 */
.rp-tf { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; margin-bottom: 6px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.rp-tf-n { flex: 0 0 32px; font-size: 12px; font-weight: 650; color: var(--text); line-height: 18px; }
.rp-tf-d { flex: 0 0 auto; height: 18px; line-height: 18px; padding: 0 7px; border-radius: 999px;
  font-style: normal; font-size: 10px; color: var(--text-3); background: rgba(127, 127, 127, .14); }
.rp-tf-d.long { color: var(--up); background: rgba(245, 72, 95, .12); }
.rp-tf-d.short { color: var(--down); background: rgba(20, 192, 140, .12); }
.rp-tf-b { flex: 1 1 auto; min-width: 0; }
.rp-tf-b p { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--text-2); }
.rp-tf-b span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--text-3); }
.rp-tail { margin-top: 8px; padding: 9px 10px; border-radius: 10px; font-size: 11.5px; line-height: 1.65;
  color: var(--text-2); background: rgba(232, 184, 75, .09); border-left: 2px solid var(--brand); }

/* 二、关键价位 */
.rp-lv { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.rp-lv-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line-soft); }
.rp-lv-row:first-child { border-top: none; }
.rp-lv-k { flex: 0 0 58px; font-size: 10px; color: var(--text-3); }
.rp-lv-v { flex: 0 0 86px; text-align: right; font-size: 12px; font-weight: 620; color: var(--text); }
.rp-lv-w { flex: 1 1 auto; min-width: 0; font-size: 10px; line-height: 1.4; color: var(--text-3);
  overflow-wrap: anywhere; word-break: break-word; }
.rp-lv-row.res .rp-lv-v { color: var(--up); }
.rp-lv-row.sup .rp-lv-v { color: var(--down); }
.rp-lv-row.px { background: rgba(232, 184, 75, .10); }
.rp-lv-row.px .rp-lv-v { color: var(--brand); }

/* 三、综合判断 */
.rp-call p { margin: 0 0 8px; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.rp-call p:last-of-type { margin-bottom: 0; }
.rp-cases { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.rp-cases > div { display: flex; gap: 8px; padding: 8px 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; line-height: 1.6; color: var(--text-2); }
.rp-cases b { flex: 0 0 28px; font-size: 10.5px; color: var(--brand); }
.rp-cases span { flex: 1 1 auto; min-width: 0; }
.rp-cases em { font-style: normal; font-weight: 620; color: var(--text); }
.rp-concl { padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.65; color: var(--text);
  background: rgba(232, 184, 75, .10); border: 1px solid rgba(232, 184, 75, .26); }

/* 四、交易计划 */
.rp-p { padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.rp-p-h { display: flex; align-items: center; gap: 7px; }
.rp-pri { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 6px; background: var(--brand);
  color: #17130A; font-size: 10.5px; font-weight: 700; font-style: normal;
  display: flex; align-items: center; justify-content: center; }
.rp-p-h b { font-size: 13px; font-weight: 650; color: var(--text); }
.rp-p.long .rp-p-h b { color: var(--up); }
.rp-p.short .rp-p-h b { color: var(--down); }
.rp-p-h em { font-style: normal; font-size: 9.5px; color: var(--text-3);
  padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); }
.rp-rr { margin-left: auto; font-size: 9.5px; color: var(--text-3); white-space: nowrap; }
.rp-rr b { font-size: 11px; color: var(--text); }
.rp-p-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 9px 0 7px; }
.rp-p-g span { min-width: 0; }
.rp-p-g u { display: block; text-decoration: none; font-size: 9px; color: var(--text-3); }
.rp-p-g b { font-size: 11px; font-weight: 620; color: var(--text); white-space: nowrap; }
.rp-p-cond { font-size: 10px; line-height: 1.55; color: var(--text-3); overflow-wrap: anywhere; word-break: break-word; }
.rp-p-cond i { font-style: normal; color: var(--brand); margin-right: 5px; }
.rp-rule { margin-top: 10px; font-size: 11px; line-height: 1.65; color: var(--text-2); }
.rp-rule b { display: block; margin-bottom: 4px; font-size: 10px; color: var(--text-3); }
.rp-rule p { margin: 0 0 4px; }

/* 五、执行与风控 */
.rp-risk { margin: 0; padding-left: 17px; }
.rp-risk li { margin-bottom: 6px; font-size: 11.5px; line-height: 1.68; color: var(--text-2); }
.rp-risk li::marker { color: var(--brand); font-size: 10.5px; }

/* 品牌标：所有页面左上角统一一张不透明图（logo-tile-96.png），
 * 圆角由 border-radius 裁，避免透明角在部分 WebView 里变成黑角 */
.app-logo {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  display: block;
  background: #fff url(/logo-tile-96.png) center/cover no-repeat;
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .55);
}
/* logo 是个按钮：去掉默认按钮外观，但保留 40px 的点击热区（图标视觉上还是 28px） */
.app-logo-btn {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 0 -3px 0 -3px; padding: 0;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.app-logo-btn:active { transform: scale(.94); }
html[data-theme="light"] .app-logo { box-shadow: 0 2px 8px -4px rgba(20, 40, 80, .28); }

/* 计划卡：入场区是「a–b」两段数，四个等宽格子放不下 —— 让它独占一行，其余三项均分 */
.rp-p-g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-p-g .wide { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 6px; }
.rp-p-g .wide u { font-size: 9px; }
.rp-p-g span { overflow: hidden; }

/* 正文明细分隔：让「六战法 / 指标 / 引擎观点」明确属于附录，不是报告第六节 */
.rp-appx { margin: 22px 16px 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.rp-appx b { display: block; font-size: 12px; font-weight: 640; color: var(--text-2); letter-spacing: .02em; }
.rp-appx span { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.6; color: var(--text-3); }

/* ================= 大模型观点（0.21）：先综合，再分家 ================= */
.llm-syn { margin-bottom: 8px; padding: 12px 13px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); }
.llm-h { display: flex; align-items: center; gap: 9px; }
.llm-av { width: 30px; height: 30px; border-radius: 9px; background: #7C6BFF; color: #fff; }
.llm-ht { flex: 1 1 auto; min-width: 0; }
.llm-ht b { display: block; font-size: 13px; font-weight: 640; color: var(--text); }
.llm-ht small { display: block; margin-top: 1px; font-size: 10px; color: var(--text-3); }
.llm-dir { flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 700;
  padding: 2px 9px; border-radius: 7px; color: var(--text-2); background: rgba(var(--ink), .06); }
.llm-dir.long { color: var(--up); background: rgba(245, 72, 95, .12); }
.llm-dir.short { color: var(--down); background: rgba(20, 192, 140, .12); }
.llm-p { margin: 9px 0 0; font-size: 11.5px; line-height: 1.72; color: var(--text-2); }
.llm-concl { margin-top: 9px; padding: 8px 10px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.65; color: var(--text);
  background: rgba(232, 184, 75, .10); border: 1px solid rgba(232, 184, 75, .24); }
.llm-concl.warn { background: rgba(245, 180, 60, .12); border-color: rgba(245, 180, 60, .34); }
.llm-gate { margin-top: 6px; font-size: 10px; line-height: 1.55; color: var(--text-3); }
.llm-quant { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 12px;
  background: rgba(var(--ink), .03); border: 1px dashed var(--line); }
.lq-main { flex: 1 1 auto; min-width: 0; }
.lq-main b { display: block; font-size: 12px; color: var(--text); }
.lq-main small { display: block; font-size: 10px; color: var(--text-3); }

/* 信心门槛提示：结论被压成 HOLD 时，计划节的价位只是预案 */
.rp-gate { margin-bottom: 8px; padding: 8px 10px; border-radius: 10px;
  font-size: 11px; line-height: 1.6; color: var(--text-2);
  background: rgba(245, 180, 60, .10); border-left: 2px solid #F5B43C; }
.rp-when { white-space: nowrap; }

/* 体检页的条件清单：删掉旧的再换新的，不用跳回编辑器 */
.abl-edit .erl-legend { margin-bottom: 9px; }
.abl-edit .erl-sec { margin-bottom: 11px; }
.abl-edit .erl-foot { margin-top: 2px; }
.abl-stale {
  display: flex; align-items: center; gap: 9px; margin: 0 16px 10px;
  padding: 8px 11px; border-radius: 10px; font-size: 11px; line-height: 1.5;
  color: var(--text-2); background: rgba(245, 180, 60, .10);
  border: 1px solid rgba(245, 180, 60, .26); border-left-width: 2px;
}
.abl-stale span { flex: 1 1 auto; min-width: 0; }
.abl-stale button {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 8px; font-size: 10.5px; font-weight: 600;
  color: #17130A; background: var(--brand); border: none;
}
.abl-old { opacity: .62; }

/* ---------- 0.22：回测报告的时间戳 / 底部操作区 ---------- */
/* 报告生成时刻 + 数据截止时刻分开写：回看时最容易搞混的就是「这是几点跑的」和「数据到哪儿」 */
.bt-stamp {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin: 10px 16px 0; padding: 6px 10px; border-radius: 10px;
  font-size: 9.5px; line-height: 1.5; color: var(--text-3);
  background: rgba(var(--ink), .035); border: 1px solid var(--line-soft);
}
.bt-stamp span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.bt-stamp svg { width: 10px; height: 10px; }
.bt-stamp span + span::before { content: '·'; margin-right: 8px; color: var(--text-3); opacity: .6; }
.bt-acts { margin-top: 16px; }

/* 持仓卡上的「最新 xx」：这一笔按最新一轮行情分析报告判的 */
.pc-latest {
  font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 4px; letter-spacing: .2px;
}
.pc-latest.bu { background: rgba(255,92,92,.14); color: var(--up); }
.pc-latest.sd { background: rgba(20,192,140,.14); color: var(--down); }
.pc-latest.hd { background: rgba(var(--ink),.07); color: var(--text-3); }

/* 频率只取主周期整数倍，这句是解释，不是装饰 */
.dc-hint { margin-top: 5px; font-size: 9.5px; line-height: 1.5; color: var(--text-3); }
.pos-none {
  display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 660; color: var(--text-2);
}

/* ---------- 0.22：站内提醒（铃铛 + 未读条 + 列表） ---------- */
.icon-btn.bell { position: relative; }
.bell-dot {
  position: absolute; top: -1px; right: -2px; min-width: 15px; height: 15px; padding: 0 3px;
  border-radius: 999px; background: #FF5C5C; color: #fff;
  font-size: 9px; font-weight: 700; font-style: normal; line-height: 15px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg, #0B0D12);
}
.nt-strip {
  display: flex; align-items: center; gap: 7px; width: calc(100% - 32px); margin: 10px 16px 0;
  padding: 8px 11px; border-radius: 11px; text-align: left;
  background: rgba(232,184,75,.10); border: 1px solid rgba(232,184,75,.24);
}
.nt-strip svg { width: 14px; height: 14px; color: var(--brand); flex: 0 0 auto; }
.nt-strip b { font-size: 11.5px; font-weight: 650; color: var(--brand); }
.nt-strip span { flex: 1 1 auto; min-width: 0; font-size: 9.5px; color: var(--text-3); text-align: right; }
.nt-strip svg:last-child { width: 12px; height: 12px; color: var(--text-3); }

.nt-list { margin: 8px 16px 0; display: flex; flex-direction: column; gap: 7px; }
.nt-row {
  display: flex; gap: 9px; padding: 9px 10px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line-soft);
}
.nt-row.unread { border-color: rgba(232,184,75,.28); background: rgba(232,184,75,.055); }
.nt-row.tap:active { opacity: .82; }
.nt-ic {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.nt-ic svg { width: 14px; height: 14px; }
.nt-ic.bu { background: rgba(255,92,92,.14); color: var(--up); }
.nt-ic.sd { background: rgba(20,192,140,.14); color: var(--down); }
.nt-ic.hd { background: rgba(var(--ink),.07); color: var(--text-3); }
.nt-ic.pos { background: rgba(91,143,249,.14); color: #6E9CFF; }
.nt-top { display: flex; align-items: center; gap: 5px; }
.nt-top b { font-size: 11.5px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-tag { font-size: 8.5px; font-weight: 700; padding: 1px 4px; border-radius: 4px; background: rgba(var(--ink),.07); color: var(--text-3); }
.nt-at { margin-left: auto; flex: 0 0 auto; font-size: 9px; color: var(--text-3); }
.nt-body { margin-top: 3px; font-size: 10px; line-height: 1.55; color: var(--text-2); }
.nt-foot { margin-top: 3px; font-size: 9px; color: var(--text-3); }
.nt-foot-line { margin: 10px 16px 0; font-size: 9.5px; color: var(--text-3); }
.ma-stat {
  display: flex; gap: 8px; margin: 10px 16px 0;
  padding: 8px 10px; border-radius: 10px; background: rgba(var(--ink),.035);
}
.ma-stat > div { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ma-stat span { font-size: 9px; color: var(--text-3); }
.ma-stat b { font-size: 11.5px; font-weight: 620; color: var(--text-2); }

/* ---------- 0.23：持仓卡上的战法 / 实时价 ---------- */
/* 「六战法里的哪一套」：跟周期、最新判定同排，弱于方向、强于来源 */
.pc-tactic {
  font-size: 9px; font-weight: 700; letter-spacing: .2px;
  padding: 0 5px; border-radius: 4px;
  background: rgba(91,143,249,.13); color: #6E9CFF;
}
.pos-hrow .ph-px {
  font-size: 9.5px; color: var(--text-3); white-space: nowrap;
}

/* ---------- 0.23：邮件通道配置（提醒设置抽屉内） ---------- */
.ma-lab { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ma-link {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 0; border: 0; background: none;
  font-size: 10px; font-weight: 650; color: var(--brand); cursor: pointer;
}
.ma-link.on { color: var(--down); }
.mail-box {
  margin: 8px 16px 0; padding: 10px 11px 11px; border-radius: 12px;
  background: rgba(var(--ink), .035); border: 1px solid var(--line-soft);
}
.mb-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; color: var(--text-2); letter-spacing: .3px;
}
.mb-state { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.mb-state.on { background: rgba(20,192,140,.14); color: var(--down); }
.mb-state.off { background: rgba(255,92,92,.13); color: var(--up); }
.mb-ok, .mb-warn, .mb-err {
  margin-top: 5px; font-size: 9.5px; line-height: 1.55; border-radius: 7px; padding: 5px 7px;
  word-break: break-all;
}
.mb-ok { color: var(--down); background: rgba(20,192,140,.08); }
.mb-warn { color: var(--text-3); background: rgba(var(--ink), .04); }
.mb-err { color: var(--up); background: rgba(255,92,92,.08); }
.mb-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px;
}
.mb-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mb-f.full { grid-column: 1 / -1; }
.mb-f > span { font-size: 9px; color: var(--text-3); letter-spacing: .2px; }
.mb-f input, .mb-f select {
  width: 100%; box-sizing: border-box;
  padding: 7px 8px; border-radius: 8px;
  font-size: 11px; font-family: inherit;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line-soft);
  outline: none;
}
.mb-f input:focus, .mb-f select:focus { border-color: rgba(232,184,75,.5); }
.mb-pre { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mb-pre-b {
  font-size: 9.5px; padding: 3px 8px; border-radius: 999px;
  background: rgba(var(--ink), .05); color: var(--text-3);
  border: 1px solid var(--line-soft); cursor: pointer;
}
.mb-acts { display: flex; gap: 7px; margin-top: 9px; }
.mb-acts .mini-btn { flex: 1; }
.mb-acts .mini-btn.primary { background: var(--brand); color: #1B1408; border-color: transparent; font-weight: 700; }
.mb-tip { margin-top: 7px; font-size: 9px; line-height: 1.55; color: var(--text-3); }
/* 授权码指引：折叠起来不占地方，展开能看到具体步骤 */
.mb-help {
  margin-top: 8px; padding: 0 9px; border-radius: 9px;
  background: rgba(var(--ink), .035); border: 1px solid var(--line-soft);
}
.mb-help summary {
  list-style: none; cursor: pointer; padding: 7px 0;
  font-size: 9.5px; font-weight: 600; color: var(--brand);
}
.mb-help summary::-webkit-details-marker { display: none; }
.mb-help summary::after { content: '＋'; float: right; opacity: .8; }
.mb-help[open] summary::after { content: '－'; }
.mb-help ol { margin: 0 0 6px; padding-left: 15px; }
.mb-help li, .mb-help p { font-size: 9px; line-height: 1.65; color: var(--text-3); }
.mb-help p { margin: 0 0 8px; }

/* ---------- 0.23：提醒设置的行布局（之前只有裸 div，长文本会顶出屏幕） ---------- */
.ma-row {
  display: flex; align-items: center; gap: 10px;
  box-sizing: border-box; width: 100%;
  padding: 0 16px; margin-bottom: 10px;
}
.ma-row.col { flex-direction: column; align-items: stretch; gap: 6px; }
.ma-k { flex: 0 0 auto; font-size: 11.5px; color: var(--text-3); }
.ma-v { margin-left: auto; font-size: 11.5px; font-weight: 650; text-align: right; }
.ma-v.on { color: var(--down); }
.ma-v.off { color: var(--text-3); }
.ma-row input {
  width: 100%; box-sizing: border-box;
  padding: 9px 10px; border-radius: 9px;
  font-family: inherit; font-size: 12px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line-soft); outline: none;
}
.ma-row input:focus { border-color: rgba(232,184,75,.5); }
.ma-hint { font-size: 9.5px; line-height: 1.55; color: var(--text-3); }
.sheet { overflow-x: hidden; }

/* ---------- 0.24：节标题别被统计文字挤成两行 ---------- */
/* 持仓那一行的统计变长（几笔在持 / 来源已删 / 实时时间）后，「持仓监控」被压成
 * 「持仓监」+「控」，按钮也被拆成「重新复」+「核」。标题与按钮永远整行，
 * 放不下就让 .tt（统计）换到第二行。 */
.section-title {
  flex-wrap: wrap; row-gap: 5px;
}
/* 只给持仓这一节加 nowrap：它的统计最长、最容易把标题拆成两行；
 * 别的节标题短，保持原来的可换行，免得长说明文字溢出 */
.section-title.pos-head { white-space: nowrap; }
.section-title.pos-head > .tt { white-space: normal; }
.section-title > .mini-btn, .section-title > .link { flex: 0 0 auto; white-space: nowrap; }

/* 持仓这一行：标题 + 按钮在第一行，统计整条放第二行。
   统计比标题长得多，挤在一行只会把字拆开。 */
.section-title.pos-head > .tt { order: 3; flex: 1 1 100%; }
.section-title.pos-head > .mini-btn { order: 2; margin-left: auto; }

/* ---------- 0.25：信号模拟账户条 ---------- */
/* 一行看明白「照这些信号做，现在是多少钱」，点进去是完整战绩。
   放在信号追踪顶部：用户的疑问是「这些信号有用吗」，答案得在信号旁边。 */
.pp-strip {
  display: flex; align-items: center; gap: 9px;
  width: calc(100% - 32px); margin: 10px 16px 2px;
  padding: 9px 11px; border-radius: 13px; text-align: left;
  background: linear-gradient(135deg, rgba(232,184,75,.13), rgba(232,184,75,.035));
  border: 1px solid rgba(232,184,75,.26);
  font-family: inherit; cursor: pointer;
}
.pp-strip:active { transform: scale(.995); }
.pp-ico {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(232,184,75,.16); color: var(--brand);
}
.pp-ico svg { width: 15px; height: 15px; }
.pp-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-tx b { font-size: 11.5px; font-weight: 650; color: var(--text); }
.pp-tx span { font-size: 9.5px; color: var(--text-3); }
.pp-r { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pp-r b { font-size: 13.5px; font-weight: 700; }
.pp-r i {
  font-style: normal; font-size: 9px; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 1px;
}
.pp-r i svg { width: 11px; height: 11px; }

/* ---------- 0.26：算力值 · 权益矩阵 · 关联账户 ---------- */

/* 跟单条去掉「整条都是按钮」的结构：右边多了一个「查看账户」，
   按钮不能套按钮，所以外层改 div，左半区单独可点。 */
.pp-strip { cursor: default; }
.pp-tx {
  display: flex; flex-direction: column; gap: 2px;
  border: 0; background: none; padding: 0; text-align: left;
  font-family: inherit; cursor: pointer; min-width: 0;
}
.pp-tx:active { opacity: .7; }
.pp-go {
  display: inline-flex; align-items: center; gap: 1px;
  border: 0; background: none; padding: 0; margin: 0;
  font-family: inherit; font-size: 9.5px; color: var(--brand);
  cursor: pointer; white-space: nowrap;
}
.pp-go svg { width: 11px; height: 11px; }

/* 会员卡里的算力值 */
.mc-quota .mq-head b i { font-style: normal; font-size: 11px; margin-left: 2px; color: var(--text-3); }

/* 算力值概览卡 */
.coin-card {
  margin: 10px 16px 2px; padding: 12px 13px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(232,184,75,.12), rgba(232,184,75,.03));
  border: 1px solid rgba(232,184,75,.24);
  cursor: pointer;
}
.coin-card:active { transform: scale(.996); }
.cc-top { display: flex; align-items: center; justify-content: space-between; }
.cc-top b { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: var(--text); }
.cc-top b svg { width: 14px; height: 14px; color: var(--brand); }
.cc-more { display: inline-flex; align-items: center; gap: 1px; font-size: 10px; color: var(--brand); }
.cc-more svg { width: 11px; height: 11px; }
.cc-bar { display: flex; gap: 10px; margin-top: 9px; }
.cc-bar > div { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.cc-bar b { font-size: 16px; font-weight: 700; color: var(--text); }
.cc-bar b.up { color: var(--up); }
.cc-bar span { font-size: 9px; color: var(--text-3); }
.cc-rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cc-rules span {
  font-size: 9px; padding: 2px 6px; border-radius: 6px;
  background: rgba(var(--ink), .05); color: var(--text-2);
}
.cc-use { margin-top: 8px; font-size: 9px; line-height: 1.6; color: var(--text-3); }

/* 权益对比矩阵 */
.ent-table {
  margin: 8px 16px 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-soft);
}
.et-row {
  display: grid; grid-template-columns: 1.15fr .85fr .85fr .85fr;
  align-items: center; gap: 4px;
  padding: 8px 10px; border-bottom: 1px solid var(--line-soft);
  font-size: 10.5px; color: var(--text-2);
}
.et-row:last-child { border-bottom: 0; }
.et-row span { color: var(--text-3); }
.et-row b { font-size: 10px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.45; }
.et-row b.off { color: var(--text-3); font-weight: 400; }
.et-head { background: rgba(var(--ink), .035); }
.et-head b { font-size: 10.5px; font-weight: 700; }
.et-foot { background: rgba(var(--ink), .02); }
.et-foot b { font-size: 12px; }
.et-note { margin: 6px 18px 0; font-size: 9.5px; line-height: 1.6; color: var(--text-3); }

/* 联系客服：号码是主角，复制按钮是唯一必须成功的动作 */
.sup-card {
  background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 14px 14px 12px; margin-bottom: 10px; text-align: center;
}
.sup-k { font-size: 10px; letter-spacing: .4px; color: var(--text-3); }
.sup-v {
  font-size: 24px; font-weight: 720; color: var(--text); margin: 4px 0 12px;
  letter-spacing: .5px; user-select: all; word-break: break-all;
}
.sup-acts { display: flex; gap: 8px; }
.sup-acts .btn { flex: 1 1 0 !important; }
.sup-qq { align-items: center; justify-content: center; text-decoration: none; }
.sup-tip { margin-top: 10px; font-size: 10px; line-height: 1.6; color: var(--text-3); }

/* 关联账户抽屉 */
.lk-tip { font-size: 10px; line-height: 1.65; color: var(--text-3); margin-bottom: 10px; }
.lk-tip b { color: var(--text); }
.lk-list { display: flex; flex-direction: column; gap: 7px; }
.lk-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 11px; border-radius: 12px; text-align: left;
  background: rgba(var(--ink), .035); border: 1px solid transparent;
  font-family: inherit; cursor: pointer;
}
.lk-row.on { border-color: rgba(232,184,75,.5); background: rgba(232,184,75,.09); }
.lk-radio {
  flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
}
.lk-row.on .lk-radio { border-color: var(--brand); }
.lk-radio i { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.lk-row.on .lk-radio i { background: var(--brand); }
.lk-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lk-tx b { font-size: 12px; font-weight: 600; color: var(--text); }
.lk-tx span { font-size: 9.5px; color: var(--text-3); }
.lk-cur { flex: 0 0 auto; font-size: 9px; color: var(--brand); }
.lk-busy { flex: 0 0 auto; font-size: 9px; color: var(--text-3); }
.lk-empty, .lk-locked {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  padding: 14px; border-radius: 13px;
  background: rgba(var(--ink), .035); border: 1px dashed var(--line-soft);
}
.lk-empty b, .lk-locked b { font-size: 12px; color: var(--text); }
.lk-empty span, .lk-locked span { font-size: 10px; line-height: 1.6; color: var(--text-3); }

/* 算力值明细 */
.coin-hero {
  display: flex; gap: 8px; margin-bottom: 9px;
}
.coin-hero > div {
  flex: 1; padding: 10px 8px; border-radius: 12px; text-align: center;
  background: rgba(232,184,75,.08); border: 1px solid rgba(232,184,75,.18);
}
.coin-hero b { display: block; font-size: 17px; font-weight: 700; color: var(--brand); }
.coin-hero span { font-size: 9px; color: var(--text-3); }
.coin-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.coin-rules span {
  font-size: 9px; padding: 2px 7px; border-radius: 6px;
  background: rgba(var(--ink), .05); color: var(--text-2);
}
.coin-list { display: flex; flex-direction: column; }
.coin-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 2px; border-bottom: 1px solid var(--line-soft);
}
.coin-row:last-child { border-bottom: 0; }
.cr-k {
  flex: 0 0 auto; font-size: 9px; padding: 2px 6px; border-radius: 5px;
  background: rgba(var(--ink), .06); color: var(--text-3);
}
.cr-n { flex: 1 1 auto; min-width: 0; font-size: 11px; color: var(--text-2); display: flex; flex-direction: column; gap: 1px; }
.cr-n i { font-style: normal; font-size: 9px; color: var(--text-3); }
.coin-row > b { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--text-2); }
.coin-row > b.up { color: var(--up); }
.coin-empty { padding: 22px 0; text-align: center; font-size: 10.5px; color: var(--text-3); }
.pp-strip.idle { background: rgba(var(--ink), .035); border-color: var(--line-soft); }
.pp-strip.idle .pp-ico { background: rgba(var(--ink), .06); color: var(--text-3); }

/* ---------- 算力值直购套餐（0.27） ---------- */
.pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pack-card {
  position: relative;
  display: block;
  text-align: left;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  transition: border-color .18s, transform .18s;
}
.pack-card:active { transform: scale(.985); }
.pack-card:hover { border-color: var(--brand); }
.pk-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pk-top b { font-size: 15px; font-weight: 700; color: var(--text-1); }
.pk-top i {
  font-style: normal;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 6px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
}
.pk-coins { margin-top: 4px; font-size: 11px; color: var(--text-2); }
.pk-coins b { font-size: 16px; font-weight: 700; color: var(--brand); }
.pk-rate { margin-top: 2px; font-size: 9.5px; color: var(--text-3); }

/* ---------- 模拟账户：新建入口（0.28） ---------- */
.acct-new {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--brand) 55%, transparent);
  background: color-mix(in srgb, var(--brand) 6%, var(--card));
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, transform .18s;
}
.acct-new:active { transform: scale(.99); }
.acct-new:hover { border-color: var(--brand); }
.acct-new .an-plus {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
}
.acct-new .an-plus svg { width: 17px; height: 17px; }
.acct-new .an-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-new .an-tx b { font-size: 13px; font-weight: 600; color: var(--text-1); }
.acct-new .an-tx i { font-style: normal; font-size: 11px; line-height: 1.45; color: var(--text-3); }
.acct-new.full { border-style: solid; border-color: var(--line); background: var(--card); cursor: default; }

/* ---------- 模拟账户卡片：底部操作行（0.28） ---------- */
.se-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.se-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.se-del {
  flex: none;
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: color .16s, border-color .16s;
}
.se-del:hover, .se-del:active {
  color: var(--down);
  border-color: color-mix(in srgb, var(--down) 45%, transparent);
}

/* ---------- 持仓卡：减仓（0.30） ---------- */
.pc-apply.trim { background: rgba(245,166,35,.10); }
.mini-btn.warn { color: #C8801A; border-color: rgba(245,166,35,.42); }
.mini-btn.warn:active { color: #F5A623; }
html[data-theme="dark"] .mini-btn.warn { color: #F7B84B; }

/* ---------- 模拟账户：空账本提示（0.31） ---------- */
/* 空态那句「还没有成交…」比原来的一行提示长，固定 42px 会挤成两行后被裁掉 */
.se-curve.empty {
  height: auto;
  min-height: 42px;
  padding: 7px 10px;
  line-height: 1.5;
  text-align: center;
}

/* ===== 0.32 更新时段 · 停盘标记 ===== */

/* 时段块：跟「更新频率」块并排的两兄弟，横线分隔保持同一种节奏 */
.dt-hours { margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-soft); }
.dt-hours .dc-head { align-items: center; }
.dt-hours .dc-v { margin-left: auto; }
.dt-hours .mini-btn { flex: 0 0 auto; margin-left: 8px; padding: 3px 8px; font-size: 10px; }

/* 停盘：不判的品种压暗，行尾给一个「停」字，比一句「等待下一轮」诚实 */
.sy-shut {
  margin-left: 4px; padding: 1px 3px; border-radius: 3px;
  font-style: normal; font-size: 8.5px; line-height: 1.3; font-weight: 600;
  color: var(--text-3); background: rgba(var(--ink), .07);
}
.sy-row.shut .sy-px,
.sy-row.shut .sy-w { opacity: .5; }
.sy-row.shut .sy-why { color: var(--text-3); }

/* 上一轮为什么没跑：停盘 / 时段外 / 无持仓 */
.dt-skip {
  margin-top: 6px; padding: 6px 8px; border-radius: 7px;
  font-size: 10px; line-height: 1.55; color: var(--text-3);
  background: rgba(var(--ink), .045);
}

/* ---- 时段抽屉 ---- */
.hw-tip {
  margin: 8px 16px 0; padding: 8px 10px; border-radius: 8px;
  font-size: 10.5px; line-height: 1.6; color: var(--text-2);
  background: rgba(var(--ink), .05);
}
.hw-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.hw-row.time input {
  flex: 1; min-width: 0; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface-2); color: var(--text);
  font-size: 13px; font-family: inherit;
}
.hw-k { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--text-2); }
.hw-lab {
  display: flex; align-items: baseline; gap: 8px;
  padding: 16px 16px 0; font-size: 11px; font-weight: 600; color: var(--text-2);
}
.hw-lab small { font-size: 9.5px; font-weight: 400; color: var(--text-3); }
.hw-days { display: flex; gap: 6px; padding: 8px 16px 0; }
.hw-day {
  flex: 1; height: 34px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
  color: var(--text-2); font-size: 11px; font-weight: 600; font-family: inherit;
}
.hw-day.on {
  border-color: transparent; color: var(--text);
  background: rgba(var(--ink), .1);
}
html[data-theme="light"] .hw-day.on { background: rgba(232, 184, 75, .2); color: #2A2410; }
.hw-quick { display: flex; gap: 6px; padding: 8px 16px 0; }
.hw-hint { display: block; padding: 9px 16px 0; font-size: 9.5px; line-height: 1.6; color: var(--text-3); }

/* 开关：沿用「启用 / 全天」的语义，不做成系统开关的样子 */
.hw-sw {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
  color: var(--text-2); font-size: 11px; font-family: inherit;
}
.hw-sw i {
  width: 30px; height: 17px; border-radius: 999px; position: relative;
  background: rgba(var(--ink), .14); transition: background .16s;
}
.hw-sw i::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; transition: transform .16s;
}
.hw-sw b { font-weight: 600; }
.hw-sw.on { border-color: transparent; background: rgba(232, 184, 75, .16); color: var(--brand); }
.hw-sw.on i { background: var(--brand); }
.hw-sw.on i::after { transform: translateX(13px); }

/* ========== 回测：配置回显 · 结论可信度 · 配置敏感度（0.43） ========== */

/* 配置来源（0.47）：说明这套回测配置是从研判同步来的，以及报告是否过期 */
.bt-src { margin: 10px 0 0; padding: 11px 14px; }
.bt-src.stale { border-color: rgba(232, 184, 75, .34); }
.bs-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bs-tag {
  flex: 0 0 auto; font-size: 10px; line-height: 1; padding: 5px 8px; border-radius: 999px;
  background: rgba(232, 184, 75, .14); color: var(--brand); white-space: nowrap;
}
.bs-line { font-size: 11px; line-height: 1.6; color: var(--text); min-width: 0; word-break: break-word; }
.bs-note { margin-top: 6px; font-size: 10px; line-height: 1.65; color: var(--text-3); }
.bs-act { margin-top: 8px; }
.bs-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-size: 10.5px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: transparent; color: var(--text-2);
}
.bs-btn svg { width: 11px; height: 11px; }
.bs-btn.primary { border-color: transparent; background: rgba(232, 184, 75, .16); color: var(--brand); font-weight: 620; }
.bs-stale {
  display: flex; flex-direction: column; gap: 4px; margin-top: 9px;
  padding: 9px 11px; border-radius: 10px;
  background: rgba(232, 184, 75, .09); border: 1px solid rgba(232, 184, 75, .26);
}
.bs-stale b { font-size: 11px; color: var(--brand); }
.bs-stale span { font-size: 10px; line-height: 1.6; color: var(--text-2); }
.bs-stale .bs-btn { align-self: flex-start; margin-top: 4px; }

/* 本次配置：服务端回显的那几项，一行 chip 说完 */
.bt-cfg { padding: 12px 14px; }
.bt-cfg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bt-cfg-chips span {
  font-size: 10.5px; line-height: 1; padding: 6px 9px; border-radius: 999px;
  background: rgba(var(--ink), .05); color: var(--text-2);
  border: 1px solid var(--line-soft); white-space: nowrap;
  /* 单个标签最长也只能占满一行：不设上限时，「指标 9 项（…）」会顶出屏幕，
   * 把后面的闸门 / 信心 / 战法全挤到看不见 */
  max-width: 100%; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
}
.bt-cfg-note { margin-top: 9px; font-size: 10px; line-height: 1.65; color: var(--text-3); }

/* 结论可信度：只在「样本不足 / 与零无异」时出现，正常的报告不占位置 */
.bt-reli {
  display: flex; align-items: baseline; gap: 8px; margin: 8px 16px 0;
  padding: 9px 12px; border-radius: 12px; font-size: 10.5px; line-height: 1.6;
  border: 1px solid transparent;
}
.bt-reli b { font-size: 11px; font-weight: 650; flex: 0 0 auto; }
.bt-reli span { color: var(--text-2); }
.bt-reli.bad { background: rgba(232,148,75,.09); border-color: rgba(232,148,75,.24); }
.bt-reli.bad b { color: #E8944B; }
.bt-reli.weak { background: rgba(232,184,75,.08); border-color: rgba(232,184,75,.22); }
.bt-reli.weak b { color: var(--brand); }
.bt-reli.none { background: rgba(var(--ink), .05); border-color: var(--line-soft); }
.bt-reli.none b { color: var(--text-2); }

/* 配置敏感度 */
.bt-scan-intro { font-size: 11px; line-height: 1.75; color: var(--text-2); margin-bottom: 12px; }
.bt-scan-intro b { color: var(--text); font-weight: 600; }
.bt-scan-base {
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  font-size: 10.5px; color: var(--text-3); margin: -2px 0 10px;
}
.bt-scan-base b { font-size: 12px; }
.bt-scan-table { font-size: 11px; }
.bt-scan-tr {
  display: grid; grid-template-columns: 1.55fr .44fr .56fr .56fr .56fr .9fr;
  align-items: center; gap: 4px; padding: 8px 6px;
  border-bottom: 1px solid var(--line-soft);
}
.bt-scan-tr:last-child { border-bottom: none; }
.bt-scan-th { color: var(--text-3); font-size: 9.5px; padding: 4px 6px 6px; border-bottom: 1px solid var(--line); }
.bt-scan-tr > span { text-align: right; }
.bt-scan-tr > span:first-child { text-align: left; }
.bt-scan-label { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; color: var(--text-2); }
.bt-scan-label i {
  font-style: normal; font-size: 9px; letter-spacing: .04em;
  color: var(--text-3); text-transform: uppercase;
}
.bt-scan-verdict { font-size: 9.5px; line-height: 1.4; }
.bt-scan-verdict.same { color: var(--text-3); }
.bt-scan-verdict.weak { color: var(--brand); }
.bt-scan-verdict.up { color: var(--up); }
.bt-scan-verdict.down { color: var(--down); }
.bt-scan-notes {
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line);
  font-size: 10px; line-height: 1.75; color: var(--text-2);
}
.bt-scan-notes div + div { margin-top: 3px; }

/* 三风格一致性 */
.bt-cmp-consist {
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
  margin: -3px 0 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(124,107,255,.09); font-size: 10.5px; color: var(--text-2);
}
.bt-cmp-consist b { font-size: 13px; color: var(--ai-2); font-weight: 650; }
.bt-cmp-consist span { font-size: 9.5px; color: var(--text-3); line-height: 1.5; }

/* ---------- 提示词：随配置自动写入（0.44） ---------- */
.pc-auto {
  position: static; display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-style: normal; font-size: 9px; font-weight: 500; letter-spacing: .02em;
  color: var(--ai-2); background: rgba(124,107,255,.16);
  border-radius: 6px; vertical-align: 1px; white-space: nowrap;
}
.pc-chips {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px;
}
.pc-chips > span {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 2px 7px; border-radius: 7px; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.02);
  font-size: 9.5px; color: var(--text-2); line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-chips i {
  font-style: normal; font-size: 9px; color: var(--text-3);
}
.prompt-card.pc-live { align-items: flex-start; }
.prompt-card.pc-live .pc-ic { margin-top: 1px; }
.prompt-card.pc-live > svg { margin-top: 6px; }

/* 抽屉里的「这五项写了什么」 */
.pc-wrote {
  display: flex; flex-direction: column; gap: 1px;
  margin: 0 0 10px; padding: 8px 10px;
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 12px;
}
.pc-wrote > div {
  display: flex; align-items: baseline; gap: 7px;
  padding: 3px 0; font-size: 10.5px; color: var(--text-2);
}
.pc-wrote > div + div { border-top: 1px solid var(--line-soft); }
.pc-wrote i {
  font-style: normal; font-size: 9.5px; color: var(--ai-2); flex: 0 0 12px;
}
.pc-wrote b { font-weight: 600; font-size: 10px; color: var(--text-3); flex: 0 0 26px; }
.pc-wrote span { flex: 1; min-width: 0; line-height: 1.5; color: var(--text); }

/* ---------- 策略编辑器：分节序号 / 出场两档 / 空转开关（0.45） ---------- */
.card-title .step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-right: 6px; vertical-align: 1px;
  border-radius: 5px; background: rgba(232,184,75,.16); color: var(--brand);
  font-size: 9.5px; font-weight: 700; font-style: normal;
}

/* 出场：两档止盈并排，生效的那档亮、另一档灰 */
.eaexit-tps { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.eaexit-tp {
  display: flex; align-items: center; gap: 7px; padding: 7px 9px;
  border-radius: 9px; border: 1px solid var(--line-soft);
  background: rgba(var(--ink), .04); cursor: pointer;
}
.eaexit-tp.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.eaexit-tp.off { opacity: .58; }
.eaexit-tp input[type="radio"] { width: 13px; height: 13px; accent-color: var(--brand); flex: 0 0 auto; margin: 0; }
.eaexit-tp .etp-k { font-size: 11px; color: var(--text-2); flex: 0 0 auto; }
.eaexit-tp.on .etp-k { color: var(--brand); }
.eaexit-tp .etp-v {
  width: 48px; margin-left: auto; padding: 3px 5px; text-align: right;
  font-family: var(--mono, ui-monospace); font-size: 11.5px; color: var(--text-1);
  background: rgba(0,0,0,.22); border: 1px solid var(--line-soft); border-radius: 6px; outline: none;
}
.eaexit-tp .etp-u { font-size: 9.5px; color: var(--text-3); flex: 0 0 auto; }
.eaexit-tp .etp-now, .eaexit-tp .etp-off {
  font-style: normal; font-size: 8.5px; padding: 1px 5px; border-radius: 5px; flex: 0 0 auto;
}
.eaexit-tp .etp-now { color: var(--brand); background: rgba(232,184,75,.16); }
.eaexit-tp .etp-off { color: var(--text-3); background: rgba(var(--ink), .07); }

/* 参数：没被这套规则引用的项灰掉，并写明「未参与」 */
.ea-field.off { opacity: .55; }
.ea-field .ef-idle {
  display: inline-block !important; margin-top: 2px; padding: 0 4px;
  font-size: 8.5px !important; color: var(--text-3) !important;
  border: 1px solid var(--line-soft); border-radius: 4px;
}

/* 报告：这次配置有没有起作用 */
.ea-eff .eff-exits { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.eff-row { display: flex; align-items: center; gap: 8px; }
.eff-k { flex: 0 0 52px; font-size: 10.5px; color: var(--text-2); }
.eff-bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(var(--ink), .07); overflow: hidden; }
.eff-bar i { display: block; height: 100%; border-radius: 4px; background: var(--text-3); }
.eff-bar i.up { background: var(--up); }
.eff-bar i.down { background: var(--down); }
.eff-n { flex: 0 0 62px; text-align: right; font-size: 11px; color: var(--text-1); }
.eff-n small { color: var(--text-3); margin-left: 4px; font-size: 9.5px; }
.eff-meta { margin-top: 9px; font-size: 10.5px; color: var(--text-3); }
.eff-meta b { color: var(--text-2); font-weight: 600; }
.eff-warn { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.eff-warn-row {
  display: flex; gap: 7px; padding: 7px 9px; border-radius: 9px;
  background: rgba(232,184,75,.08); border: 1px solid rgba(232,184,75,.2);
  font-size: 10.5px; line-height: 1.55; color: var(--text-2);
}
.eff-warn-row i {
  flex: 0 0 5px; height: 5px; margin-top: 5px; border-radius: 50%; background: var(--brand);
}
.eff-ok {
  display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 10px;
  border-radius: 9px; background: rgba(18,196,139,.08); border: 1px solid rgba(18,196,139,.22);
  font-size: 10.5px; color: var(--text-2);
}
.eff-ok svg { width: 13px; height: 13px; color: #12C48B; flex: 0 0 auto; }
.eff-fix { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.eff-fix-row {
  position: relative; padding: 9px 96px 9px 10px; border-radius: 10px;
  background: rgba(124,107,255,.07); border: 1px solid rgba(124,107,255,.2);
}
.efx-t { font-size: 11px; color: var(--text-1); }
.efx-t b { font-weight: 600; }
.efx-d { margin-top: 3px; font-size: 10px; line-height: 1.5; color: var(--text-3); }
.efx-go {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  padding: 6px 10px; border-radius: 8px; font-size: 10.5px; cursor: pointer;
  color: #0B0F16; background: var(--brand); border: 0;
}

/* 图层按钮与图例都要压成一行：中文标签一旦被挤窄就会竖排成「阻/力」，很难看 */
.chart-lines .cl-chip { white-space: nowrap; }
.chart-legend { flex-wrap: wrap; row-gap: 4px; }
.chart-legend > span { white-space: nowrap; }
/* 带序号的卡片标题：序号和文字必须包在同一个弹性盒里，
   否则 .card-title 的 space-between 会把裸文字当成独立项、把标题顶到中间 */
.card-title .ct-name { display: inline-flex; align-items: center; min-width: 0; }

/* ---------- 提示词可直接改（0.46） ---------- */
.pc-auto.pc-h3 { position: static; margin-left: 6px; }
.pc-manual { border-color: rgba(232,184,75,.36); background: rgba(232,184,75,.05); }
.pc-drift-tag {
  display: inline-block; margin-left: 5px; padding: 1px 5px;
  font-style: normal; font-size: 9px; font-weight: 500;
  color: var(--brand); background: rgba(232,184,75,.14); border-radius: 6px;
  vertical-align: 1px;
}
.prompt-edit {
  width: 100%; box-sizing: border-box;
  min-height: 220px; max-height: 46vh; resize: vertical;
  padding: 10px 11px; margin: 0;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 10.5px; line-height: 1.62; color: var(--text-1);
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 12px;
  outline: none; -webkit-appearance: none;
}
.prompt-edit:focus { border-color: rgba(124,107,255,.55); }
.pe-meta {
  display: flex; align-items: center; gap: 4px;
  margin: 6px 2px 2px; font-size: 9.5px; color: var(--text-3);
}
.pe-drift {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 8px 0 0; padding: 8px 10px; border-radius: 9px;
  font-size: 10.5px; line-height: 1.5; color: var(--text-2);
  background: rgba(232,184,75,.08); border: 1px solid rgba(232,184,75,.22);
}
.pe-drift button {
  margin-left: auto; flex: 0 0 auto; padding: 4px 9px; border-radius: 7px;
  font-size: 10px; cursor: pointer; color: #0B0F16; background: var(--brand); border: 0;
}

/* ===== 更新提示（0.52）=====
 * 「我的」页顶部的一条窄提示：有新版本才出现，点「查看」进抽屉看更新说明与下载地址。
 * 不用大红大绿：它不是错误，只是「有新东西了」，抢了会员卡片的注意力反而不好。 */
.upd-strip {
  display: flex; align-items: center; gap: 10px;
  margin: 0 16px 12px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(232,184,75,.14), rgba(232,184,75,.05));
  border: 1px solid rgba(232,184,75,.28);
}
.upd-strip .us-ic {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; color: var(--brand);
  background: rgba(232,184,75,.14);
}
.upd-strip .us-ic svg { width: 16px; height: 16px; }
.upd-strip .us-tx { flex: 1; min-width: 0; }
.upd-strip .us-tx b { display: block; font-size: 12.5px; font-weight: 660; color: var(--text); }
.upd-strip .us-tx span {
  display: block; margin-top: 2px; font-size: 10.5px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upd-strip .us-go {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 9px; cursor: pointer;
  font-size: 11px; font-weight: 640; font-family: inherit;
  color: #1B1408; background: var(--brand); border: 0;
}
.upd-strip .us-x {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  font-size: 14px; line-height: 1; font-family: inherit;
  color: var(--text-3); background: transparent; border: 0;
}
.upd-strip .us-x:active { background: rgba(var(--ink),.08); }

.upd-notes {
  margin: 10px 0 14px; padding: 12px 13px; border-radius: 12px;
  background: rgba(var(--ink),.04); border: 1px solid var(--line-soft);
  font-size: 12px; line-height: 1.75; color: var(--text-2);
  max-height: 46vh; overflow: auto; white-space: normal;
}
.sh-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ==================================================================
 * 0.54 首启同意 / 人机验证 / 条款弹层 / 注销
 * 这一段只做「第一次打开」和「设置里那两件合规的事」，
 * 全部用变量取色，深浅色主题自动跟随。
 * ================================================================== */
.onb { padding: 22px 18px calc(28px + var(--safe-b)); }
.onb-logo { display: block; margin: 6px auto 10px; border-radius: 16px; }
.onb-title { margin: 0; text-align: center; font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.onb-sub { margin: 6px 0 18px; text-align: center; font-size: 12px; color: var(--text-3); letter-spacing: .3px; }

.onb-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 14px;
}
.onb-row { padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.onb-row:last-child { border-bottom: 0; }
.onb-row > b { display: block; font-size: 12.5px; margin-bottom: 4px; color: var(--text); }
.onb-row span { display: block; font-size: 12px; line-height: 1.65; color: var(--text-2); }
/* 说明里点睛的那半句（如「不构成投资建议」）要跟着段落走，不能被上面那条 display:block 顶成独立一行 */
.onb-row span b { display: inline; font-size: inherit; font-weight: 600; color: #E7A08C; margin: 0; }
.onb-row.warn b { color: var(--brand); }
.onb-row.warn span { color: var(--text-2); }
.onb-row.warn b { color: #F0997A; }

.onb-links { display: flex; justify-content: center; gap: 16px; margin: 14px 0 16px; }
.onb-links b { font-size: 12px; color: var(--brand); font-weight: 500; }

.onb-foot { margin: 12px 2px 0; text-align: center; font-size: 11px; color: var(--text-3); line-height: 1.6; }
.onb-err { margin-top: 8px; font-size: 12px; color: #F0846B; text-align: center; }

/* 验证码：图 + 换一张
 * 图的底色与圆角由服务端按主题画好，容器不再套第二层框，
 * 否则会出现「白卡片里再嵌一块灰」的双层边。 */
.onb-cap {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.onb-svg { flex: 1; min-width: 0; display: flex; justify-content: center; }
.onb-svg svg { width: 100%; max-width: 230px; height: auto; }
.onb-cap-ph { font-size: 12px; color: var(--text-3); padding: 12px 0; }

/* 注册用的验证码弹层（盖在抽屉之上） */
.cap-modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(4,6,10,.62); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease; padding: 20px;
}
.cap-modal.show { opacity: 1; }
.cap-box {
  width: 100%; max-width: 340px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.cap-t { font-size: 16px; font-weight: 650; }
.cap-s { font-size: 12px; color: var(--text-3); margin: 4px 0 12px; line-height: 1.55; }
.cap-img { display: flex; justify-content: center; cursor: pointer; }
.cap-img svg { width: 100%; max-width: 210px; height: auto; }
.cap-box .input { margin-top: 10px; }
.cap-btns { display: flex; gap: 10px; margin-top: 14px; }

/* 找回密码：验证码 + 获取按钮同一行 */
.fg-row { display: flex; gap: 10px; margin-top: 12px; align-items: flex-end; }
.fg-row .fld { flex: 1; min-width: 0; }
.fg-send { flex: 0 0 auto; height: 41px; padding: 0 14px; font-size: 12px; white-space: nowrap; }

/* 找回密码：发信后的说明。
 * 「验证码已发送」只代表 SMTP 收下了这封信，地址写错时退信是异步回到发件箱的，
 * 我们当场得不到反馈 —— 所以把「没收到怎么办」直接摆在按钮下面，别只弹一个 toast。 */
.fg-hint {
  margin: 10px 0 0; font-size: 10.5px; line-height: 1.7; color: var(--text-3);
  padding-left: 1px;
}
.fg-hint[data-tone="sent"] { color: var(--text-2); }
.fg-hint b { color: var(--brand); font-weight: 600; }

/* 登录 / 注册页：邮箱域名拼错时的就地提示（带一键改成正确写法）。
 * 1px 的红边在浅色主题下几乎看不出来，所以补一圈淡红光晕 —— 要让人一眼
 * 看出「是这个格子填错了」，而不是只看到下面多了一行小字。
 * 注意登录框用的是 .fld input（没有 .input 类），两个选择器都要写上。 */
.input.is-bad,
.fld input.is-bad { border-color: var(--up); box-shadow: 0 0 0 3px rgba(245, 72, 95, .12); }
.fld-fix { display: block; margin-top: 6px; font-size: 10.5px; line-height: 1.6; color: var(--text-2); }
.fld-fix b { color: var(--brand); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* 条款 / 隐私：弹层里嵌整页，返回时原页面还在 */
.doc-frame { margin: 6px 0 10px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.doc-frame iframe { display: block; width: 100%; height: 62vh; border: 0; }

/* 注销确认 */
.del-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 14px; }
.del-row { padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.del-row:last-child { border-bottom: 0; }
.del-row b { display: block; font-size: 12.5px; margin-bottom: 3px; }
.del-row span { display: block; font-size: 11.5px; color: var(--text-2); line-height: 1.6; }

.btn-danger { background: linear-gradient(135deg, #F4636F, #D8394C); color: #fff; flex: 1; box-shadow: 0 6px 20px rgba(216,57,76,.28); }

.pay-terms b { color: var(--brand); font-weight: 500; }

/* 注册提示：只用邮箱、手机号后补 */
.auth-tip {
  margin: -2px 0 2px; font-size: 10.5px; line-height: 1.75; color: var(--text-3);
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px;
  padding: 8px 10px; text-align: left;
}

/* 资料里「手机号必填」的角标。
 * 注意 .ea-field > span i 本身是 display:block（那是「选填 · 最多 16 字」那行提示），
 * 不显式改回 inline-block 的话，这个角标会拉成一条横贯整行的色带。 */
.ea-field > span .must {
  display: inline-block; margin-left: 5px; padding: 1px 5px;
  font-size: 9px; line-height: 1.35; letter-spacing: .2px;
  font-style: normal; font-weight: 600; color: var(--brand);
  background: rgba(232, 184, 75, .14); border-radius: 4px;
}

/* 账户卡里「手机号还没填」的催办条 */
.au-todo {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px;
  padding: 10px 12px; text-align: left; cursor: pointer;
  background: rgba(232, 184, 75, .08); border: 1px dashed rgba(232, 184, 75, .38);
  border-radius: var(--radius-sm); color: var(--text);
}
.au-todo-ic { flex: 0 0 auto; width: 18px; height: 18px; color: var(--brand); display: flex; }
.au-todo-ic svg { width: 18px; height: 18px; }
.au-todo > span:nth-child(2) { flex: 1; min-width: 0; }
.au-todo b { display: block; font-size: 12.5px; font-weight: 600; }
.au-todo small { display: block; font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.au-todo i { flex: 0 0 auto; font-style: normal; font-size: 11px; color: var(--brand); }
.au-todo:active { transform: scale(.99); }
