.backtest-page{max-width:1500px;margin:0 auto;padding:24px;color:#e9f1f1;font-size:15px}
.backtest-page .panel{border:1px solid rgba(117,150,153,.18);background:linear-gradient(180deg,rgba(14,29,36,.97),rgba(8,19,25,.98));box-shadow:0 16px 42px rgba(0,0,0,.18)}
.backtest-page .eyebrow{margin:0 0 7px;color:#48df9b;font-size:12px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.backtest-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:26px 28px;border-radius:16px}
.backtest-hero a{display:inline-block;margin-bottom:18px;color:#9fb0b4;font-size:13px;text-decoration:none}
.backtest-hero h1{margin:0;font-size:35px;line-height:1.12}
.backtest-hero p:last-child{max-width:800px;margin:11px 0 0;color:#aab9bc;font-size:15px;line-height:1.6}
.backtest-private-badge{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid rgba(72,223,155,.36);border-radius:999px;background:rgba(72,223,155,.08);color:#68e8ab;font-size:12px;font-weight:900;letter-spacing:.12em}
.backtest-workspace{display:grid;grid-template-columns:minmax(330px,420px) minmax(0,1fr);align-items:start;gap:18px;margin-top:18px}.backtest-main-column{min-width:0}
.backtest-settings,.backtest-filter-card{border-radius:14px;padding:22px}
.backtest-settings header,.backtest-filter-card header,.backtest-report-head,.backtest-table header,.backtest-split header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.backtest-settings h2,.backtest-filter-card h2,.backtest-report-head h2,.backtest-table h2,.backtest-split h2{margin:0;font-size:23px;line-height:1.2}
.backtest-settings>label{display:grid;gap:7px;margin-top:17px;color:#c6d1d3;font-size:12px;font-weight:700}
.backtest-settings select,.backtest-settings input{width:100%;height:48px;padding:0 13px;border:1px solid rgba(139,170,173,.23);border-radius:9px;background:#07151c;color:#eef5f5;font:inherit;font-size:14px}
.backtest-settings label small{color:#7f9297;font-size:12px;font-weight:500;line-height:1.5}
.backtest-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:17px}
.backtest-date-grid label{display:grid;gap:7px;color:#c6d1d3;font-size:12px;font-weight:700}
.backtest-competitions{margin-top:17px;border:1px solid rgba(139,170,173,.16);border-radius:10px;background:rgba(3,12,17,.35)}
.backtest-competitions summary{display:flex;justify-content:space-between;padding:14px;cursor:pointer;color:#cdd8da;font-size:13px;font-weight:700}
.backtest-competitions summary span{color:#72e7ad;font-size:12px}
.backtest-competitions>div{max-height:250px;overflow:auto;padding:0 12px 12px}
.backtest-competitions label{display:grid;grid-template-columns:20px minmax(0,1fr);gap:2px 9px;padding:10px 2px;border-top:1px solid rgba(139,170,173,.1);font-size:13px}
.backtest-competitions input{grid-row:1/3;width:18px;height:18px;margin-top:2px}
.backtest-competitions small{color:#789096;font-size:12px}
.backtest-settings .primary{width:100%;min-height:50px;margin-top:18px;border:0;border-radius:10px;background:#42df98;color:#04130d;font-size:14px;font-weight:900;cursor:pointer}
.backtest-private-note{margin:15px 0 0;padding:12px;border-radius:9px;background:rgba(72,223,155,.07);color:#95aaa9;font-size:12px;line-height:1.5}
.backtest-private-note b{color:#67e5aa}
.backtest-filter-card>header>span{display:inline-flex;min-height:32px;align-items:center;padding:0 10px;border-radius:999px;background:#102a33;color:#93a7aa;font-size:12px;font-weight:800}
.backtest-filter-card>p{margin:15px 0 0;color:#a5b4b7;line-height:1.6}
.backtest-filter-card details{margin-top:17px;border-top:1px solid rgba(139,170,173,.14);padding-top:14px}
.backtest-filter-card summary{cursor:pointer;color:#61e5a7;font-size:13px;font-weight:800}
.backtest-filter-card ul{display:grid;gap:9px;margin:13px 0 0;padding-left:20px;color:#aebdc0;font-size:13px;line-height:1.5}
#backtestReportRoot{margin-top:18px}
.backtest-report{display:grid;gap:14px}
.backtest-report-head{align-items:center;padding:21px 23px;border-radius:14px}
.backtest-report-head p:last-child{margin:8px 0 0;color:#91a4a8;font-size:13px}
.backtest-report-head button{min-height:42px;padding:0 14px;border:1px solid rgba(72,223,155,.32);border-radius:9px;background:rgba(72,223,155,.08);color:#68e8ab;font-weight:800;cursor:pointer}
.backtest-report-head button:disabled{opacity:.45;cursor:not-allowed}
.backtest-tabs{display:flex;gap:7px;overflow-x:auto;padding:4px 0}
.backtest-tabs button{min-width:125px;min-height:44px;padding:0 14px;border:1px solid rgba(139,170,173,.18);border-radius:9px;background:#0a1a21;color:#9fb0b4;font-size:12px;font-weight:800;cursor:pointer}
.backtest-tabs button.active{border-color:rgba(72,223,155,.46);background:rgba(72,223,155,.12);color:#75eab2}
.backtest-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}
.backtest-metric{min-height:116px;padding:17px;border:1px solid rgba(139,170,173,.15);border-radius:12px;background:linear-gradient(180deg,#10252d,#0a1a21)}
.backtest-metric small{display:block;color:#8ea1a5;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.backtest-metric strong{display:block;margin-top:10px;color:#f3f7f7;font-size:27px;line-height:1}
.backtest-metric span{display:block;margin-top:9px;color:#799095;font-size:12px;line-height:1.35}
.backtest-metric.success strong{color:#6fe7ad}.backtest-metric.danger strong{color:#ff8a8a}.backtest-metric.accent{border-color:rgba(72,223,155,.38);background:linear-gradient(180deg,rgba(30,87,67,.55),#0a1a21)}
.backtest-audit{display:flex;gap:14px;align-items:center;margin-top:14px;padding:15px 17px;border:1px solid;border-radius:11px}
.backtest-audit>span{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;font-size:17px;font-weight:900}
.backtest-audit b{font-size:14px}.backtest-audit p{margin:5px 0 0;color:#91a3a7;font-size:12px;line-height:1.45}
.backtest-audit.passed{border-color:rgba(72,223,155,.28);background:rgba(72,223,155,.06)}.backtest-audit.passed>span{background:rgba(72,223,155,.14);color:#6ce8ae}
.backtest-audit.failed{border-color:rgba(255,118,118,.3);background:rgba(255,95,95,.06)}.backtest-audit.failed>span{background:rgba(255,95,95,.13);color:#ff9191}
.backtest-split{margin-top:14px;padding:20px;border-radius:13px}
.backtest-split header>span{color:#8ca0a4;font-size:12px}
.backtest-split>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.backtest-split article{padding:15px;border:1px solid rgba(139,170,173,.14);border-radius:10px;background:#07171e}
.backtest-split article small,.backtest-split article span{display:block;color:#81959a;font-size:12px}.backtest-split article b{display:block;margin:8px 0;color:#e9f2f2;font-size:17px}
.backtest-split>p{margin:14px 0 0;color:#83979b;font-size:12px;line-height:1.55}
.backtest-warning{margin-top:14px;padding:17px 19px;border-radius:12px}.backtest-warning b{color:#f1ce79;font-size:13px}.backtest-warning p{margin:7px 0 0;color:#9caaad;font-size:13px;line-height:1.55}
.backtest-table{margin-top:14px;padding:20px;border-radius:13px}.backtest-table+.backtest-table{margin-top:14px}.backtest-table .table-wrap{max-width:100%;overflow-x:auto;margin-top:15px}.backtest-table table{width:100%;border-collapse:collapse;min-width:600px}.backtest-table th,.backtest-table td{padding:13px 12px;border-bottom:1px solid rgba(139,170,173,.12);text-align:left;font-size:13px}.backtest-table th{color:#779096;font-size:12px;text-transform:uppercase;letter-spacing:.07em}.backtest-table td{color:#cbd5d7}
.backtest-match-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:4px}
.backtest-match{border:1px solid rgba(139,170,173,.16);border-left:4px solid;border-radius:12px;background:#0b1b22;overflow:hidden}.backtest-match.hit{border-left-color:#4ce29c}.backtest-match.miss{border-left-color:#ff7373}
.backtest-match header{display:flex;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid rgba(139,170,173,.1)}.backtest-match header div{display:flex;gap:9px;align-items:center}.backtest-match header small{color:#93a6aa;font-size:12px}.backtest-match time{color:#71898f;font-size:12px}.backtest-match header strong{color:#dfe9e9;font-size:12px}.backtest-match.hit header strong{color:#69e5aa}.backtest-match.miss header strong{color:#ff8a8a}
.backtest-score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center;padding:21px 16px}.backtest-score span{font-size:16px;font-weight:800}.backtest-score span:last-child{text-align:right}.backtest-score b{font-size:20px;color:#fff}
.backtest-match footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;background:rgba(2,11,15,.34)}.backtest-match footer span{color:#82969b;font-size:12px}.backtest-match footer button{min-height:38px;padding:0 11px;border:1px solid rgba(139,170,173,.2);border-radius:8px;background:#10252d;color:#b9c7c9;font-size:12px;font-weight:800;cursor:pointer}
.backtest-empty{min-height:270px;display:grid;place-items:center;align-content:center;text-align:center;padding:35px;border-radius:14px}.backtest-empty>span{display:grid;width:58px;height:58px;place-items:center;border-radius:50%;background:rgba(72,223,155,.1);color:#64e6a9;font-size:24px}.backtest-empty h2{margin:16px 0 0;font-size:22px}.backtest-empty p{max-width:520px;margin:9px 0 0;color:#8fa2a6;line-height:1.6}.backtest-empty.error>span{background:rgba(255,95,95,.12);color:#ff8585}
.backtest-errors{margin-top:12px;padding:16px 20px;border-radius:11px}.backtest-errors ul{margin:0;padding-left:20px;color:#ff9797;line-height:1.6}.backtest-muted{color:#84979b;font-size:12px}
@media(max-width:1180px){.backtest-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.backtest-workspace{grid-template-columns:minmax(320px,390px) minmax(0,1fr)}}
@media(max-width:850px){.backtest-page{padding:16px 12px 34px}.backtest-workspace{grid-template-columns:1fr}.backtest-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.backtest-match-list{grid-template-columns:1fr}.backtest-hero h1{font-size:30px}}
@media(max-width:560px){.backtest-page{font-size:15px}.backtest-hero{padding:20px;flex-direction:column}.backtest-hero h1{font-size:28px}.backtest-private-badge{align-self:flex-start}.backtest-settings,.backtest-filter-card{padding:17px}.backtest-date-grid{grid-template-columns:1fr}.backtest-metrics{grid-template-columns:1fr 1fr}.backtest-metric{min-height:108px;padding:14px}.backtest-metric strong{font-size:23px}.backtest-split>div{grid-template-columns:1fr}.backtest-score{grid-template-columns:1fr auto 1fr;gap:7px;padding:18px 12px}.backtest-score span{font-size:14px}.backtest-match footer{align-items:flex-start;flex-direction:column}.backtest-match footer button{width:100%;min-height:44px}}
@media(max-width:390px){.backtest-metrics{grid-template-columns:1fr}.backtest-hero h1{font-size:26px}}
