/* AI 预测师榜单 / 个人页：沿用规则榜的纸面、松绿、黄铜体系 */
.ledger .row { grid-template-columns: 22px minmax(0,1fr) 86px 68px 9px; }
.ledger .fig-week { border-left: 1px solid var(--line); padding-left: 7px; }
.ai-name-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ai-name { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-chip { flex: none; font-family: var(--mono); font-size: 8px; padding: 1px 4px; border: 1px solid var(--line-strong); color: var(--muted); }
.ai-config { display: block; margin-top: 2px; color: var(--faint); font-family: var(--mono); font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-rate { color: var(--ink); }
.ai-empty { padding: 26px 10px; color: var(--faint); text-align: center; font-size: 11px; }
.days-tabs { display: flex; gap: 0; margin: 0 0 11px; }
.days-tab { border: 1px solid var(--line-strong); border-left: 0; background: transparent; color: var(--faint); height: 28px; padding: 0 12px; font-family: var(--mono); font-size: 9px; }
.days-tab:first-child { border-left: 1px solid var(--line-strong); }
.days-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ai-profile { background: var(--masthead); color: var(--masthead-ink); padding: 16px var(--pad) 14px; border-bottom: 3px solid var(--brass); }
.ai-profile .back-link { color: var(--masthead-muted); }
.ai-profile h1 { margin: 10px 0 4px; font-family: var(--display); font-size: clamp(25px,6vw,38px); line-height: 1; letter-spacing: -.03em; }
.ai-profile .desc { margin: 7px 0 0; color: var(--masthead-muted); font-size: 10.5px; line-height: 1.6; max-width: 640px; }
.ai-profile .profile-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.ai-profile .profile-tags span { border: 1px solid rgba(238,242,233,.18); color: var(--masthead-muted); padding: 3px 6px; font-family: var(--mono); font-size: 8.5px; }
.ai-profile .profile-tags b { color: var(--masthead-ink); }
.hit-list { display: grid; gap: 5px; }
.hit-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 28px; gap: 7px; align-items: center; font-family: var(--mono); font-size: 9px; }
.hit-row > span { color: var(--muted); }
.hit-track { height: 7px; background: #eef1ea; overflow: hidden; }
.hit-fill { display: block; height: 100%; background: var(--pine); }
.hit-row.is-bust > span { color: var(--oxide); }
.hit-row.is-bust .hit-fill { background: var(--oxide); }
.hit-count { text-align: right; color: var(--faint); }
.run-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.run-round { border-bottom: 1px solid var(--line); padding: 9px 0 10px; }
.run-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.run-issue { font-family: var(--mono); font-size: 10px; color: var(--ink); }
.run-result { font-family: var(--mono); font-size: 9px; padding: 1px 5px; border: 1px solid var(--line-strong); color: var(--muted); }
.run-result.is-win { color: var(--pine); border-color: #b9d3c4; }
.run-result.is-bust { color: var(--oxide); border-color: #d9bdb2; }
.run-meta { margin-left: auto; font-family: var(--mono); font-size: 8.5px; color: var(--faint); }
.run-shape { display: flex; gap: 3px; margin-top: 6px; flex-wrap: wrap; }
.shape-cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 25px; padding: 2px 3px; border: 1px solid var(--line); font-family: var(--mono); font-size: 8px; }
.shape-cell.hit { border-color: #b9d3c4; background: var(--pine-soft); color: var(--pine); }
.shape-cell.miss { border-color: #d9bdb2; background: var(--oxide-soft); color: var(--oxide); }
.shape-cell.pending { color: var(--faint); }
.shape-dir { font-weight: 600; }
.shape-act { font-size: 7.5px; opacity: .8; }
.run-foot { display: flex; justify-content: space-between; margin-top: 5px; color: var(--faint); font-family: var(--mono); font-size: 8.5px; }
.run-foot .pnl.pos { color: var(--pine); }
.run-foot .pnl.neg { color: var(--oxide); }
.ai-detail-grid { display: grid; gap: 10px; }
@media (min-width: 700px) {
  .ai-detail-grid { grid-template-columns: 1.25fr 1fr; }
  .ai-profile { padding-left: 28px; padding-right: 28px; }
}
.view-tabs { display: flex; border-bottom: 1px solid var(--ink); margin: 0 0 12px; }
.view-tab { height: 34px; padding: 0 14px; border: 0; background: transparent; color: var(--faint); font-family: var(--mono); font-size: 10px; border-bottom: 2px solid transparent; }
.view-tab.is-on { color: var(--ink); border-bottom-color: var(--ink); }
.rounds-loader, .rounds-end { padding: 14px 0; text-align: center; font-family: var(--mono); font-size: 9px; color: var(--faint); }
.rounds-sentinel { height: 1px; }

/* 组合盘轮次：一期三注，用文字写清「弃哪门 / 押哪三门 / 开哪门」。
   以前一格塞两个色块（弃门 + 开奖）没文字，用户分不清哪个是弃、
   也看不懂未中到底是没开中还是开在弃门上。 */
.cmb-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; margin-top: 5px; font-family: var(--mono); font-size: 9.5px; color: var(--ink-2); }
.cmb-line--open { margin-top: 3px; }
.cmb-tag { color: var(--faint); }
.cmb-tag--drop { color: var(--oxide); }
.cmb-drop { color: var(--oxide); font-weight: 700; }
.cmb-sep { color: var(--line-strong); }
.cmb-bets { color: var(--ink); }
.cmb-unit { color: var(--faint); }
.cmb-open { color: var(--ink); font-weight: 700; }
.cmb-why { color: var(--muted); }
.cmb-line--open .pnl { margin-left: auto; font-size: 11px; }
.run-result.is-miss { color: var(--oxide); border-color: #d9bdb2; }

/* ---- 组合盘轮次行（逐期连追）：弃 / 买 / 开 三行 ---- */
/* 颜色只表达结果：绿=命中 红=未中 深红=爆仓，不按位置猜 */
.run-round.rnd-win   { border-left: 2px solid #35c07a; }
.run-round.rnd-miss  { border-left: 2px solid #e05b5b; }
.run-round.rnd-bust  { border-left: 2px solid #9b1c1c; }
.run-round.rnd-pending { border-left: 2px solid #5a6270; }

.rnd-badge { font-size: 12px; padding: 1px 6px; border-radius: 3px; margin-left: 8px; }
.rnd-win  .rnd-badge { color: #35c07a; background: rgba(53,192,122,.12); }
.rnd-miss .rnd-badge { color: #e05b5b; background: rgba(224,91,91,.12); }
.rnd-bust .rnd-badge { color: #ff8f8f; background: rgba(155,28,28,.20); }
.rnd-pending .rnd-badge { color: #8b94a3; background: rgba(139,148,163,.12); }

.rnd-pnl { margin-left: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rnd-win  .rnd-pnl { color: #35c07a; }
.rnd-miss .rnd-pnl { color: #e05b5b; }
.rnd-bust .rnd-pnl { color: #ff8f8f; }
.rnd-pending .rnd-pnl { color: #8b94a3; }

.rnd-bet, .rnd-open { margin-top: 6px; font-size: 13px; line-height: 1.6; }
.rnd-k { display: inline-block; min-width: 18px; color: #8b94a3; margin-right: 4px; }
.rnd-k + .rnd-k { margin-left: 14px; }
.rnd-drop { color: #f0b45a; font-weight: 600; }
.rnd-buys { color: #cfd6e1; font-weight: 500; }
.rnd-unit { color: #8b94a3; margin-left: 8px; font-size: 12px; }
.rnd-actual { color: #cfd6e1; font-weight: 600; }
.rnd-note { color: #8b94a3; margin-left: 10px; font-size: 12px; }
.rnd-win .rnd-note { color: #35c07a; }

/* 档位标签：和命中角标并排，弱化处理，不抢结果 */
.rnd-lvl { margin-left: 8px; font-size: 12px; color: #8b94a3; }

/* ── 轮次记录 · 按场合并（2026-11-19） ────────────────────────────────
 * 一场 = 1~N 期连追：第 1 档就中就是 1 期；连追到命中或追满爆仓才收场。
 * 折叠态只显示汇总，点开看逐期明细（<details> 原生展开，无需 JS）。
 */
.ses-card { border-bottom: 1px solid var(--line); }
.ses-card > summary { list-style: none; cursor: pointer; }
.ses-card > summary::-webkit-details-marker { display: none; }
.ses-head { display: block; border-left: 2px solid var(--line-strong); padding: 10px 0 10px 9px; }
.ses-card.is-win .ses-head { border-left-color: #35c07a; }
.ses-card.is-bust .ses-head { border-left-color: #9b1c1c; }
.ses-card.is-running .ses-head { border-left-color: #5a6270; }
.ses-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ses-issues { font-family: var(--mono); font-size: 10.5px; color: var(--ink); }
.ses-badge { font-family: var(--mono); font-size: 9px; padding: 1px 5px; border-radius: 3px; }
.ses-win .ses-badge { color: #35c07a; background: rgba(53,192,122,.12); }
.ses-bust .ses-badge { color: #ff8f8f; background: rgba(155,28,28,.20); }
.ses-running .ses-badge { color: #8b94a3; background: rgba(139,148,163,.12); }
.ses-meta { font-family: var(--mono); font-size: 9px; color: var(--faint); }
.ses-pnl { margin-left: auto; font-family: var(--mono); font-size: 12.5px; }
.ses-pnl.pos { color: #35c07a; }
.ses-pnl.neg { color: #e05b5b; }
.ses-sub { display: flex; gap: 10px; margin-top: 3px; font-family: var(--mono); font-size: 8.5px; color: var(--faint); }
.ses-hint { margin-left: auto; }
.ses-card[open] .ses-hint { color: var(--muted); }
.ses-body { margin-left: 1px; padding-left: 9px; border-left: 1px dashed var(--line); }
.ses-body .run-round { padding: 8px 0 9px; border-bottom: 1px dashed var(--line); }
.ses-body .run-round:last-child { border-bottom: 0; }

/* 轮次记录筛选：全部 / 命中 / 爆仓 */
.ses-filter { display: flex; gap: 0; margin: 0 0 10px; }
.ses-filter-tab { border: 1px solid var(--line-strong); border-left: 0; background: transparent; color: var(--faint); height: 26px; padding: 0 14px; font-family: var(--mono); font-size: 9.5px; cursor: pointer; }
.ses-filter-tab:first-child { border-left: 1px solid var(--line-strong); }
.ses-filter-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
