#backtest { margin: 20px 24px; border-top: 1px solid #243040; padding-top: 18px; }
#backtest [hidden] { display: none !important; }
#backtest-panel { padding-top: 12px; min-width: 0; }
.bt-controls { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; }
.bt-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.bt-controls input,.bt-controls select { width: 100%; min-width: 0; box-sizing: border-box; padding: 9px; color: #dfe8f5; background: #111925; border: 1px solid #344255; border-radius: 6px; color-scheme: dark; }
.bt-controls input:disabled { opacity: .45; }
.bt-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
#bt-chart { height: 400px; width: 100%; }
#bt-status,#bt-summary,#bt-selection { overflow-wrap: anywhere; }
#bt-selection { padding: 12px 0; font-size: 13px; }
.bt-table-wrap { overflow: auto; max-height: 440px; }
.bt-table-wrap td { white-space: pre-line; min-width: 100px; font-size: 12px; }
#backtest button[aria-pressed="true"] { outline: 2px solid #65e0bb; }
@media(max-width:600px) { #backtest { margin: 20px 18px; } .bt-controls { grid-template-columns: 1fr; } #bt-chart { height: 300px; } }
