
/* TYSON TRADES — BUILD 11.1 BACKTESTING REPLAY WORKSPACE */
:root{
  --bt11-bg:#050a10;--bt11-panel:#0a121b;--bt11-panel-2:#0d1722;--bt11-line:#1a2a38;
  --bt11-gold:#e2b74e;--bt11-gold-2:#f0c96c;--bt11-white:#f4f6f8;--bt11-muted:#8ea0b2;
  --bt11-blue:#5c8dff;--bt11-green:#27c276;--bt11-red:#f05b5b
}
.bt11-workspace{position:fixed!important;inset:78px 0 0!important;z-index:50;background:var(--bt11-bg);overflow:hidden!important;padding:0!important}
.bt11-commandbar{height:64px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 18px;border-bottom:1px solid var(--bt11-line);background:rgba(5,10,16,.96);backdrop-filter:blur(14px)}
.bt11-command-left,.bt11-command-actions{display:flex;align-items:center;gap:12px}.bt11-command-actions{justify-content:flex-end}
.bt11-icon-btn,.bt11-tool-btn,.bt11-replay-btn{border:1px solid var(--bt11-line);background:#0b141e;color:#cdd7e1;border-radius:9px;cursor:pointer}
.bt11-icon-btn{width:38px;height:38px;font-size:18px}.bt11-kicker,.bt11-panel-label{font:800 9px/1.2 Inter,sans-serif;letter-spacing:.18em;color:var(--bt11-gold)}
.bt11-session-title{font:700 17px/1.2 Inter,sans-serif;color:var(--bt11-white);margin-top:4px}
.bt11-session-meta{font:600 10px/1.2 "JetBrains Mono",monospace;color:var(--bt11-muted);white-space:nowrap}
.bt11-status{display:inline-flex;gap:7px;align-items:center;font-size:10px;color:#9fabb7}.bt11-status i{width:7px;height:7px;border-radius:50%;background:var(--bt11-green);box-shadow:0 0 12px rgba(39,194,118,.8)}
.bt11-grid{height:calc(100vh - 142px);display:grid;grid-template-columns:260px minmax(520px,1fr) 290px;overflow:hidden}
.bt11-left,.bt11-right{overflow:auto;padding:14px;background:#070d14}.bt11-left{border-right:1px solid var(--bt11-line)}.bt11-right{border-left:1px solid var(--bt11-line)}
.bt11-center{min-width:0;display:flex;flex-direction:column;overflow:hidden;padding:12px;background:radial-gradient(circle at 50% 0%,rgba(226,183,78,.045),transparent 30%),#050a10}
.bt11-panel{border:1px solid var(--bt11-line);background:linear-gradient(180deg,rgba(14,24,35,.94),rgba(8,15,23,.94));border-radius:13px;padding:14px;margin-bottom:12px;box-shadow:0 16px 30px rgba(0,0,0,.12)}
.bt11-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.bt11-text-btn{border:0;background:none;color:var(--bt11-gold);font-size:9px;font-weight:800;cursor:pointer;text-transform:uppercase}
.bt11-symbol-row{display:flex;align-items:center;justify-content:space-between;margin:10px 0 13px}.bt11-symbol-row div{display:flex;align-items:baseline;gap:8px}.bt11-symbol-row strong{font:700 24px Cinzel,serif;color:#fff}.bt11-symbol-row span{font:700 9px "JetBrains Mono",monospace;color:#8090a0}
.bt11-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bt11-info-grid div,.bt11-risk-box div{border:1px solid #172532;border-radius:9px;padding:9px;background:#08111a}.bt11-info-grid span,.bt11-risk-box span{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.12em;color:#6f8394}.bt11-info-grid b,.bt11-risk-box b{display:block;margin-top:4px;color:#dbe4ec;font:700 11px "JetBrains Mono",monospace}
.bt11-context-field{margin-top:12px}.bt11-context-field>label,.bt11-ticket-grid label{display:block;color:#8091a2;font-size:9px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:7px}
.bt11-context-field input,.bt11-context-field textarea,.bt11-ticket-grid input,.bt11-session-note-panel textarea,#bt11QuickNotes{width:100%;box-sizing:border-box;background:#08111a;border:1px solid #1b2c3a;color:#e9eef3;border-radius:8px;padding:10px;outline:none}
.bt11-segment,.bt11-side-toggle{display:flex;border:1px solid #1b2c3a;border-radius:9px;overflow:hidden;background:#08111a}.bt11-segment button,.bt11-side-toggle button{flex:1;border:0;background:transparent;color:#76899b;padding:9px 5px;font-size:9px;font-weight:800;cursor:pointer}.bt11-segment button.active{color:#07100b;background:#74d59f}.bt11-segment button[data-bias="bearish"].active{background:#ef7b76;color:#160606}.bt11-segment button[data-bias="neutral"].active{background:#314150;color:#eef5fb}
.bt11-rule-row{display:flex;align-items:center;gap:9px}.bt11-rule-row input{padding:0}.bt11-rule-row span{min-width:34px;font:700 9px "JetBrains Mono",monospace;color:var(--bt11-gold)}
.bt11-session-note-panel textarea{height:118px;resize:vertical;font-size:10px;line-height:1.5}.bt11-save-state{font-size:8px;color:#718292;margin-top:7px}
.bt11-chart-card{flex:1;min-height:420px;display:flex;flex-direction:column;border:1px solid var(--bt11-line);border-radius:13px;background:#071019;overflow:hidden}
.bt11-chart-toolbar{height:45px;display:flex;align-items:center;gap:8px;padding:0 10px;border-bottom:1px solid var(--bt11-line);background:#09121b}
.bt11-tool-divider{height:20px;width:1px;background:#20303d}.bt11-tool-spacer{flex:1}.bt11-check{font-size:8px;color:#8b9baa;white-space:nowrap}.bt11-tool-btn{width:32px;height:30px}.bt11-tool-btn.active-tool{border-color:var(--bt11-gold);color:var(--bt11-gold)}
.bt11-chart-shell{flex:1;min-height:0;position:relative}.bt11-chart-shell .bt-chart-wrap{height:100%!important;min-height:0!important;border:0!important;border-radius:0!important}
.bt11-replaybar{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);z-index:7;display:flex;align-items:center;gap:7px;width:min(720px,calc(100% - 28px));padding:8px 10px;background:rgba(4,9,14,.94);border:1px solid #253443;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.42);backdrop-filter:blur(10px)}
.bt11-replay-btn{width:34px;height:31px}.bt11-play{width:40px;height:34px;border:1px solid #80652d;border-radius:9px;background:linear-gradient(135deg,#f0c96c,#c9912d);color:#080b0f;font-weight:900;cursor:pointer}
.bt11-replaybar select{background:#0b151f;border:1px solid #20303d;color:#cfd8e1;border-radius:8px;height:31px}.bt11-replaybar input[type=range]{flex:1;accent-color:var(--bt11-gold)}.bt11-replaybar .mono{font-size:9px;color:#7f91a2;white-space:nowrap}
.bt11-bottom{height:154px;flex:0 0 154px;margin-top:10px;border:1px solid var(--bt11-line);border-radius:12px;background:#071019;overflow:hidden}.bt11-bottom-tabs{height:37px;display:flex;border-bottom:1px solid var(--bt11-line)}.bt11-bottom-tabs button{border:0;background:none;color:#7e90a1;padding:0 16px;font-size:9px;font-weight:800;cursor:pointer}.bt11-bottom-tabs button.active{color:var(--bt11-gold);box-shadow:inset 0 -2px var(--bt11-gold)}
.bt11-bottom-pane{display:none;height:calc(100% - 37px);overflow:auto;padding:10px 12px;box-sizing:border-box}.bt11-bottom-pane.active{display:block}.bt11-empty-mini{color:#6d7d8b;font-size:10px;padding:22px;text-align:center}.bt11-trade-row{display:grid;grid-template-columns:60px 1fr 70px 70px 65px;gap:8px;align-items:center;padding:7px 8px;border-bottom:1px solid #12202c;font-size:9px}.bt11-trade-row b{font-size:10px}.bt11-trade-row .win{color:var(--bt11-green)}.bt11-trade-row .loss{color:var(--bt11-red)}
.bt11-mini-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.bt11-mini-stats div{border:1px solid #172532;background:#08111a;border-radius:9px;padding:10px}.bt11-mini-stats span{font-size:8px;text-transform:uppercase;color:#728495}.bt11-mini-stats b{display:block;color:#fff;font:700 15px Cinzel,serif;margin-top:5px}
#bt11QuickNotes{height:92px;resize:none}
.bt11-ticket .bt11-side-toggle{margin:14px 0}.bt11-side-toggle button.active[data-dir="long"]{background:rgba(39,194,118,.16);color:#59db96}.bt11-side-toggle button.active[data-dir="short"]{background:rgba(240,91,91,.16);color:#ff8585}.bt11-hidden-select{display:none!important}
.bt11-ticket-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bt11-ticket-grid input{margin-top:6px;font:700 11px "JetBrains Mono",monospace}
.bt11-risk-box{display:grid;grid-template-columns:1fr;gap:7px;margin-top:12px}.bt11-place-order{width:100%;margin-top:12px;border:0;border-radius:10px;padding:13px;background:linear-gradient(135deg,#f0ca6b,#cb9636);color:#080b0e;font-size:10px;font-weight:900;letter-spacing:.09em;cursor:pointer}.bt11-place-order:disabled{opacity:.35;cursor:not-allowed}
.bt11-position{margin-top:12px!important;padding:10px!important;border:1px solid #25384a!important;border-radius:10px!important;background:#08121b!important}.bt11-position #btPosDirection{font-weight:900;color:#fff}.bt11-position #btPosEntry{font-size:9px;color:#8494a5}
.bt11-checklist{display:grid;gap:7px;margin-top:11px}.bt11-checklist label{display:flex;gap:8px;align-items:center;border:1px solid #172633;border-radius:8px;padding:9px;color:#8799aa;font-size:9px}.bt11-checklist input{accent-color:var(--bt11-gold)}
.bt11-disclaimer{color:#607180;font-size:8px;line-height:1.55;padding:3px 7px 15px}
.bt11-market-badge{font:800 8px Inter,sans-serif;color:#4de08e;border:1px solid rgba(77,224,142,.25);background:rgba(77,224,142,.08);padding:5px 7px;border-radius:999px}
.bt11-ticket-price{font-family:"JetBrains Mono",monospace}
.bt-session-modal .field.full{grid-column:1/-1}
.bt-session-modal textarea{width:100%;box-sizing:border-box;background:#0c1520;border:1px solid #233140;color:#eef2f5;border-radius:8px;padding:10px}
.bt-tf-btn{border:1px solid transparent!important;background:transparent!important;color:#7d8e9e!important;border-radius:7px!important;padding:6px 8px!important}.bt-tf-btn.active{background:#2d2414!important;border-color:#65501f!important;color:#f2c75f!important}
@media(max-width:1180px){.bt11-grid{grid-template-columns:220px minmax(460px,1fr) 250px}.bt11-commandbar{grid-template-columns:1fr auto}.bt11-session-meta{display:none}}
@media(max-width:900px){
  .bt11-workspace{position:absolute!important;inset:auto!important;min-height:100vh;overflow:auto!important}
  .bt11-commandbar{position:sticky;top:0;z-index:9;height:auto;min-height:58px;padding:9px 12px}.bt11-grid{height:auto;display:flex;flex-direction:column;overflow:visible}
  .bt11-left,.bt11-right{border:0;padding:10px 12px;overflow:visible}.bt11-left{order:2}.bt11-center{order:1;overflow:visible;padding:10px 12px}.bt11-right{order:3}
  .bt11-chart-card{min-height:520px}.bt11-chart-shell{min-height:430px}.bt11-bottom{height:auto;min-height:150px;flex-basis:auto}
  .bt11-left{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bt11-left .bt11-panel{margin:0}.bt11-session-note-panel{grid-column:1/-1}
}
@media(max-width:620px){
  .bt11-command-actions .btn,.bt11-status{display:none}.bt11-grid{display:flex}.bt11-left{display:block}.bt11-left .bt11-panel{margin-bottom:10px}
  .bt11-center{padding:7px}.bt11-chart-card{min-height:440px}.bt11-chart-shell{min-height:360px}.bt11-chart-toolbar{overflow-x:auto}.bt11-check{display:none}
  .bt11-replaybar{bottom:7px;gap:4px;padding:7px}.bt11-replaybar .mono{display:none}.bt11-replay-btn{width:30px}.bt11-replaybar select{width:52px}
  .bt11-ticket-grid{grid-template-columns:1fr 1fr}.bt11-mini-stats{grid-template-columns:1fr 1fr}.bt11-bottom{display:none}
}


/* ============================================================
   BUILD 11.2 — TRADE MANAGEMENT V2
   ============================================================ */
.bt12-order-types{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0}
.bt12-order-types button{border:1px solid #1c2c39;background:#08111a;color:#7e91a3;border-radius:8px;padding:9px 5px;font-size:9px;font-weight:800;cursor:pointer}
.bt12-order-types button.active{color:#0a0d10;background:linear-gradient(135deg,#efc86b,#ca9638);border-color:#8a6a2c}
.bt12-trigger-field{display:block;color:#8091a2;font-size:9px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:10px}
.bt12-trigger-field input{width:100%;box-sizing:border-box;margin-top:6px;background:#08111a;border:1px solid #1b2c3a;color:#e9eef3;border-radius:8px;padding:10px}
.bt12-sizing-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:10px;padding:8px 10px;border:1px solid #172633;border-radius:8px;background:#071019;font-size:8px;color:#8394a5}
.bt12-sizing-row label{display:flex;align-items:center;gap:6px}.bt12-sizing-row input{accent-color:var(--bt11-gold)}
.bt12-sizing-row span{font-family:"JetBrains Mono",monospace;color:#d1ad55}
.bt12-cost-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:10px}
.bt12-cost-preview span{border:1px solid #172532;border-radius:7px;background:#08111a;padding:7px 5px;text-align:center;font-size:7px;color:#718395;text-transform:uppercase}
.bt12-cost-preview b{display:block;margin-top:3px;color:#dce4eb;font:700 8px "JetBrains Mono",monospace}
.bt12-pending{margin-top:10px;border:1px solid rgba(226,183,78,.35);background:rgba(226,183,78,.07);padding:10px;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.bt12-pending span{display:block;font-size:7px;color:#a68d55;text-transform:uppercase}.bt12-pending b{display:block;margin-top:3px;color:#f1cb70;font:700 9px "JetBrains Mono",monospace}
.bt12-manage{margin-top:10px;padding:11px;border:1px solid #213341;background:#08121b;border-radius:10px}
.bt12-manage-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:8px 0}
.bt12-manage-grid label{font-size:7px;color:#748799;text-transform:uppercase}.bt12-manage-grid input{width:100%;box-sizing:border-box;margin-top:5px;padding:8px;background:#071019;border:1px solid #1b2c3a;border-radius:7px;color:#fff}
.bt12-manage>.btn{width:100%;margin-top:6px}
.bt12-partials{display:grid;grid-template-columns:1fr repeat(3,42px);gap:5px;align-items:center;margin-top:9px}.bt12-partials span{font-size:8px;color:#7f91a2}.bt12-partials button{height:28px;border:1px solid #253846;background:#0a151f;color:#cbd5dd;border-radius:7px;font-size:8px;cursor:pointer}
.bt12-partials button:hover{border-color:#80652d;color:#f2c75f}
.bt12-position-detail{margin-top:9px;padding-top:8px;border-top:1px solid #172633;color:#75899b;font:8px/1.55 "JetBrains Mono",monospace}
.bt12-chart-label{position:absolute;z-index:5;right:9px;padding:3px 6px;border-radius:5px;font:700 8px "JetBrains Mono",monospace;pointer-events:none}
.bt11-field-help{display:block;margin-top:4px;color:#617486;font-size:8px;line-height:1.4}
@media(max-width:620px){
  .bt12-cost-preview{grid-template-columns:1fr 1fr 1fr}
  .bt12-manage-grid{grid-template-columns:1fr 1fr}
}


/* ===================================================================
   BUILD 11.2.1 — TYSON PRO REPLAY TERMINAL
   Trader terminal UX: chart-first, immersive, TradingView-like workflow.
   =================================================================== */

.bt11-chart-toolbar{
  display:none!important;
}

.bt11-center{
  min-width:0;
}

.bt11-chart-card{
  position:relative;
  overflow:visible!important;
  background:#050a0f!important;
  border:1px solid #192733!important;
  box-shadow:0 18px 55px rgba(0,0,0,.22);
}

.bt121-terminal-topbar{
  position:relative;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 12px;
  border-bottom:1px solid #182631;
  background:linear-gradient(180deg,#08111a 0%,#050b11 100%);
  z-index:30;
}

.bt121-market-identity,
.bt121-terminal-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.bt121-market-identity strong{
  color:#f3f6f8;
  font:800 13px "JetBrains Mono",monospace;
  letter-spacing:.02em;
}

.bt121-market-price{
  color:#efc65f;
  font:800 12px "JetBrains Mono",monospace;
  padding-left:10px;
  border-left:1px solid #1d2c38;
}

.bt121-market-change{
  font:700 9px "JetBrains Mono",monospace;
  color:#778b9b;
}

.bt121-terminal-btn,
.bt121-terminal-chip{
  border:1px solid #20313e;
  background:#09131d;
  color:#a8b6c1;
  min-height:34px;
  border-radius:8px;
  cursor:pointer;
  transition:.16s ease;
}

.bt121-terminal-btn{
  min-width:36px;
  padding:0 10px;
  font-size:14px;
}

.bt121-terminal-chip{
  padding:0 11px;
  font:700 9px "JetBrains Mono",monospace;
}

.bt121-terminal-btn:hover,
.bt121-terminal-chip:hover,
.bt121-terminal-btn.active{
  color:#f0c45b;
  border-color:#745a29;
  background:#101820;
  box-shadow:0 0 18px rgba(228,184,77,.08);
}

.bt121-date-btn{
  display:flex;
  align-items:center;
  gap:7px;
}
.bt121-date-btn small{
  color:#607484;
  font-size:7px;
}
.bt121-date-btn b{
  color:#d8e0e6;
  font-size:8px;
}

.bt121-terminal-pop{
  display:none;
  position:absolute;
  top:49px;
  right:65px;
  z-index:50;
  width:255px;
  padding:12px;
  border:1px solid #273a48;
  border-radius:10px;
  background:#08121c;
  box-shadow:0 20px 50px rgba(0,0,0,.5);
}
.bt121-terminal-pop.open{display:block}
.bt121-terminal-pop label{
  display:block;
  color:#8296a5;
  font-size:8px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.bt121-terminal-pop input[type=date]{
  display:block;
  width:100%;
  box-sizing:border-box;
  margin-top:7px;
  padding:10px;
  color:#eef3f6;
  background:#050b11;
  border:1px solid #263947;
  border-radius:7px;
}
.bt121-terminal-pop-actions{
  display:flex;
  justify-content:flex-end;
  gap:6px;
  margin-top:10px;
}

.bt121-indicator-pop{
  right:105px;
  width:180px;
}
.bt121-indicator-pop label{
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 2px;
  color:#a7b5bf;
  text-transform:none;
  letter-spacing:0;
}
.bt121-indicator-pop input{
  accent-color:#e4b84d;
}

.bt11-chart-shell{
  position:relative;
  min-height:610px!important;
  background:#050b11;
}

.bt-chart-wrap{
  position:relative!important;
  min-height:610px!important;
}

#btChartContainer{
  min-height:610px!important;
  height:610px!important;
}

.bt121-drawing-rail{
  position:absolute;
  left:9px;
  top:69px;
  width:38px;
  padding:5px 4px;
  z-index:28;
  display:flex;
  flex-direction:column;
  gap:3px;
  border:1px solid #1c2b37;
  border-radius:9px;
  background:rgba(5,11,17,.94);
  backdrop-filter:blur(14px);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.bt121-drawing-rail button{
  width:30px;
  height:30px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#8497a6;
  cursor:pointer;
  font:700 13px serif;
}
.bt121-drawing-rail button:hover,
.bt121-drawing-rail button.active{
  color:#f1c65c;
  background:#17212b;
  box-shadow:inset 0 0 0 1px rgba(228,184,77,.23);
}
.bt121-drawing-separator{
  height:1px;
  background:#1c2b36;
  margin:4px 3px;
}

.bt121-drawing-layer{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:9;
  pointer-events:none;
  overflow:hidden;
}
.bt121-line{
  stroke:#e1b84f;
  stroke-width:1.25;
  vector-effect:non-scaling-stroke;
}
.bt121-line-muted{
  stroke:#8c7441;
  stroke-width:1;
  stroke-dasharray:5 5;
  vector-effect:non-scaling-stroke;
}
.bt121-vline{
  stroke:#6e8292;
  stroke-width:1;
  stroke-dasharray:4 5;
  vector-effect:non-scaling-stroke;
}
.bt121-drawing-text{
  fill:#edc55d;
  font:700 10px "JetBrains Mono",monospace;
  paint-order:stroke;
  stroke:#050b11;
  stroke-width:3px;
}

.bt121-crosshair-hud{
  position:absolute;
  top:10px;
  left:56px;
  z-index:12;
  pointer-events:none;
  padding:5px 8px;
  border-radius:6px;
  background:rgba(4,10,15,.72);
  color:#728899;
  font:700 8px "JetBrains Mono",monospace;
}

.bt121-replay-meta{
  color:#758a9a;
  font:700 8px "JetBrains Mono",monospace;
  min-width:110px;
  text-align:center;
}

.bt11-replaybar{
  width:min(790px,86%)!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  bottom:17px!important;
  padding:7px 9px!important;
  border-color:#293b49!important;
  background:rgba(5,12,18,.96)!important;
  backdrop-filter:blur(15px);
  box-shadow:0 16px 45px rgba(0,0,0,.48);
}
.bt121-replay-handle{
  color:#64798a;
  cursor:grab;
  font-size:13px;
  padding:0 2px;
}
.bt121-step-size{
  max-width:76px;
}

.bt121-journal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 12px;
  border-bottom:1px solid #172631;
  background:#071019;
}
.bt121-journal-head div{
  display:flex;
  gap:10px;
  align-items:center;
}
.bt121-journal-head span{
  color:#dfb54a;
  font:800 8px "JetBrains Mono",monospace;
  letter-spacing:.12em;
}
.bt121-journal-head b{
  color:#748999;
  font-size:8px;
}
.bt121-journal-head button{
  border:0;
  background:transparent;
  color:#8396a5;
  cursor:pointer;
  font-size:8px;
}
.bt121-journal-collapsed .bt11-bottom-tabs,
.bt121-journal-collapsed .bt11-bottom-pane{
  display:none!important;
}

.bt121-ticket-hidden .bt11-right{
  display:none!important;
}
.bt121-ticket-hidden .bt11-grid{
  grid-template-columns:245px minmax(0,1fr)!important;
}

.bt121-focus-mode .bt11-left,
.bt121-focus-mode .bt11-right,
.bt121-focus-mode .bt11-bottom{
  display:none!important;
}
.bt121-focus-mode .bt11-grid{
  grid-template-columns:minmax(0,1fr)!important;
}
.bt121-focus-mode .bt11-center{
  max-width:none!important;
  width:100%;
}
.bt121-focus-mode .bt11-chart-shell,
.bt121-focus-mode .bt-chart-wrap,
.bt121-focus-mode #btChartContainer{
  height:calc(100vh - 175px)!important;
  min-height:650px!important;
}
.bt121-focus-mode .bt11-chart-card{
  border-radius:0!important;
}

#btReplayScreen:fullscreen{
  overflow:auto;
  background:#03080c;
}
#btReplayScreen:fullscreen .bt11-commandbar{
  position:sticky;
  top:0;
  z-index:60;
}
#btReplayScreen:fullscreen .bt11-chart-shell,
#btReplayScreen:fullscreen .bt-chart-wrap,
#btReplayScreen:fullscreen #btChartContainer{
  min-height:calc(100vh - 175px)!important;
}

@media(max-width:900px){
  .bt121-terminal-topbar{
    overflow-x:auto;
    scrollbar-width:none;
  }
  .bt121-terminal-topbar::-webkit-scrollbar{display:none}
  .bt121-market-change,
  .bt121-date-btn,
  .bt121-indicators-toggle{
    display:none;
  }
  .bt11-chart-shell,
  .bt-chart-wrap,
  #btChartContainer{
    min-height:500px!important;
    height:500px!important;
  }
  .bt121-drawing-rail{
    left:5px;
    top:61px;
  }
  .bt11-replaybar{
    width:94%!important;
  }
  .bt121-replay-meta{
    display:none;
  }
}


/* ===================================================================
   BUILD 11.2.2 — TYSON TRADING TERMINAL
   Product patterns inspired by TradingView-class workflows and
   Apache-2.0 KLineChart Pro / TradingChest feature sets.
   =================================================================== */

:root{
  --ttv-bg:#0b0e11;
  --ttv-bg2:#11151a;
  --ttv-panel:#131820;
  --ttv-line:#242b33;
  --ttv-line2:#303843;
  --ttv-text:#d9dce1;
  --ttv-muted:#7e8896;
  --ttv-gold:#e2b74e;
  --ttv-blue:#2962ff;
  --ttv-green:#22ab94;
  --ttv-red:#f23645;
}

.bt11-workspace{
  background:var(--ttv-bg)!important;
}
.bt11-commandbar{
  background:#0b0e11!important;
  border-color:#20262d!important;
}
.bt11-left,.bt11-right{
  background:#0d1116!important;
}
.bt11-center{
  background:#0b0e11!important;
  padding:8px!important;
}
.bt11-panel{
  background:#11161d!important;
  border-color:#242b33!important;
  box-shadow:none!important;
}
.bt11-chart-card{
  background:#0b0e11!important;
  border-color:#242b33!important;
  border-radius:8px!important;
}
.bt121-terminal-topbar{
  min-height:46px!important;
  padding:5px 8px!important;
  background:#0f1318!important;
  border-color:#242b33!important;
}
.bt121-market-identity strong{font-size:12px!important}
.bt121-market-price{color:#d9dce1!important}
.bt121-terminal-btn,.bt121-terminal-chip{
  background:#11161c!important;
  border-color:#262e37!important;
  border-radius:5px!important;
  min-height:30px!important;
}
.bt121-terminal-btn:hover,.bt121-terminal-chip:hover,.bt121-terminal-btn.active{
  color:#fff!important;
  background:#1b222b!important;
  border-color:#394451!important;
  box-shadow:none!important;
}
.bt121-drawing-rail{
  top:58px!important;
  left:5px!important;
  width:39px!important;
  border-radius:5px!important;
  background:#0f1318!important;
  border-color:#252c34!important;
  padding:4px!important;
  box-shadow:none!important;
}
.bt121-drawing-rail button{
  width:31px!important;height:31px!important;
  color:#9aa3ad!important;
  border-radius:4px!important;
  font-family:Inter,system-ui,sans-serif!important;
}
.bt121-drawing-rail button:hover,
.bt121-drawing-rail button.active{
  background:#20262e!important;color:#fff!important;box-shadow:none!important;
}
.bt121-replaybar{
  background:#11161c!important;
  border-color:#303842!important;
  border-radius:6px!important;
  box-shadow:0 8px 24px rgba(0,0,0,.3)!important;
}
.bt11-bottom{
  background:#0f1318!important;
  border-color:#242b33!important;
  border-radius:6px!important;
}
.bt121-journal-head{
  background:#0f1318!important;border-color:#242b33!important;
}

/* Expanded top controls injected by 11.2.2 */
.ttv-toolbar-cluster{display:flex;align-items:center;gap:3px;padding-left:6px;border-left:1px solid #252c33}
.ttv-icon-btn,.ttv-text-btn{
  height:30px;border:0;border-radius:4px;background:transparent;color:#a0a8b2;
  cursor:pointer;font:600 9px Inter,system-ui,sans-serif;padding:0 8px
}
.ttv-icon-btn{width:31px;padding:0;font-size:13px}
.ttv-icon-btn:hover,.ttv-text-btn:hover,.ttv-icon-btn.active,.ttv-text-btn.active{background:#20262e;color:#fff}
.ttv-timeframes{display:flex;align-items:center;gap:1px}
.ttv-timeframes button{min-width:30px;height:28px;border:0;border-radius:4px;background:transparent;color:#939da8;font:700 9px Inter,sans-serif;cursor:pointer}
.ttv-timeframes button:hover,.ttv-timeframes button.active{background:#20262e;color:#fff}
.ttv-timeframes button.active{color:#f0c862}
.ttv-popover{
  display:none;position:absolute;z-index:80;top:43px;
  min-width:220px;max-height:390px;overflow:auto;
  padding:8px;border:1px solid #303943;border-radius:7px;background:#151a20;
  box-shadow:0 18px 50px rgba(0,0,0,.5)
}
.ttv-popover.open{display:block}
.ttv-popover.right{right:8px}.ttv-popover.center{right:140px}
.ttv-pop-title{padding:7px 8px;color:#7f8994;font:700 8px Inter,sans-serif;text-transform:uppercase;letter-spacing:.12em}
.ttv-menu-item{
  display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  border:0;border-radius:5px;background:transparent;color:#c8cdd3;padding:8px 9px;
  font:500 10px Inter,sans-serif;text-align:left;cursor:pointer
}
.ttv-menu-item:hover{background:#222932;color:#fff}
.ttv-menu-item span:last-child{color:#6f7b87;font-size:8px}
.ttv-search{width:100%;box-sizing:border-box;padding:9px 10px;margin-bottom:6px;border:1px solid #303943;border-radius:5px;background:#0e1217;color:#fff;outline:none}
.ttv-search:focus{border-color:#596675}

.ttv-tool-group{position:relative}
.ttv-tool-flyout{
  display:none;position:absolute;left:39px;top:0;z-index:75;width:205px;padding:7px;
  border:1px solid #303943;border-radius:6px;background:#151a20;box-shadow:0 14px 35px rgba(0,0,0,.45)
}
.ttv-tool-group.open .ttv-tool-flyout{display:block}

.ttv-object-tree{
  position:absolute;z-index:65;right:8px;top:52px;width:260px;max-height:420px;display:none;
  background:#151a20;border:1px solid #303943;border-radius:7px;box-shadow:0 16px 45px rgba(0,0,0,.5);overflow:auto
}
.ttv-object-tree.open{display:block}
.ttv-object-head{display:flex;justify-content:space-between;align-items:center;padding:10px;border-bottom:1px solid #272f38;color:#d6dae0;font-size:10px}
.ttv-object-row{display:grid;grid-template-columns:24px 1fr 28px 28px;gap:4px;align-items:center;padding:7px 8px;border-bottom:1px solid #20262d;color:#aeb6bf;font-size:9px}
.ttv-object-row button{height:24px;border:0;border-radius:4px;background:transparent;color:#76818c;cursor:pointer}.ttv-object-row button:hover{background:#252c34;color:#fff}

.ttv-drawing-properties{
  position:absolute;z-index:70;left:55px;top:58px;display:none;align-items:center;gap:5px;padding:5px;
  border:1px solid #303943;border-radius:6px;background:#151a20;box-shadow:0 10px 30px rgba(0,0,0,.4)
}
.ttv-drawing-properties.open{display:flex}
.ttv-drawing-properties input[type=color]{width:28px;height:26px;border:0;background:transparent;padding:0}
.ttv-drawing-properties select{height:27px;border:1px solid #303943;border-radius:4px;background:#0e1217;color:#ccd2d8;font-size:9px}
.ttv-drawing-properties button{height:27px;border:0;border-radius:4px;background:#20262e;color:#b9c1c9;font-size:9px;cursor:pointer}

.ttv-session-controls{position:absolute;z-index:18;left:52px;bottom:57px;display:flex;gap:4px}
.ttv-session-chip{height:24px;border:1px solid #2a323b;border-radius:4px;background:rgba(14,18,23,.82);color:#7c8792;font-size:8px;padding:0 7px;cursor:pointer}
.ttv-session-chip.active{color:#fff;border-color:#4a5561}
.ttv-session-layer{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.ttv-session-box{position:absolute;top:0;bottom:0;opacity:.065;border-left:1px solid rgba(255,255,255,.1)}
.ttv-session-box.asia{background:#8b5cf6}.ttv-session-box.london{background:#3b82f6}.ttv-session-box.newyork{background:#22c55e}

.ttv-chart-watermark{position:absolute;z-index:3;left:64px;top:58px;pointer-events:none;color:rgba(255,255,255,.045);font:800 42px Cinzel,serif;letter-spacing:.04em}
.ttv-ohlc{position:absolute;z-index:14;left:57px;top:9px;display:flex;gap:9px;pointer-events:none;color:#788492;font:600 8px "JetBrains Mono",monospace}
.ttv-ohlc b{font-weight:700;color:#9ba5af}
.ttv-ohlc .up{color:#22ab94}.ttv-ohlc .down{color:#f23645}

.ttv-layout-toast{position:absolute;right:12px;bottom:12px;z-index:90;display:none;padding:8px 11px;border-radius:5px;background:#1f2730;color:#dce1e6;font-size:9px}
.ttv-layout-toast.show{display:block}

.tv-attribution{
  position:fixed;z-index:9999;right:8px;bottom:5px;color:#53606c;font:500 7px Inter,sans-serif;opacity:.75
}
.tv-attribution a{color:#687888;text-decoration:none}

#btReplayScreen.bt121-focus-mode .bt11-commandbar{display:none!important}
#btReplayScreen.bt121-focus-mode{inset:0!important}
#btReplayScreen.bt121-focus-mode .bt11-grid{height:100vh!important}
#btReplayScreen.bt121-focus-mode .bt121-terminal-topbar{position:sticky;top:0;z-index:55}
#btReplayScreen.bt121-focus-mode .bt11-chart-shell,
#btReplayScreen.bt121-focus-mode .bt-chart-wrap,
#btReplayScreen.bt121-focus-mode #btChartContainer{height:calc(100vh - 55px)!important;min-height:calc(100vh - 55px)!important}

@media(max-width:900px){
  .ttv-toolbar-cluster.ttv-desktop,.ttv-timeframes{display:none}
  .ttv-object-tree{right:5px;left:45px;width:auto}
  .ttv-drawing-properties{left:45px;top:55px}
  .ttv-chart-watermark{font-size:28px;left:50px}
}


/* ===================================================================
   BUILD 11.2.3 — KLINE / TRADINGCHEST MIGRATION
   StrategyTune-style workspace density + Tyson identity.
   =================================================================== */
.tyson-kline-migrated{
  --tk-bg:#0b0e11;--tk-panel:#11151a;--tk-panel2:#151a20;
  --tk-border:#252c34;--tk-text:#d9dce1;--tk-muted:#7f8994;--tk-gold:#d6ad4e;
  background:var(--tk-bg)!important;
}
.tyson-kline-migrated .bt11-grid{
  grid-template-columns:220px minmax(0,1fr) 245px!important;
  gap:6px!important;
  padding:6px!important;
  padding-right:50px!important;
}
.tyson-kline-migrated .bt11-center{padding:0!important}
.tyson-kline-migrated .bt11-left,.tyson-kline-migrated .bt11-right{
  border:1px solid var(--tk-border);border-radius:6px;background:#0f1318!important;overflow:auto
}
.tyson-kline-migrated .bt11-panel{border:0!important;border-bottom:1px solid var(--tk-border)!important;border-radius:0!important;background:transparent!important}
.tyson-kline-migrated .bt11-chart-card{height:auto;min-height:650px;border-radius:6px!important;overflow:hidden!important}
.tyson-kline-migrated .bt11-chart-toolbar{display:none!important}
.tyson-kline-host{position:relative;min-height:650px;background:#0b0e11}
.tyson-kline-host .klinecharts-pro{height:100%!important;min-height:650px}
.tyson-kline-host .klinecharts-pro-chart{min-height:590px}
.tyson-chart-bootstrap{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#0b0e11;color:#7d8893}
.tyson-chart-bootstrap img{width:44px;opacity:.8}.tyson-chart-bootstrap strong{font:700 11px Cinzel,serif;color:#d6ad4e;letter-spacing:.16em}.tyson-chart-bootstrap span{font-size:9px}
.tyson-kline-ready .tyson-chart-bootstrap{display:none}

/* Keep Tyson replay bar above TradingChest, compact like StrategyTune. */
.tyson-kline-migrated .bt11-replaybar{
  z-index:60!important;width:min(690px,72%)!important;height:42px!important;border-radius:5px!important;
  background:rgba(18,22,28,.97)!important;border:1px solid #343d47!important;box-shadow:0 10px 35px rgba(0,0,0,.4)!important
}
.tyson-kline-migrated .bt11-replaybar button,.tyson-kline-migrated .bt11-replaybar select{
  border-radius:4px!important
}

/* Right terminal icon rail */
.tyson-terminal-rail{
  position:absolute;z-index:80;right:5px;top:58px;bottom:6px;width:39px;
  background:#0f1318;border:1px solid var(--tk-border);border-radius:5px;
  display:flex;flex-direction:column;align-items:center;padding:4px 3px;gap:3px
}
.tyson-terminal-rail button{
  width:31px;height:31px;border:0;border-radius:4px;background:transparent;color:#89939f;
  cursor:pointer;font:600 13px Inter,sans-serif
}
.tyson-terminal-rail button:hover,.tyson-terminal-rail button.active{background:#242b33;color:#fff}
.tyson-terminal-rail button.active{box-shadow:inset 2px 0 0 var(--tk-gold);color:#e1bd67}

/* Bottom broker-terminal styling */
.tyson-kline-migrated .bt11-bottom{margin-top:5px!important;border-radius:5px!important;background:#0f1318!important}
.tyson-terminal-account-strip{
  height:30px;display:flex;align-items:center;gap:22px;padding:0 11px;border-bottom:1px solid var(--tk-border);
  color:#78838f;font:600 8px "JetBrains Mono",monospace
}
.tyson-terminal-account-strip b{color:#cdd2d8;margin-left:4px}
.tyson-terminal-table{min-height:50px;padding:7px 10px}
.tyson-terminal-row{display:grid;grid-template-columns:85px 95px repeat(4,minmax(95px,1fr));gap:10px;align-items:center;padding:8px 9px;border-bottom:1px solid #20262d;color:#a6afb8;font:600 8px "JetBrains Mono",monospace}
.tyson-terminal-row b{color:#e0e4e8}

/* Settings modal */
.tyson-chart-settings-overlay{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.58);backdrop-filter:blur(5px)}
.tyson-chart-settings-overlay.open{display:flex}
.tyson-chart-settings-card{width:min(560px,92vw);border:1px solid #303841;border-radius:9px;background:#151a20;box-shadow:0 25px 75px rgba(0,0,0,.58);padding:14px}
.tyson-settings-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #252c34;padding-bottom:10px}
.tyson-settings-head small{color:#d6ad4e;font-size:7px;letter-spacing:.16em}.tyson-settings-head h3{margin:3px 0 0;font-size:17px;color:#eef1f4}.tyson-settings-head button{border:0;background:transparent;color:#8e98a3;font-size:22px;cursor:pointer}
.tyson-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.tyson-settings-grid label{display:flex;align-items:center;justify-content:space-between;padding:9px;border:1px solid #272f38;border-radius:6px;color:#a4adb6;font-size:9px}
.tyson-settings-grid input[type=color]{width:32px;height:24px;border:0;background:transparent}
.tyson-settings-actions{display:flex;gap:7px;justify-content:flex-end;margin-top:14px;flex-wrap:wrap}

/* TradingChest/KLineChart customization */
.tyson-kline-host .klinecharts-pro{--klinecharts-pro-primary-color:#d6ad4e!important}
.tyson-kline-host [class*="drawing-bar"],.tyson-kline-host [class*="period-bar"]{background:#0f1318!important}
.tyson-kline-host button{font-family:Inter,system-ui,sans-serif}
.tyson-kline-host [class*="modal"]{z-index:200!important}

/* In main replay terminal, hide old pseudo-TradingView layers because TradingChest now owns them. */
.tyson-kline-migrated .bt121-terminal-topbar,
.tyson-kline-migrated .bt121-drawing-rail,
.tyson-kline-migrated #bt121DrawingLayer,
.tyson-kline-migrated #bt121CrosshairHud,
.tyson-kline-migrated .ttv-session-layer,
.tyson-kline-migrated .ttv-session-controls,
.tyson-kline-migrated .ttv-chart-watermark,
.tyson-kline-migrated .ttv-ohlc{display:none!important}

.tyson-kline-migrated:fullscreen{background:#0b0e11}
.tyson-kline-migrated:fullscreen .bt11-commandbar{display:none}
.tyson-kline-migrated:fullscreen .bt11-grid{height:100vh!important;padding-top:5px!important}
.tyson-kline-migrated:fullscreen .tyson-kline-host,.tyson-kline-migrated:fullscreen .klinecharts-pro{min-height:calc(100vh - 150px)!important}

@media(max-width:1050px){
  .tyson-kline-migrated .bt11-grid{grid-template-columns:minmax(0,1fr)!important;padding-right:46px!important}
  .tyson-kline-migrated .bt11-left,.tyson-kline-migrated .bt11-right{display:none!important}
  .tyson-kline-host,.tyson-kline-host .klinecharts-pro{min-height:590px!important}
}
@media(max-width:650px){
  .tyson-kline-migrated .bt11-grid{padding:3px 43px 3px 3px!important}
  .tyson-terminal-rail{right:3px;top:51px}
  .tyson-kline-host,.tyson-kline-host .klinecharts-pro{min-height:510px!important}
  .tyson-settings-grid{grid-template-columns:1fr}
  .tyson-terminal-account-strip{overflow-x:auto;gap:15px}
}


/* ===================================================================
   BUILD 11.2.5 — NATIVE-FIRST / TRADEZELLA-CLASS BACKTEST WORKSPACE
   Native TradingChest/KLineChart owns chart tools, replay and appearance.
   Tyson contributes execution, risk, journal and review around it.
   =================================================================== */
.tyson-native-terminal .tyson-terminal-rail{display:none!important}
.tyson-native-terminal .bt11-grid{
  grid-template-columns:minmax(0,1fr) 286px!important;
  gap:4px!important;padding:4px!important;padding-right:4px!important;
  height:calc(100vh - 126px)!important;min-height:680px!important
}
.tyson-native-terminal .bt11-left{display:none!important}
.tyson-native-terminal .bt11-center{min-width:0!important;display:grid!important;grid-template-rows:minmax(0,1fr) 128px!important;gap:4px!important}
.tyson-native-terminal .bt11-right{display:block!important;border-radius:4px!important;border-color:#242a31!important;background:#0d1116!important;min-width:0!important}
.tyson-native-terminal .bt11-commandbar{
  height:48px!important;min-height:48px!important;padding:0 12px!important;background:#0a0d10!important;
  border-bottom:1px solid #242a31!important
}
.tyson-native-terminal .bt11-command-left{gap:9px!important}.tyson-native-terminal .bt11-icon-btn{width:31px!important;height:31px!important;border-radius:5px!important}
.tyson-native-terminal .bt11-kicker{font-size:7px!important;letter-spacing:.14em!important}.tyson-native-terminal .bt11-session-title{font-size:13px!important}
.tyson-native-terminal .bt11-session-meta{font-size:8px!important;color:#8c96a1!important}
.tyson-native-terminal .bt11-status{font-size:8px!important}
.tyson-native-terminal .bt-native-order-toggle{display:none}

.tyson-native-terminal .bt11-chart-card,.tyson-native-terminal .bt-chart-shell,.tyson-native-terminal .bt11-chart-shell,
.tyson-native-terminal .bt-chart-wrap,.tyson-native-terminal .tyson-kline-host,.tyson-native-terminal .tyson-kline-host .klinecharts-pro{
  height:100%!important;min-height:0!important;border-radius:3px!important
}
.tyson-native-terminal .bt11-chart-card{border:1px solid #242a31!important;background:#0b0e11!important;overflow:hidden!important}

/* Remove every duplicated Tyson chart control. TradingChest already has better native versions. */
.tyson-native-terminal .bt11-chart-toolbar,
.tyson-native-terminal .bt11-replaybar,
.tyson-native-terminal .bt-goto-popover,
.tyson-native-terminal .ttv-session-layer,
.tyson-native-terminal .ttv-session-controls,
.tyson-native-terminal .ttv-chart-watermark,
.tyson-native-terminal .ttv-ohlc,
.tyson-native-terminal .bt121-terminal-topbar,
.tyson-native-terminal .bt121-drawing-rail{display:none!important}

/* Native TradingChest replay controls become the single replay UI. */
.tyson-native-terminal .klinecharts-pro-replay-bar{
  z-index:90!important;background:#15191f!important;border:1px solid #353c45!important;border-radius:5px!important;
  box-shadow:0 10px 30px rgba(0,0,0,.38)!important
}
.tyson-native-terminal .klinecharts-pro-replay-bar .replay-btn:hover{color:#e2b74e!important}
.tyson-native-terminal .klinecharts-pro-replay-bar .replay-speed{color:#e2b74e!important}

/* Let the native chart breathe. */
.tyson-native-terminal .tyson-kline-host [class*="period-bar"]{min-height:40px!important;border-bottom:1px solid #252b33!important}
.tyson-native-terminal .tyson-kline-host [class*="drawing-bar"]{border-right:1px solid #252b33!important}
.tyson-native-terminal .tyson-kline-host [class*="setting"],
.tyson-native-terminal .tyson-kline-host [class*="indicator"]{font-family:Inter,system-ui,sans-serif!important}

/* Compact broker-like order drawer. */
.tyson-native-terminal .bt11-right .bt11-panel{padding:13px!important}
.tyson-native-terminal .bt11-ticket{font-size:9px!important}
.tyson-native-terminal .bt11-ticket-grid{gap:7px!important}
.tyson-native-terminal .bt11-ticket-grid label{font-size:7px!important}
.tyson-native-terminal .bt11-ticket-grid input,.tyson-native-terminal .bt12-trigger-field input{height:35px!important;border-radius:4px!important}
.tyson-native-terminal .bt11-side-toggle button,.tyson-native-terminal .bt12-order-types button{height:34px!important;border-radius:3px!important}
.tyson-native-terminal .bt11-place-order{height:42px!important;border-radius:4px!important;font-size:8px!important}
.tyson-native-terminal .bt11-risk-box{gap:5px!important}.tyson-native-terminal .bt11-risk-box>div{padding:9px!important}

/* TradeZella-like compact execution tray. */
.tyson-native-terminal .bt11-bottom{margin:0!important;height:128px!important;min-height:128px!important;border:1px solid #242a31!important;border-radius:3px!important;overflow:hidden!important}
.tyson-native-terminal .tyson-terminal-account-strip{height:29px!important;background:#0b0e11!important;justify-content:flex-end!important}
.tyson-native-terminal .bt11-bottom-tabs{height:32px!important;padding:0 9px!important;display:flex!important;align-items:stretch!important;border-bottom:1px solid #242a31!important}
.tyson-native-terminal .bt11-bottom-tabs button{padding:0 14px!important;font-size:8px!important;border-radius:0!important}
.tyson-native-terminal .bt11-bottom-pane{height:65px!important;overflow:auto!important;padding:0!important}
.tyson-native-terminal .bt11-bottom-pane textarea{height:58px!important;min-height:58px!important;border:0!important;border-radius:0!important}

/* Collapse the order drawer when maximum chart real estate is wanted. */
.tyson-native-terminal.tyson-order-collapsed .bt11-grid{grid-template-columns:minmax(0,1fr)!important}
.tyson-native-terminal.tyson-order-collapsed .bt11-right{display:none!important}
.tyson-native-terminal.tyson-order-collapsed .bt-native-order-toggle{display:inline-flex!important}

/* Native replay running = subtly emphasize historical mode, no extra controls. */
.tyson-replay-active .tyson-native-terminal .bt11-status{color:#e1ba5b!important}
.tyson-replay-playing .tyson-native-terminal .bt11-status i{box-shadow:0 0 0 4px rgba(48,202,135,.08),0 0 14px rgba(48,202,135,.5)!important}

/* We intentionally retire our old custom chart settings modal. */
.tyson-native-terminal ~ .tyson-chart-settings-overlay,.tyson-chart-settings-overlay{display:none!important}

@media(max-width:1200px){
  .tyson-native-terminal .bt11-grid{grid-template-columns:minmax(0,1fr) 250px!important}
}
@media(max-width:900px){
  .tyson-native-terminal .bt11-grid{grid-template-columns:minmax(0,1fr)!important;height:auto!important;min-height:calc(100vh - 120px)!important}
  .tyson-native-terminal .bt11-right{display:none!important}
  .tyson-native-terminal .bt-native-order-toggle{display:inline-flex!important}
  .tyson-native-terminal .bt11-center{grid-template-rows:minmax(520px,70vh) 128px!important}
}


/* ===================================================================
   BUILD 11.3 — TYSON PRO BACKTESTER
   Chart-first terminal. Native KLine/TradingChest controls stay native.
   =================================================================== */
body.tyson-pro-session-open{overflow:hidden;background:#07090c}
body.tyson-pro-session-open #navbar{display:none!important}
body.tyson-pro-session-open .app{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
body.tyson-pro-session-open #btTool>div:not(#btReplayScreen),
body.tyson-pro-session-open #btTabs{display:none!important}

.tyson-pro-backtester{position:fixed!important;inset:0!important;z-index:5000!important;background:#080b0f!important;display:none!important;color:#d7dce2}
.tyson-pro-backtester.active{display:block!important}
.tyson-pro-backtester .bt11-commandbar{display:none!important}

.tpb-brandbar{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 9px;background:#090c10;border-bottom:1px solid #272c33;box-sizing:border-box}
.tpb-brand-left,.tpb-brand-right{display:flex;align-items:center;gap:8px;min-width:0}.tpb-brand-left>div{display:flex;flex-direction:column;line-height:1.05}.tpb-brand-left b{font:700 10px Cinzel,serif;letter-spacing:.15em;color:#e1ba5b}.tpb-brand-left span{font:600 6px Inter,sans-serif;letter-spacing:.14em;color:#727d88}.tpb-mark{width:18px;height:22px;object-fit:contain}.tpb-divider{width:1px;height:22px;background:#2a3037;margin:0 5px}.tpb-session-chip{max-width:420px}.tpb-session-chip b{font:700 11px Inter,sans-serif;color:#e6eaee;letter-spacing:.01em}.tpb-session-chip span{font:500 7px Inter,sans-serif;color:#7f8994;letter-spacing:.03em;margin-top:2px}.tpb-icon,.tpb-button{height:29px;border:1px solid #2b323a;border-radius:4px;background:#10151b;color:#b7c0c9;cursor:pointer;font:700 8px Inter,sans-serif}.tpb-icon{width:31px;font-size:15px}.tpb-button{padding:0 11px;text-transform:uppercase;letter-spacing:.08em}.tpb-button:hover,.tpb-icon:hover{background:#1a2028;color:#fff}.tpb-button.danger:hover{border-color:#77363a;color:#ff737d}.tpb-live-state{display:flex;align-items:center;gap:5px;color:#8b96a1;font:700 7px Inter,sans-serif;letter-spacing:.1em}.tpb-live-state i{width:6px;height:6px;border-radius:50%;background:#2ed28a;box-shadow:0 0 10px #2ed28a}

/* Full chart. Old Tyson sidebars stay in DOM for execution compatibility but no longer consume layout space. */
.tyson-pro-backtester .bt11-grid{position:absolute!important;left:0!important;right:0!important;top:42px!important;bottom:21px!important;display:block!important;height:auto!important;min-height:0!important;padding:0!important}
.tyson-pro-backtester .bt11-left{display:none!important}
.tyson-pro-backtester .bt11-center{position:absolute!important;inset:0!important;display:block!important;padding:0!important;min-width:0!important}
.tyson-pro-backtester .bt11-chart-card{position:absolute!important;inset:0 0 35px 0!important;height:auto!important;min-height:0!important;border:0!important;border-radius:0!important;background:#0b0e11!important}
.tyson-pro-backtester .bt11-chart-shell,.tyson-pro-backtester .bt-chart-shell,.tyson-pro-backtester .bt-chart-wrap,.tyson-pro-backtester .tyson-kline-host,.tyson-pro-backtester .klinecharts-pro{height:100%!important;min-height:0!important;border-radius:0!important}
.tyson-pro-backtester .tyson-kline-host [class*="period-bar"]{min-height:38px!important;background:#0d1014!important;border-bottom:1px solid #262c33!important}
.tyson-pro-backtester .tyson-kline-host [class*="drawing-bar"]{background:#0d1014!important;border-right:1px solid #262c33!important}

/* Trade drawer overlays the chart instead of shrinking it. */
.tyson-pro-backtester .bt11-right{display:block!important;position:absolute!important;z-index:110!important;right:43px!important;top:48px!important;bottom:76px!important;width:310px!important;max-width:calc(100vw - 70px)!important;transform:translateX(calc(100% + 60px));transition:transform .18s ease;background:#0c1015!important;border:1px solid #303741!important;border-radius:6px!important;box-shadow:0 18px 55px rgba(0,0,0,.48)!important;overflow:auto!important}
.tyson-pro-backtester.tpb-trade-open .bt11-right{transform:translateX(0)}
.tyson-pro-backtester .bt11-right>section:not(:first-child),.tyson-pro-backtester .bt11-disclaimer{display:none!important}
.tyson-pro-backtester .bt11-right .bt11-panel{padding:13px!important;border:0!important;background:transparent!important}
.tpb-chart-trade-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0 7px}.tpb-chart-trade-actions button{height:35px;border:1px solid #2b343e;border-radius:4px;color:#dbe1e6;background:#151a20;font:700 8px Inter,sans-serif;cursor:pointer}.tpb-chart-trade-actions .tpb-plan-long:hover{border-color:#1e7c68;background:rgba(34,171,148,.13);color:#38c6aa}.tpb-chart-trade-actions .tpb-plan-short:hover{border-color:#7c3037;background:rgba(242,54,69,.10);color:#ff6f79}.tpb-order-hint{font:500 7.5px/1.45 Inter,sans-serif;color:#7c8792;padding:7px 8px;margin-bottom:9px;background:#0b0f14;border:1px solid #222a32;border-radius:4px}

/* Right utility rail - Tyson-only capabilities, not chart duplicates. */
.tpb-utility-rail{position:absolute;z-index:115;right:3px;top:49px;bottom:39px;width:38px;display:flex;flex-direction:column;gap:3px;padding:4px 3px;background:#0b0f14;border:1px solid #272e36;border-radius:5px}.tpb-utility-rail button{position:relative;width:30px;height:34px;border:0;border-radius:4px;background:transparent;color:#7d8894;font:600 13px Inter,sans-serif;cursor:pointer}.tpb-utility-rail button span{position:absolute;right:37px;top:5px;display:none;padding:6px 8px;background:#191f26;border:1px solid #323a43;border-radius:4px;color:#d7dde3;font-size:8px;white-space:nowrap}.tpb-utility-rail button:hover span{display:block}.tpb-utility-rail button:hover,.tpb-utility-rail button.active{background:#20262e;color:#e1ba5b}.tpb-utility-rail button.active{box-shadow:inset -2px 0 #d6ad4e}

/* Native position-plan guidance only appears while the user is drawing. */
.tpb-plan-toast{position:absolute;z-index:140;top:91px;left:50%;transform:translate(-50%,-12px);opacity:0;pointer-events:none;display:flex;align-items:center;gap:9px;padding:7px 10px;background:#161c23;border:1px solid #39434e;border-radius:5px;box-shadow:0 10px 28px rgba(0,0,0,.38);transition:.15s}.tpb-plan-toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}.tpb-plan-toast b{color:#e5bf62;font-size:8px}.tpb-plan-toast span{color:#9da6af;font-size:8px}.tpb-plan-toast button{border:0;background:transparent;color:#89949e;cursor:pointer;font-size:16px}

/* Bottom terminal: one 35px strip by default, expands on demand. */
.tyson-pro-backtester .bt11-bottom{position:absolute!important;z-index:105!important;left:0!important;right:0!important;bottom:0!important;height:35px!important;min-height:35px!important;margin:0!important;border:0!important;border-top:1px solid #292f36!important;border-radius:0!important;background:#090d11!important;overflow:hidden!important;transition:height .18s ease}.tyson-pro-backtester.tpb-terminal-expanded .bt11-bottom{height:226px!important}.tyson-pro-backtester .tyson-terminal-account-strip{position:absolute!important;top:0!important;right:0!important;left:auto!important;height:34px!important;display:flex!important;gap:0!important;padding:0 7px!important;border:0!important;background:#090d11!important;overflow:auto!important}.tyson-pro-backtester .tyson-terminal-account-strip span{min-width:88px;padding:6px 10px;border-left:1px solid #20262c;display:flex;flex-direction:column;gap:2px;color:#67727d;font:600 6px Inter,sans-serif;text-transform:uppercase;letter-spacing:.07em}.tyson-pro-backtester .tyson-terminal-account-strip b{margin:0!important;color:#ccd2d8;font:600 9px "JetBrains Mono",monospace;text-transform:none;letter-spacing:0}.tyson-pro-backtester .bt11-bottom-tabs{position:absolute;top:0;left:0;height:34px!important;width:max-content;min-width:550px;display:flex!important;align-items:center!important;padding:0 6px!important;border:0!important;background:#090d11!important}.tyson-pro-backtester .bt11-bottom-tabs button{height:34px!important;padding:0 12px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#7f8994!important;font:600 7.5px Inter,sans-serif!important}.tyson-pro-backtester .bt11-bottom-tabs button.active{color:#e4bd5b!important;border-bottom:2px solid #d6ad4e!important}.tyson-pro-backtester .bt11-bottom-pane{display:none!important;position:absolute!important;left:0;right:0;top:35px;bottom:0;height:auto!important;overflow:auto!important;background:#0c1015!important;border-top:1px solid #232a31}.tyson-pro-backtester.tpb-terminal-expanded .bt11-bottom-pane.active{display:block!important}

.tyson-pro-backtester.tpb-terminal-expanded .bt11-chart-card{bottom:226px!important}
.tyson-pro-backtester.tpb-terminal-expanded .bt11-right{bottom:238px!important}

.tpb-journal-pane{padding:10px!important}.tpb-journal-grid{display:grid;grid-template-columns:180px 120px 90px 180px minmax(300px,1fr) auto;gap:8px;align-items:end}.tpb-journal-field{display:flex;flex-direction:column;gap:4px}.tpb-journal-field label{font-size:6px;color:#6f7a86;text-transform:uppercase;letter-spacing:.1em}.tpb-journal-field input,.tpb-journal-field select{height:31px;border:1px solid #29313a;border-radius:4px;background:#11161c;color:#cfd5db;padding:0 8px;font-size:8px}.tpb-journal-grid textarea{height:51px!important;min-height:51px!important;border:1px solid #29313a!important;border-radius:4px!important;padding:8px!important;background:#11161c!important}.tpb-journal-actions{display:flex;gap:6px;align-items:center}
.tpb-session-review{display:flex;align-items:stretch;gap:0;height:100%}.tpb-session-review>div{min-width:150px;padding:12px;border-right:1px solid #222931;display:flex;flex-direction:column;gap:5px}.tpb-session-review span{font-size:6px;color:#68737e;text-transform:uppercase;letter-spacing:.1em}.tpb-session-review b{font-size:9px;color:#d1d7dd}.tpb-session-review button{margin:12px}
.tpb-positive{color:#35c495!important}.tpb-negative{color:#f26770!important}.tpb-closed-row{grid-template-columns:100px 80px 130px 130px 120px 90px!important}

.tpb-statusbar{position:absolute;z-index:120;left:0;right:0;bottom:0;height:21px;display:flex;align-items:center;gap:18px;padding:0 10px;background:#070a0d;border-top:1px solid #20262c;color:#68737e;font:600 6.5px Inter,sans-serif;letter-spacing:.04em}.tpb-statusbar>div{display:flex;align-items:center;gap:5px}.tpb-statusbar i{width:5px;height:5px;border-radius:50%;background:#666}.tpb-statusbar i.ok{background:#2ed28a;box-shadow:0 0 8px rgba(46,210,138,.5)}.tpb-status-right{margin-left:auto}

/* TradingChest's native replay/settings/drawing UI is the source of truth. */
.tyson-pro-backtester .klinecharts-pro-replay-bar{z-index:130!important}
.tyson-pro-backtester .tyson-chart-settings-overlay,.tyson-pro-backtester .bt11-replaybar,.tyson-pro-backtester .bt11-chart-toolbar{display:none!important}

@media(max-width:900px){
  .tpb-brandbar{padding:0 5px}.tpb-brand-left .tpb-divider,.tpb-session-chip span,.tpb-live-state{display:none}.tpb-button{padding:0 8px}.tpb-utility-rail{right:2px}.tyson-pro-backtester .bt11-right{right:42px;width:min(320px,calc(100vw - 48px))!important}.tyson-pro-backtester .tyson-terminal-account-strip span:nth-child(n+5){display:none}.tpb-journal-grid{grid-template-columns:1fr 1fr}.tpb-journal-grid textarea{grid-column:1/-1}.tpb-journal-actions{grid-column:1/-1}.tyson-pro-backtester .bt11-bottom-tabs{min-width:520px;overflow-x:auto}.tyson-pro-backtester.tpb-terminal-expanded .bt11-bottom{height:260px!important}.tyson-pro-backtester.tpb-terminal-expanded .bt11-chart-card{bottom:260px!important}
}


/* ===================================================================
   BUILD 11.4 — DIRECT CHART EXECUTION + CLEAN REPLAY WORKSPACE
   =================================================================== */
/* One chart, one replay system, one utility rail. */
.tyson-pro-backtester #tysonTerminalRail,
.tyson-pro-backtester .bt11-commandbar,
.tyson-pro-backtester .bt11-left,
.tyson-pro-backtester .bt11-replaybar,
.tyson-pro-backtester .bt-goto-popover{display:none!important}

/* Let native KLine/TradingChest own almost the entire canvas. */
.tyson-pro-backtester .bt11-grid{display:block!important;position:absolute!important;left:0!important;right:42px!important;top:42px!important;bottom:56px!important;padding:0!important;margin:0!important;overflow:hidden!important}
.tyson-pro-backtester .bt11-center{position:absolute!important;inset:0!important;display:block!important;min-width:0!important;padding:0!important}
.tyson-pro-backtester .bt11-chart-card{position:absolute!important;inset:0 0 35px 0!important;min-height:0!important;height:auto!important;border:0!important;border-radius:0!important;background:#0b0e11!important}
.tyson-pro-backtester .bt-chart-shell,.tyson-pro-backtester .bt11-chart-shell,.tyson-pro-backtester #btChartWrap,.tyson-pro-backtester #btChartContainer,.tyson-pro-backtester .tyson-kline-host,.tyson-pro-backtester .klinecharts-pro{height:100%!important;min-height:0!important}
.tyson-pro-backtester .bt11-right{position:absolute!important;z-index:150!important;top:43px!important;bottom:57px!important;right:42px!important;width:292px!important;display:block!important;transform:translateX(calc(100% + 48px));transition:transform .16s ease;background:#0c1015!important;box-shadow:-18px 0 45px rgba(0,0,0,.38)!important}
.tyson-pro-backtester.tpb-trade-open .bt11-right{transform:translateX(0)!important}
.tyson-pro-backtester .bt11-right .bt11-panel:not(.bt11-ticket),.tyson-pro-backtester .bt11-disclaimer{display:none!important}
.tyson-pro-backtester .bt11-ticket{height:100%!important;overflow:auto!important;border-radius:0!important;border:1px solid #283039!important;background:#0d1217!important}

/* Native replay controls are part of the chart. Give them clean breathing room. */
.tyson-pro-backtester [class*="replay"]{font-family:Inter,system-ui,sans-serif}
.tyson-pro-backtester .tyson-kline-host{background:#0b0e11!important}

/* TradingView-style chart execution HUD. Appears only while a position plan exists. */
.tpb-chart-exec-hud{position:absolute;z-index:145;top:58px;right:18px;width:205px;padding:10px;background:rgba(14,18,23,.96);border:1px solid #35404b;border-radius:6px;box-shadow:0 15px 42px rgba(0,0,0,.42);backdrop-filter:blur(10px);opacity:0;transform:translateY(-7px);pointer-events:none;transition:.15s ease}
.tpb-chart-exec-hud.show{opacity:1;transform:translateY(0);pointer-events:auto}
.tpb-exec-hud-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.tpb-exec-hud-head span{font:800 8px Inter,sans-serif;letter-spacing:.12em;color:#e1ba5b}.tpb-exec-hud-head button{width:24px;height:24px;border:0;border-radius:4px;background:transparent;color:#89939d;font-size:17px;cursor:pointer}.tpb-exec-hud-head button:hover{background:#232a32;color:#fff}
.tpb-exec-hud-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.tpb-exec-hud-grid>div{display:flex;flex-direction:column;gap:3px;padding:6px 7px;border:1px solid #252d35;border-radius:4px;background:#10151b}.tpb-exec-hud-grid span{font:600 6px Inter,sans-serif;color:#697580;text-transform:uppercase;letter-spacing:.08em}.tpb-exec-hud-grid b{font:700 8px "JetBrains Mono",monospace;color:#d7dde3}
.tpb-exec-hud-type{margin-top:7px;padding:6px 8px;border-radius:4px;background:#0b0f14;color:#93a0ab;font:700 7px Inter,sans-serif;letter-spacing:.08em;text-align:center}
.tpb-exec-place{width:100%;height:32px;margin-top:7px;border:1px solid #816626;border-radius:4px;background:linear-gradient(180deg,#e2bb5c,#c8942f);color:#0b0e11;font:800 8px Inter,sans-serif;letter-spacing:.06em;cursor:pointer}.tpb-exec-place:hover{filter:brightness(1.07)}.tpb-exec-place:disabled{opacity:.35;cursor:not-allowed;filter:none}

/* Bottom terminal grows over the chart only on demand. */
.tyson-pro-backtester .bt11-bottom{left:0!important;right:0!important;bottom:0!important;height:35px!important}
.tyson-pro-backtester.tpb-terminal-expanded .bt11-bottom{height:min(32vh,285px)!important}
.tyson-pro-backtester.tpb-terminal-expanded .bt11-chart-card{bottom:min(32vh,285px)!important}
.tyson-pro-backtester.tpb-terminal-expanded .bt11-right{bottom:calc(min(32vh,285px) + 22px)!important}

/* More compact header; chart toolbar remains the real command surface. */
.tpb-brandbar{height:42px!important}.tpb-brand-right{gap:5px!important}.tpb-button{height:27px!important;padding:0 9px!important}

@media(max-width:800px){
  .tyson-pro-backtester .bt11-grid{right:0!important;top:42px!important;bottom:54px!important}
  .tpb-utility-rail{display:none!important}
  .tyson-pro-backtester .bt11-right{right:0!important;width:min(310px,92vw)!important}
  .tpb-chart-exec-hud{top:54px;right:8px;width:184px}
  .tpb-exec-hud-grid{grid-template-columns:1fr 1fr}
}

/* ============================================================
   BUILD 11.5 — TYSON PRO TERMINAL V1
   Locked chart-first workstation based on approved mockup.
   ============================================================ */
.tyson-pro-backtester{--tp-gold:#d8a83d;--tp-gold2:#f2c257;--tp-bg:#080c10;--tp-panel:#0d1218;--tp-line:#27313a;--tp-muted:#7e8995;--tp-green:#24b68b;--tp-red:#e55761}
.tyson-pro-backtester .bt11-commandbar,.tyson-pro-backtester .tyson-terminal-rail{display:none!important}
.tyson-pro-backtester .tpb-brandbar{height:44px!important;left:0!important;right:0!important;top:0!important;background:linear-gradient(180deg,#0c1117,#090d12)!important;border-bottom:1px solid #2c333a!important;box-shadow:0 6px 18px rgba(0,0,0,.22);z-index:130!important}
.tyson-pro-backtester .tpb-brand-left{min-width:0}.tyson-pro-backtester .tpb-mark{width:24px!important;height:24px!important;object-fit:contain}.tyson-pro-backtester .tpb-brand-left b{font-size:9px!important;letter-spacing:.18em!important}.tyson-pro-backtester .tpb-brand-left span{font-size:5.5px!important;letter-spacing:.18em!important;color:#d3a84c!important}.tyson-pro-backtester .tpb-session-chip{min-width:0}.tyson-pro-backtester .tpb-session-chip b{font-size:9px!important;letter-spacing:.03em!important;color:#f1f4f7!important}.tyson-pro-backtester .tpb-session-chip span{font-size:6px!important;color:#768391!important;letter-spacing:.03em!important}
.tyson-pro-backtester .tpb-button{height:28px!important;border-radius:4px!important;border-color:#35404a!important;background:#111821!important;color:#d8dee5!important;font-size:7px!important}.tyson-pro-backtester .tpb-button:hover{border-color:#705b2b!important;color:#f2c257!important}.tyson-pro-backtester .tpb-live-state b{font-size:6.5px!important}
.tyson-pro-backtester .bt11-grid{position:absolute!important;left:0!important;right:0!important;top:44px!important;bottom:21px!important;display:block!important;min-height:0!important;background:#070b0f!important}
.tyson-pro-backtester .bt11-center{position:absolute!important;inset:0!important;display:block!important;padding:0!important;overflow:hidden!important;background:#070b0f!important}
.tyson-pro-backtester .bt11-chart-card{position:absolute!important;left:0!important;right:42px!important;top:0!important;bottom:35px!important;margin:0!important;border:0!important;border-radius:0!important;background:#0a0f14!important;overflow:hidden!important;transition:right .18s ease,bottom .18s ease!important}
.tyson-pro-backtester .bt-chart-shell,.tyson-pro-backtester .bt11-chart-shell,.tyson-pro-backtester .bt-chart-wrap,.tyson-pro-backtester #btChartContainer{height:100%!important;min-height:0!important;border:0!important;border-radius:0!important;background:#0a0f14!important}
.tyson-pro-backtester .tpb-utility-rail{right:0!important;top:0!important;bottom:35px!important;width:42px!important;border-radius:0!important;border-top:0!important;border-right:0!important;border-bottom:0!important;background:#0b1016!important;border-left:1px solid #2c343c!important;padding:7px 4px!important;gap:5px!important;z-index:126!important}
.tyson-pro-backtester .tpb-utility-rail button{width:33px!important;height:45px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;border-radius:4px!important;color:#8c98a4!important}.tyson-pro-backtester .tpb-utility-rail button b{font:600 14px Inter,sans-serif!important}.tyson-pro-backtester .tpb-utility-rail button span{position:static!important;display:block!important;padding:0!important;background:none!important;border:0!important;color:inherit!important;font:600 5.5px Inter,sans-serif!important;letter-spacing:.02em!important}.tyson-pro-backtester .tpb-utility-rail button:hover,.tyson-pro-backtester .tpb-utility-rail button.active{background:#161d25!important;color:#e4b951!important;box-shadow:inset 2px 0 #d6a842!important}
.tyson-pro-backtester .bt11-right{position:absolute!important;z-index:121!important;right:42px!important;top:0!important;bottom:35px!important;width:310px!important;padding:10px!important;border:0!important;border-left:1px solid #313841!important;border-radius:0!important;background:#0c1117!important;transform:translateX(calc(100% + 42px))!important;transition:transform .18s ease!important;box-shadow:-18px 0 42px rgba(0,0,0,.28)!important}
.tyson-pro-backtester.tpb-trade-open .bt11-right{transform:translateX(0)!important}.tyson-pro-backtester.tpb-trade-open .bt11-chart-card{right:352px!important}
.tyson-pro-backtester .bt11-ticket{border:0!important;background:transparent!important;padding:0!important}.tyson-pro-backtester .bt11-panel-label{color:#e2ad42!important}.tyson-pro-backtester .bt11-market-badge{border-color:#185f4d!important;color:#35cc9b!important;background:#0c2b22!important}
.tyson-pro-backtester .tpb-chart-trade-actions{margin-top:12px!important}.tyson-pro-backtester .tpb-chart-trade-actions button{height:38px!important}.tyson-pro-backtester .bt11-side-toggle button.active{background:#12382e!important;color:#35ca9a!important}.tyson-pro-backtester .bt12-order-types button.active{background:#d8a83d!important;color:#090d11!important;border-color:#d8a83d!important}.tyson-pro-backtester .bt11-place-btn{background:linear-gradient(180deg,#e4b94f,#c5912e)!important;color:#090d11!important;border-color:#e4b94f!important}
.tyson-pro-backtester .tpb-context-drawer{position:absolute;z-index:122;right:42px;top:0;bottom:35px;width:310px;background:#0c1117;border-left:1px solid #313841;box-shadow:-18px 0 42px rgba(0,0,0,.28);transform:translateX(calc(100% + 42px));transition:transform .18s ease;display:flex;flex-direction:column}.tyson-pro-backtester .tpb-context-drawer.open{transform:translateX(0)}.tyson-pro-backtester.tpb-context-open .bt11-chart-card{right:352px!important}.tpb-context-head{height:52px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #252e36}.tpb-context-head>div{display:flex;flex-direction:column;gap:2px}.tpb-context-head span{font:700 5.5px Inter,sans-serif;color:#d1a747;letter-spacing:.16em}.tpb-context-head b{font:700 10px Inter,sans-serif;color:#e6ebef}.tpb-context-head button{width:27px;height:27px;border:1px solid #303942;border-radius:4px;background:#11171e;color:#8f99a4;font-size:18px;cursor:pointer}.tpb-context-body{padding:11px;overflow:auto;font:500 8px/1.5 Inter,sans-serif;color:#a3adb7}.tpb-context-card{padding:10px;border:1px solid #26313a;border-radius:6px;background:#10161d;margin-bottom:8px}.tpb-context-card strong{display:block;color:#e3e8ed;font-size:8.5px;margin-bottom:4px}.tpb-context-card span{color:#7f8a95;font-size:7px}.tpb-context-action{width:100%;height:32px;border:1px solid #34404a;border-radius:4px;background:#141b22;color:#d5dce2;font:700 7px Inter,sans-serif;cursor:pointer;margin-top:7px}.tpb-context-action.gold{border-color:#856823;background:#cfa13a;color:#0a0d10}
.tyson-pro-backtester .bt11-bottom{left:0!important;right:42px!important;height:35px!important;bottom:0!important;background:#090d12!important;border-top:1px solid #2c333b!important}.tyson-pro-backtester .bt11-bottom-tabs{min-width:520px!important}.tyson-pro-backtester .tyson-terminal-account-strip{right:0!important;max-width:58%!important}.tyson-pro-backtester.tpb-terminal-expanded .bt11-bottom{height:min(31vh,270px)!important}.tyson-pro-backtester.tpb-terminal-expanded .bt11-chart-card{bottom:min(31vh,270px)!important}.tyson-pro-backtester.tpb-terminal-expanded .bt11-right,.tyson-pro-backtester.tpb-terminal-expanded .tpb-context-drawer{bottom:min(31vh,270px)!important}.tyson-pro-backtester.tpb-terminal-expanded .tpb-utility-rail{bottom:min(31vh,270px)!important}
.tyson-pro-backtester .tpb-statusbar{height:21px!important;background:#06090c!important;border-top:1px solid #20262d!important;color:#697580!important}.tyson-pro-backtester .tpb-statusbar i.ok{background:#22bd84!important}
.tyson-pro-backtester .tpb-chart-exec-hud{top:54px!important;right:58px!important;width:220px!important;border-color:#39434d!important;background:rgba(12,17,23,.96)!important}.tyson-pro-backtester.tpb-trade-open .tpb-chart-exec-hud,.tyson-pro-backtester.tpb-context-open .tpb-chart-exec-hud{right:365px!important}
.tyson-pro-backtester .tpb-plan-toast{top:56px!important}
@media(max-width:900px){.tyson-pro-backtester .tpb-brand-left .tpb-divider,.tyson-pro-backtester .tpb-session-chip span{display:none!important}.tyson-pro-backtester .tpb-button{padding:0 7px!important}.tyson-pro-backtester .tpb-utility-rail{width:36px!important;padding-left:2px!important;padding-right:2px!important}.tyson-pro-backtester .tpb-utility-rail button{width:31px!important}.tyson-pro-backtester .bt11-chart-card,.tyson-pro-backtester .bt11-bottom{right:36px!important}.tyson-pro-backtester .bt11-right,.tyson-pro-backtester .tpb-context-drawer{right:36px!important;width:min(310px,calc(100vw - 42px))!important}.tyson-pro-backtester.tpb-trade-open .bt11-chart-card,.tyson-pro-backtester.tpb-context-open .bt11-chart-card{right:36px!important;filter:brightness(.6)}.tyson-pro-backtester .tyson-terminal-account-strip{display:none!important}.tyson-pro-backtester .bt11-bottom-tabs{min-width:100%!important;width:100%!important;overflow-x:auto!important}.tyson-pro-backtester .tpb-chart-exec-hud{right:45px!important}}

/* ============================================================
   BUILD 11.5.1 — DEPLOYMENT + FULL TERMINAL HOTFIX
   Force the Workspace shell completely out of replay mode.
   ============================================================ */
body.tyson-pro-session-open #wsSidebar,
body.tyson-pro-session-open .ws-topbar{display:none!important}
body.tyson-pro-session-open .ws-main{margin-left:0!important;width:100%!important;min-height:100vh!important}
body.tyson-pro-session-open .ws-content,
body.tyson-pro-session-open .ws-subpage-content{padding:0!important;margin:0!important;width:100%!important;max-width:none!important;min-height:100vh!important}
body.tyson-pro-session-open #btReplayScreen.bt11-workspace.tyson-pro-backtester{
  position:fixed!important;inset:0!important;left:0!important;top:0!important;right:0!important;bottom:0!important;
  width:100vw!important;height:100vh!important;max-width:none!important;z-index:99999!important
}
/* Never reserve a dead volume pane for feeds (Gold/FX) that have no volume. */
.tyson-pro-backtester .tyson-kline-host{overflow:hidden!important}


/* ============================================================
   BUILD 11.6 — EXECUTION PRO
   ============================================================ */
.bt16-pending-editor{grid-template-columns:repeat(3,1fr);gap:6px;padding:8px;margin-top:7px;border:1px solid #2c3640;background:#0b1117;border-radius:5px}.bt16-pending-editor label,.bt16-trail-field{font:600 6px Inter,sans-serif;color:#76828d;text-transform:uppercase;letter-spacing:.07em}.bt16-pending-editor input,.bt16-trail-field input{width:100%;box-sizing:border-box;margin-top:4px;height:29px;padding:0 7px;border:1px solid #2b3540;border-radius:3px;background:#090e13;color:#e2e7eb;font:700 8px "JetBrains Mono",monospace}.bt16-pending-editor button{grid-column:1/-1}
.bt16-management-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:9px}.bt16-management-actions button{height:29px;border:1px solid #303b46;border-radius:3px;background:#111820;color:#cbd3da;font:700 7px Inter,sans-serif;cursor:pointer}.bt16-management-actions button:hover,.bt16-management-actions button.active{border-color:#8a6c2a;color:#f1c55e;background:#19170f}.bt16-management-actions button.danger:hover{border-color:#7c343b;color:#ff737d;background:#211014}.bt16-trail-field{display:block;margin-top:7px}
.bt16-tp-ladder{margin-top:9px;padding-top:8px;border-top:1px solid #202a33}.bt16-section-title{margin-bottom:6px;color:#d6aa45;font:800 6px Inter,sans-serif;letter-spacing:.12em}.bt16-tp-row{display:grid;grid-template-columns:24px 1fr 48px 10px;gap:4px;align-items:center;margin-bottom:4px}.bt16-tp-row span,.bt16-tp-row em{font:700 6.5px Inter,sans-serif;color:#7e8994;font-style:normal}.bt16-tp-row input{height:27px;min-width:0;padding:0 6px;border:1px solid #2a343e;border-radius:3px;background:#090e13;color:#e2e7eb;font:700 7.5px "JetBrains Mono",monospace}.bt16-tp-ladder>.btn{width:100%;margin-top:4px}
.bt16-execution-log{height:100%;overflow:auto;padding:8px 10px}.bt16-event-row{display:grid;grid-template-columns:70px minmax(130px,1fr) 1fr;gap:10px;align-items:center;padding:6px 8px;border-bottom:1px solid #1f272f;font:600 7px "JetBrains Mono",monospace}.bt16-event-row span{color:#65717c}.bt16-event-row b{color:#d7dee4;font:700 7px Inter,sans-serif;letter-spacing:.05em}.bt16-event-row em{color:#9aa6b0;font-style:normal;text-align:right}.bt16-terminal-head,.bt16-terminal-row{display:grid;grid-template-columns:1.1fr .8fr .8fr 1fr 1fr 1fr .8fr;gap:8px;align-items:center;padding:6px 10px}.bt16-terminal-head{border-bottom:1px solid #242d35;color:#65717c;font:700 6px Inter,sans-serif;text-transform:uppercase;letter-spacing:.07em}.bt16-terminal-row{color:#cbd3da;font:600 7.5px "JetBrains Mono",monospace}.bt16-terminal-row b{color:#eef2f5}.bt16-terminal-row .tpb-positive{color:#39c794}.bt16-terminal-row .tpb-negative{color:#ef6973}
@media(max-width:900px){.bt16-pending-editor{grid-template-columns:1fr 1fr}.bt16-pending-editor button{grid-column:1/-1}.bt16-event-row{grid-template-columns:55px 1fr}.bt16-event-row em{grid-column:2;text-align:left}.bt16-management-actions{grid-template-columns:1fr 1fr}}


/* ==================================================================
   BUILD 11.6.1 — CHART-NATIVE EXECUTION UX
   Chart remains dominant. The full ticket is advanced/on-demand only.
   ================================================================== */
.tyson-pro-backtester.tpb-trade-open .bt11-chart-card{right:42px!important}
.tyson-pro-backtester .bt11-right{
  top:46px!important;bottom:auto!important;right:54px!important;width:286px!important;
  max-height:min(72vh,650px)!important;border:1px solid #303944!important;border-radius:8px!important;
  background:rgba(10,15,21,.97)!important;box-shadow:0 18px 55px rgba(0,0,0,.5)!important;
}
.tyson-pro-backtester.tpb-terminal-expanded .bt11-right{bottom:auto!important}

.tpb-tv-tradebar{
  position:absolute;z-index:148;left:72px;top:54px;display:flex;align-items:center;gap:6px;
  min-height:40px;padding:4px 6px;background:rgba(8,12,17,.94);border:1px solid #303944;
  border-radius:7px;box-shadow:0 10px 30px rgba(0,0,0,.32);backdrop-filter:blur(12px);
  max-width:calc(100% - 150px);white-space:nowrap;
}
.tpb-tv-side{display:flex;gap:3px}.tpb-tv-quote{height:32px;min-width:78px;border:1px solid #313a45;background:#111821;color:#dce5ee;border-radius:5px;padding:2px 8px;display:flex;align-items:center;justify-content:space-between;gap:7px;cursor:pointer}.tpb-tv-quote small{font-size:9px;font-weight:800;letter-spacing:.08em}.tpb-tv-quote strong{font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.tpb-tv-quote.sell small{color:#f35b63}.tpb-tv-quote.buy small{color:#2ecf9c}.tpb-tv-quote.sell:hover{border-color:#a83b43;background:#261519}.tpb-tv-quote.buy:hover{border-color:#1e8d6d;background:#10231e}
.tpb-tv-divider{width:1px;height:26px;background:#303944;margin:0 2px}.tpb-tv-order-types{display:flex;border:1px solid #303944;border-radius:5px;overflow:hidden}.tpb-tv-order-types button{height:30px;padding:0 9px;border:0;border-right:1px solid #303944;background:#0d131a;color:#9faebb;font-size:10px;cursor:pointer}.tpb-tv-order-types button:last-child{border-right:0}.tpb-tv-order-types button.active{background:#263549;color:#fff}.tpb-tv-risk{height:30px;display:flex;align-items:center;gap:4px;padding:0 7px;border:1px solid #303944;border-radius:5px;color:#95a5b4;font-size:9px;text-transform:uppercase;letter-spacing:.06em}.tpb-tv-risk input{width:46px;border:0;background:transparent;color:#fff;text-align:right;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;outline:none}.tpb-tv-risk span{color:#6e7d8b}.tpb-tv-plan{height:30px;padding:0 9px;border:1px solid #303944;border-radius:5px;background:#101720;color:#dce5ee;font-size:10px;font-weight:700;cursor:pointer}.tpb-tv-plan.long:hover{border-color:#238b6e;color:#39d6a3}.tpb-tv-plan.short:hover{border-color:#a4424a;color:#ff737b}.tpb-tv-more{width:31px;height:30px;border:1px solid #303944;border-radius:5px;background:#101720;color:#dce5ee;font-size:18px;line-height:1;cursor:pointer}

/* TradingView-style compact order card shown only while a position tool exists. */
.tyson-pro-backtester .tpb-chart-exec-hud{top:104px!important;right:58px!important;width:230px!important;padding:8px!important;border-radius:7px!important;background:rgba(9,14,19,.95)!important}
.tyson-pro-backtester.tpb-trade-open .tpb-chart-exec-hud{right:58px!important}
.tpb-exec-hud-grid{grid-template-columns:repeat(3,1fr)!important;gap:5px!important}.tpb-exec-hud-grid>div{padding:5px!important}.tpb-exec-hud-grid span{font-size:8px!important}.tpb-exec-hud-grid b{font-size:10px!important}.tpb-exec-place{height:31px!important;margin-top:7px!important}

/* The old ticket no longer owns the workspace. It is an advanced popover. */
.tyson-pro-backtester .bt11-right .tpb-chart-trade-actions{display:none!important}
.tyson-pro-backtester .bt11-right .tpb-order-hint{font-size:10px!important}

@media(max-width:1100px){
  .tpb-tv-tradebar{left:62px;max-width:calc(100% - 112px);overflow-x:auto;scrollbar-width:none}.tpb-tv-tradebar::-webkit-scrollbar{display:none}.tpb-tv-order-types,.tpb-tv-risk{flex-shrink:0}.tpb-tv-plan{flex-shrink:0}
}
@media(max-width:760px){
  .tpb-tv-tradebar{left:54px;right:42px;max-width:none;top:51px}.tpb-tv-quote{min-width:70px}.tpb-tv-plan{padding:0 7px}
  .tyson-pro-backtester .tpb-chart-exec-hud{top:97px!important;right:45px!important;width:200px!important}
}


/* ============================================================
   BUILD 11.7 — UNIFIED TERMINAL UX / RESPONSIVE WORKSPACE
   ============================================================ */
.tpb-live-position-hud{display:none;position:absolute;z-index:46;left:50%;top:54px;transform:translateX(-50%);min-width:min(720px,calc(100% - 140px));max-width:880px;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px;border:1px solid rgba(34,171,148,.42);border-radius:6px;background:rgba(12,17,22,.94);box-shadow:0 8px 28px rgba(0,0,0,.28);backdrop-filter:blur(10px);font:600 10px Inter,system-ui,sans-serif;color:#bcc6cf}
.tpb-live-position-hud.show{display:flex}.tpb-live-position-hud.short{border-color:rgba(242,54,69,.42)}
.tpb-live-pos-main,.tpb-live-pos-actions{display:flex;align-items:center;gap:9px;white-space:nowrap}.tpb-live-pos-main>span{padding-right:8px;border-right:1px solid #252d35}.tpb-live-pos-main>span:last-child{border-right:0}
.tpb-live-pos-side{padding:4px 7px!important;border:0!important;border-radius:4px;background:rgba(34,171,148,.15);color:#36c2a8;font-weight:800}.tpb-live-position-hud.short .tpb-live-pos-side{background:rgba(242,54,69,.14);color:#ff6673}
.tpb-live-pos-actions button,.tpb117-row-actions button{height:25px;padding:0 8px;border:1px solid #303943;border-radius:4px;background:#161d24;color:#c8d0d8;font:700 9px Inter,sans-serif;cursor:pointer}.tpb-live-pos-actions button:hover,.tpb117-row-actions button:hover{background:#222b34;color:#fff}.tpb-live-pos-actions .danger,.tpb117-row-actions .danger{border-color:#6b2b32;color:#ff7a84}
.tpb117-terminal-head,.tpb117-terminal-row{display:grid;grid-template-columns:90px 70px 95px 100px 100px 100px 110px 70px minmax(150px,1fr);gap:8px;align-items:center;min-width:920px;padding:7px 10px}.tpb117-terminal-head{color:#68737e;font:700 8px Inter,sans-serif;text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid #222a32}.tpb117-terminal-row{color:#aeb8c1;font:600 9px "JetBrains Mono",monospace;border-bottom:1px solid #1d252c}.tpb117-terminal-head.order,.tpb117-terminal-row.order{grid-template-columns:90px 70px 70px 100px 100px 100px 75px minmax(130px,1fr);min-width:760px}.tpb117-row-actions{display:flex;gap:5px;justify-content:flex-end}
.tyson-terminal-table{overflow-x:auto;overscroll-behavior:contain}.tyson-terminal-table::-webkit-scrollbar{height:5px}.tyson-terminal-table::-webkit-scrollbar-thumb{background:#303943;border-radius:8px}
/* 11.7: old website/panel scaffolding may remain in DOM as backend controls, but not in the trading workspace. */
.tyson-pro-session-open .bt11-left,.tyson-pro-session-open .bt11-commandbar,.tyson-pro-session-open .tyson-terminal-rail{display:none!important}
.tyson-pro-session-open .bt11-grid{grid-template-columns:minmax(0,1fr)!important;padding:0 46px 0 0!important;gap:0!important;height:calc(100vh - 43px)!important}
.tyson-pro-session-open .bt11-center{min-width:0!important;height:100%!important;display:grid!important;grid-template-rows:minmax(0,1fr) auto!important}
.tyson-pro-session-open .bt11-chart-card{height:100%!important;min-height:0!important;border:0!important;border-radius:0!important;background:#0b0f13!important}
.tyson-pro-session-open .bt11-chart-shell,.tyson-pro-session-open .bt-chart-wrap,.tyson-pro-session-open .tyson-kline-host,.tyson-pro-session-open .tyson-kline-host .klinecharts-pro{height:100%!important;min-height:0!important}
.tyson-pro-session-open .bt11-right{position:fixed!important;z-index:72!important;right:46px!important;top:43px!important;bottom:0!important;width:min(340px,calc(100vw - 60px))!important;display:block!important;transform:translateX(calc(100% + 56px));transition:transform .18s ease;background:#0f141a!important;border-left:1px solid #26303a!important;overflow-y:auto!important;box-shadow:-18px 0 45px rgba(0,0,0,.35)}
.tyson-pro-session-open.tpb-trade-open .bt11-right{transform:translateX(0)}
.tyson-pro-session-open .bt11-bottom{margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;max-height:38px!important;overflow:hidden!important;transition:max-height .2s ease;background:#0d1217!important}.tyson-pro-session-open.tpb-terminal-expanded .bt11-bottom{max-height:min(38vh,380px)!important;overflow:auto!important}
.tyson-pro-session-open .bt11-bottom-pane{min-height:120px}.tyson-pro-session-open .tpb-utility-rail{top:43px!important;bottom:0!important}
.tyson-pro-session-open .tpb-brandbar{height:43px!important;min-height:43px!important}.tyson-pro-session-open .tpb-brandbar .tpb-brand-left>div:first-of-type{font-size:0}.tyson-pro-session-open .tpb-brandbar .tpb-brand-left>div:first-of-type span{font-size:9px!important;letter-spacing:.12em}.tyson-pro-session-open .tpb-mark{width:25px!important;height:25px!important}
/* do not place a Tyson watermark over price action */
.tyson-kline-host [class*="watermark"]{display:none!important}
@media(max-width:1100px){.tpb-live-position-hud{left:12px;right:58px;transform:none;min-width:0;max-width:none}.tpb-live-pos-main{overflow-x:auto}.tpb-live-pos-actions{flex-shrink:0}.tyson-pro-session-open .tpb-brand-left .tpb-divider,.tyson-pro-session-open #tpbSessionMeta{display:none!important}}
@media(max-width:760px){
 .tyson-pro-session-open .bt11-grid{height:calc(100dvh - 42px)!important;padding:0!important}.tyson-pro-session-open .tpb-brandbar{height:42px!important;padding:0 7px!important}.tyson-pro-session-open .tpb-brand-right .tpb-button:not(#tpbTradeBtn){display:none!important}.tyson-pro-session-open .tpb-session-chip span{display:none!important}
 .tyson-pro-session-open .tpb-utility-rail{position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;height:46px!important;width:auto!important;display:grid!important;grid-template-columns:repeat(7,1fr)!important;border-left:0!important;border-top:1px solid #26303a!important;z-index:92!important}.tpb-utility-rail button{height:46px!important;min-width:0!important}.tpb-utility-rail button span{display:none!important}
 .tyson-pro-session-open .bt11-center{padding-bottom:46px!important}.tyson-pro-session-open .bt11-right{right:0!important;top:42px!important;bottom:46px!important;width:min(94vw,360px)!important}.tyson-pro-session-open .tpb-context-drawer{right:0!important;bottom:46px!important;top:42px!important;width:min(94vw,360px)!important}
 .tpb-live-position-hud{top:46px;left:6px;right:6px;display:none!important;flex-direction:column;align-items:stretch;gap:5px;padding:5px}.tpb-live-position-hud.show{display:flex!important}.tpb-live-pos-main{gap:6px;overflow-x:auto;padding-bottom:2px}.tpb-live-pos-actions{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.tpb-live-pos-actions button{padding:0 4px}
 .tpb-tv-tradebar{max-width:calc(100% - 12px)!important;overflow-x:auto!important;left:6px!important;right:6px!important}.tpb-tv-risk,.tpb-tv-order-types{flex-shrink:0}.tpb-tv-plan{white-space:nowrap}
 .tyson-pro-session-open.tpb-terminal-expanded .bt11-bottom{position:fixed!important;left:0!important;right:0!important;bottom:46px!important;z-index:70!important;max-height:42dvh!important}.tyson-terminal-account-strip{overflow-x:auto!important;white-space:nowrap!important}.bt11-bottom-tabs{overflow-x:auto!important;flex-wrap:nowrap!important}
}
