.account-backtest-history { min-width: 0; overflow: hidden; }
.account-backtest-history > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #222833; }
.account-backtest-history > header div { display: flex; align-items: baseline; gap: 10px; }
.account-backtest-history > header h3 { color: #f3f7fb; font-size: 15px; }
.account-backtest-history > header span,.account-backtest-history > p { color: #8792a2; font-size: 11px; }
.account-backtest-history > p { margin: 0; padding: 9px 14px; border-top: 1px solid #222833; }
.account-history-scroll { overflow: auto; }
.account-backtest-history table { width: 100%; min-width: 860px; border-collapse: collapse; table-layout: fixed; }
.account-backtest-history th,.account-backtest-history td { height: 42px; border-bottom: 1px solid rgba(148,163,184,.1); padding: 7px 10px; color: #c6ceda; text-align: center; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-backtest-history th { color: #8792a2; background: #10161e; font-weight: 900; }
.account-backtest-history th:first-child,.account-backtest-history td:first-child { width: 160px; }
.account-backtest-history th:nth-child(3),.account-backtest-history td:nth-child(3) { width: 220px; }
.account-backtest-history td small { display: block; max-width: 100%; margin-top: 2px; color: #748094; overflow: hidden; text-overflow: ellipsis; }
.account-backtest-history td.good { color: #36d399; font-weight: 900; }.account-backtest-history td.bad { color: #ef4444; font-weight: 900; }
.account-backtest-history .history-empty { height: 86px; color: #8792a2; }
.history-delete-button,.history-detail-button { min-height: 26px; border-radius: 6px; padding: 0 8px; cursor: pointer; }
.history-delete-button { border: 1px solid rgba(239,68,68,.38); color: #fca5a5; background: rgba(239,68,68,.12); }
.history-detail-button { margin-right: 6px; border: 1px solid #344154; color: #c9d4e4; background: #18212d; }
.history-delete-button:disabled { cursor: not-allowed; opacity: .55; }
.account-backtest-history .history-detail-row > td { height: auto; padding: 0; white-space: normal; background: #0d131b; }
.history-batch-detail { padding: 12px 14px; text-align: left; }
.history-batch-detail table { min-width: 720px; table-layout: auto; }
.history-batch-detail th,.history-batch-detail td { height: 34px; padding: 5px 8px; }
.history-failures { margin-top: 10px; color: #fca5a5; }
.history-failures ul { display: grid; gap: 5px; margin: 6px 0 0; padding: 0; list-style: none; }
.history-failures li { display: flex; gap: 10px; }
.history-version { display: block; margin-top: 5px; font-size: 11px; }
.history-trust { display: inline-flex; padding: 3px 6px; border: 1px solid #475569; border-radius: 5px; font-size: 10px; font-weight: 900; }
.history-trust.auditable { color: #36d399; border-color: rgba(54,211,153,.45); background: rgba(54,211,153,.08); }
.history-trust.unversioned,.history-trust.incomplete { color: #fbbf24; border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.account-backtest-history .history-group td { height: auto; padding: 10px 12px; text-align: left; background: #111824; }
.history-group td strong { margin-right: 10px; }
.history-group td span { color: #8792a2; font-size: 11px; }
.history-group.trusted td { border-left: 3px solid #36d399; }
.history-group.legacy td { border-left: 3px solid #fbbf24; }
