/* Imported historical results share the existing website/desktop colors. */
.mp-performance{margin:16px 0 28px;padding:20px;border:1px solid var(--border,#dbe4ef);border-radius:14px}
.mp-curve-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mp-curve-heading h3{margin:0}.mp-curve-metrics{display:flex;gap:36px;margin:20px 0 4px;flex-wrap:wrap}
.mp-curve-metrics span{display:grid;gap:6px;font-size:13px}.mp-curve-metrics strong{font-size:24px;font-variant-numeric:tabular-nums}
.mp-performance svg{display:block;width:100%;height:auto;overflow:visible;margin-top:10px}
.mp-curve-grid line{stroke:#94a3b8;stroke-opacity:.2}.mp-curve-grid text{fill:currentColor;font-size:12px}
.mp-curve-baseline{stroke:#94a3b8;stroke-dasharray:3 4;stroke-opacity:.65}
.mp-curve-strategy{stroke:#2563eb;stroke-width:2.5;fill:none;vector-effect:non-scaling-stroke}
circle.mp-curve-strategy{fill:#2563eb}.mp-curve-benchmark{stroke:#a16207;stroke-width:2;stroke-dasharray:6 4;fill:none;vector-effect:non-scaling-stroke}
circle.mp-curve-benchmark{fill:#a16207}.mp-curve-legend{display:flex;gap:24px;flex-wrap:wrap;font-size:13px}
.mp-performance summary{cursor:pointer;padding:12px 0;min-height:44px}.mp-curve-table{max-height:300px;overflow:auto}
.mp-curve-table table{border-collapse:collapse;width:100%;font-size:13px;font-variant-numeric:tabular-nums}
.mp-curve-table th,.mp-curve-table td{padding:9px;text-align:right;border-bottom:1px solid #94a3b833}
.mp-curve-table th:first-child,.mp-curve-table td:first-child{text-align:left}
.desktop .mp-performance{padding:14px}.desktop .mp-curve-strategy{stroke:#60a5fa}.desktop .mp-curve-benchmark{stroke:#fbbf24}
@media(max-width:600px){.mp-performance{padding:12px}.mp-curve-metrics{gap:24px}.mp-curve-metrics strong{font-size:21px}}

.mp-curve-backtest{stroke:#64748b;stroke-dasharray:6 4}.mp-curve-paper{stroke:#2563eb}
.mp-curve-boundary{stroke:#7c3aed;stroke-width:1;stroke-dasharray:3 3}.mp-curve-boundary-label{fill:currentColor;font-size:11px}
.mp-curve-toggle{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-size:14px}.mp-curve-toggle input{width:18px;height:18px;accent-color:#2563eb}
.desktop .mp-curve-backtest{stroke:#a5b4fc}.desktop .mp-curve-paper{stroke:#60a5fa}

.mp-curve-gap{stroke:#94a3b8;stroke-width:1;stroke-dasharray:2 6;opacity:.7}

.mp-redeem-form{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin-top:24px}.mp-redeem-form label{display:grid;gap:8px;flex:1;min-width:220px}.mp-redeem-form input{padding:12px;border:1px solid var(--border,#dbe4ef);border-radius:8px;background:var(--card,#fff);color:inherit;font:inherit}

/* Shared chart hierarchy and Chinese market gain/loss colors. */
.mp-performance{--chart-up:var(--gain,#c93448);--chart-down:var(--loss,#117d60);--chart-muted:var(--muted,#5d6c82);border-color:var(--line,#e0e6ef);background:var(--surface,#fff);padding:22px;color:inherit}
.mp-performance [hidden]{display:none!important}.detail-main .mp-performance{margin:0;border:0;padding:0}.mp-curve-heading{align-items:start;flex-wrap:nowrap}.mp-curve-heading h3{font-size:16px;font-weight:650;line-height:1.5}.mp-curve-period{font-size:12px;color:var(--chart-muted);margin:7px 0 0;line-height:1.7}.mp-curve-controls{display:flex;align-items:center;gap:12px;flex-shrink:0}.mp-curve-controls .badge{font-size:12px;white-space:nowrap}.mp-curve-toggle{font-size:12px;white-space:nowrap;min-height:32px;gap:6px;color:var(--chart-muted)}.mp-curve-toggle input{width:16px;height:16px;accent-color:#4f64dc}.mp-curve-metrics{margin:20px 0 6px;padding:16px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;background:var(--soft,#f5f7fc);border:1px solid var(--line,#e2e8f0);border-radius:11px}.mp-curve-metrics:has(>span:nth-child(3)){grid-template-columns:repeat(4,minmax(0,1fr))}.mp-curve-metrics span{font-size:12px;color:var(--chart-muted);gap:8px}.mp-curve-metrics strong{font-size:24px;font-weight:700;line-height:1.3;letter-spacing:-.5px;white-space:nowrap}.mp-performance .is-up{color:var(--chart-up)}.mp-performance .is-down{color:var(--chart-down)}.mp-performance .is-flat{color:var(--ink,#27364d)}.mp-performance .mp-curve-chart{max-height:290px;margin-top:12px;cursor:crosshair;touch-action:pan-y}.mp-curve-grid text{fill:var(--chart-muted);font-size:11px}.mp-curve-grid line{stroke:#94a3b8;stroke-opacity:.15}.mp-curve-strategy.mp-curve-backtest{stroke:#6676c8;stroke-width:2.2;stroke-dasharray:5 3}.mp-curve-strategy.mp-curve-paper{stroke:#089ea8;stroke-width:2.8}.mp-curve-benchmark{stroke:#c89845;stroke-width:1.8;stroke-dasharray:4 4}.mp-curve-boundary{stroke:#8e91b4;stroke-dasharray:3 5}.mp-curve-boundary-label{fill:var(--chart-muted);font-size:11px}.mp-curve-chart-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.mp-curve-legend{gap:18px;margin:3px 0 10px;font-size:12px;line-height:1.7}.mp-curve-legend span{display:inline-flex;align-items:center;gap:7px}.mp-curve-legend span:before{content:'';width:19px;border-top:2px solid #6676c8}.mp-curve-legend .legend-backtest:before{border-top-style:dashed}.mp-curve-legend .legend-paper:before{border-color:#089ea8}.mp-curve-legend .legend-benchmark:before{border-color:#c89845;border-top-style:dashed}.mp-curve-axis-note{font-size:12px;color:var(--chart-muted);white-space:nowrap}.mp-curve-readout{font-size:12px;color:var(--chart-muted);margin:0 0 10px;min-height:30px;background:var(--soft,#f5f7fc);padding:7px 10px;border-radius:6px;line-height:1.8}.mp-curve-readout.inspecting{color:var(--ink,#20344f);background:#edf3fe}.mp-curve-crosshair{pointer-events:none}.mp-curve-crosshair line{stroke:#8b9bb5;stroke-dasharray:3 4;stroke-width:1}.mp-curve-crosshair circle{fill:#089ea8;stroke:var(--surface,#fff);stroke-width:2}.mp-curve-warning{padding:8px 10px;background:#fff5df;color:#8b5a12;border-radius:6px}.mp-performance>.detail-note{font-size:12px;margin:7px 0;line-height:1.7;color:var(--chart-muted)}.mp-curve-disclosures{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:10px;border-top:1px solid var(--line,#e0e6ef)}.mp-curve-disclosures>details[open]{grid-column:1/-1}.mp-curve-disclosures summary{font-size:12px;font-weight:500;min-height:42px;padding:12px 0;color:var(--chart-muted)}.mp-curve-method-body{font-size:12px;line-height:1.85;color:var(--chart-muted);padding:0 0 12px}.mp-curve-method-body p{margin:0 0 8px}.mp-curve-table{margin-bottom:14px}.mp-redeem-form{padding:20px;border:1px solid var(--line,#e0e6ef);background:var(--soft,#f5f7fc);border-radius:12px}.mp-redeem-form label{font-size:13px}.mp-redeem-form input{font-size:14px;min-width:0;max-width:100%;background:var(--surface,#fff);border-color:var(--line,#e0e6ef)}
.desktop .mp-performance{padding:16px}.desktop .detail-main .mp-performance{padding:0}.desktop .mp-curve-strategy.mp-curve-backtest{stroke:#a4adf1}.desktop .mp-curve-strategy.mp-curve-paper{stroke:#67d3dc}.desktop .mp-curve-benchmark{stroke:#d9b871}.desktop .legend-backtest:before{border-color:#a4adf1}.desktop .legend-paper:before{border-color:#67d3dc}.desktop .legend-benchmark:before{border-color:#d9b871}.desktop .mp-curve-readout.inspecting{background:#203a58;color:#d9e8fc}.desktop .mp-curve-warning{background:#453823;color:#f1d297}.desktop .mp-curve-crosshair circle{fill:#67d3dc}.desktop .mp-curve-controls .badge{background:#233751;color:#bacde7}
@media(max-width:1100px){.mp-curve-metrics:has(>span:nth-child(3)){grid-template-columns:repeat(2,minmax(0,1fr))}.mp-curve-metrics strong{font-size:24px}.mp-curve-heading{flex-wrap:wrap;gap:12px}.mp-curve-controls{gap:10px}}
@media(max-width:600px){.mp-performance{padding:16px}.mp-curve-heading h3{font-size:16px}.mp-curve-controls{width:100%;justify-content:space-between}.mp-curve-toggle{min-height:40px}.mp-curve-toggle input{width:18px;height:18px}.mp-curve-metrics{padding:14px;gap:16px;margin-top:14px}.mp-curve-metrics strong{font-size:24px}.mp-curve-legend{gap:13px}.mp-curve-axis-note{display:none}.mp-curve-disclosures{gap:12px}.mp-curve-disclosures summary{min-height:44px}.mp-redeem-form{padding:16px;gap:14px}.mp-redeem-form label{min-width:0;width:100%;flex-basis:100%}.mp-redeem-form input{font-size:16px}.mp-redeem-form .button{width:100%;min-height:44px}.mp-curve-chart{min-height:180px}}
@media(min-width:1000px) and (max-height:800px){.detail-main .mp-curve-metrics{margin-top:14px;padding:13px 16px;gap:12px}.detail-main .mp-curve-metrics strong{font-size:24px}.detail-main .mp-curve-chart{max-height:220px}.detail-main .mp-curve-period{margin-top:4px}.detail-main .mp-curve-readout{padding:5px 9px;min-height:28px}.detail-main .mp-curve-legend{margin-bottom:7px}.detail-main .mp-performance>.detail-note{margin-block:5px}.detail-main .mp-curve-disclosures{margin-top:6px}}
.mp-curve-grid text,.mp-curve-boundary-label{font-size:12px}

/* 哨兵内嵌 · 浅色主题：图表线原本在深底上用亮蓝/亮黄，浅底会糊成一片。
   严格度与上面的 .desktop 规则对齐（都要带 .desktop，否则被原规则压掉）。 */
html.light .desktop .mp-curve-strategy { stroke: var(--accent, #2d5fd0); }
html.light .desktop .mp-curve-paper { stroke: var(--accent, #2d5fd0); }
html.light .desktop .mp-curve-strategy.mp-curve-paper { stroke: var(--accent, #2d5fd0); }
html.light .desktop .mp-curve-backtest { stroke: #64748b; }
html.light .desktop .mp-curve-strategy.mp-curve-backtest { stroke: #64748b; }
html.light .desktop .mp-curve-benchmark { stroke: #a16207; }
html.light .desktop .legend-paper:before { border-color: var(--accent, #2d5fd0); }
html.light .desktop .legend-backtest:before { border-color: #64748b; }
html.light .desktop .legend-benchmark:before { border-color: #a16207; }
html.light .desktop .mp-curve-crosshair circle { fill: var(--accent, #2d5fd0); }
html.light .desktop .mp-curve-readout.inspecting { background: rgba(var(--accent-rgb, 45, 95, 208), 0.08); color: var(--accent-t, #204aa6); }
html.light .desktop .mp-curve-warning { background: #fbefd9; color: #8a5306; }
html.light .desktop .mp-curve-controls .badge { background: rgba(var(--accent-rgb, 45, 95, 208), 0.10); color: var(--accent-t, #204aa6); }

/* 哨兵内嵌 · 主色对齐（2026-11-03）
   策略曲线的**线**在深色下已经是 #60a5fa（哨兵主色），但**圆点**与**复选框**还固定用
   官网蓝 #2563eb —— 同一张图上出现两种蓝。统一跟随当前配色的主色：
   深色用 --accent-t（= #60a5fa，与线同色），浅蓝/暖灰用 --accent（与它们的线色一致）。 */
body.desktop circle.mp-curve-strategy { fill: var(--accent-t, #60a5fa); }
body.desktop .mp-curve-toggle input { accent-color: var(--accent, #3b82f6); }
html.light .desktop circle.mp-curve-strategy { fill: var(--accent, #2d5fd0); }

.mp-range-switch{display:inline-flex;align-items:center;gap:2px;padding:2px;background:var(--soft,#f5f7fc);border:1px solid var(--line,#e2e8f0);border-radius:8px}
.mp-range-btn{appearance:none;border:0;background:transparent;color:var(--chart-muted,#64748b);font:inherit;font-size:12px;line-height:1;padding:7px 9px;min-height:28px;border-radius:6px;cursor:pointer;white-space:nowrap}
.mp-range-btn:hover{color:var(--chart-text,#1f2937)}
.mp-range-btn.is-active{background:#4f64dc;color:#fff}
.mp-range-btn:focus-visible{outline:2px solid #4f64dc;outline-offset:1px}
.mp-curve-boundary-soft{stroke-dasharray:2 6;opacity:.5}
@media (max-width:620px){.mp-curve-controls{flex-wrap:wrap;gap:8px}.mp-range-switch{order:3;width:100%;justify-content:space-between}}
