/* === Page container === */
#bt-page{display:flex;gap:0;min-height:650px;font-family:inherit;font-size:14px;color:#333}

/* === Left panel === */
#bt-left-panel{width:245px;min-width:245px;padding:6px 14px;border-right:1px solid #e0e0e0;background:#fafafa;display:flex;flex-direction:column;gap:2px}
#bt-left-panel label{font-weight:600;font-size:13px;color:#555;margin-bottom:2px;display:block}
.bt-select-wrap{position:relative}
.bt-select-btn{width:100%;padding:8px 30px 8px 10px;border:1px solid #d1d5db;border-radius:6px;background:#fff;font-size:13px;color:#374151;cursor:pointer;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;appearance:none;outline:none;transition:border-color .2s}
.bt-select-btn:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.bt-select-btn::after{content:"\25BC";position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:10px;color:#9ca3af;pointer-events:none}
.bt-select-wrap .bt-dropdown{display:none;position:absolute;top:100%;left:0;right:0;z-index:1000;background:#fff;border:1px solid #d1d5db;border-radius:6px;margin-top:2px;box-shadow:0 4px 16px rgba(0,0,0,.1);max-height:280px;overflow:hidden;flex-direction:column}
.bt-select-wrap.open .bt-dropdown{display:flex}
.bt-dropdown-search{padding:8px 10px;border:none;border-bottom:1px solid #e5e7eb;font-size:13px;outline:none;box-sizing:border-box;width:100%}
.bt-dropdown-list{overflow-y:auto;max-height:230px}
.bt-dropdown-item.bt-no-data{opacity:.55}
.bt-dropdown-item{padding:7px 10px;font-size:13px;color:#374151;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bt-dropdown-item:hover{background:#eff6ff}
.bt-dropdown-item.selected{background:#2563eb;color:#fff}
.bt-inputs-area{font-size:13px;color:inherit;font-weight:normal}
.bt-inputs-area table{width:100%;border-collapse:collapse;margin-bottom:1px !important}
.bt-inputs-area td{padding:0}
.bt-inputs-area td:first-child{color:inherit}
.bt-inputs-area td:last-child{text-align:right;font-weight:normal;color:inherit}
#bt-inputs-btn{padding:8px 20px;border:none;border-radius:6px;font-size:14px;font-family:inherit;font-weight:normal;cursor:pointer;transition:all .2s;color:#fff;background:var(--global-palette-btn-bg, #16a34a)}
#bt-inputs-btn:hover{background:var(--global-palette-btn-bg-hover, #15803d)}
#bt-run-btn{width:auto;display:inline-block;align-self:center;padding:9px 21px;border:none;border-radius:5px;font-size:14px;font-weight:normal;font-family:inherit;cursor:pointer;transition:all .2s;color:#fff;background:var(--global-palette-btn-bg, #16a34a)}
#bt-run-btn:hover{background:var(--global-palette-btn-bg-hover, #15803d)}
#bt-run-btn:disabled{background:#9ca3af;cursor:not-allowed}

/* === Center panel === */
#bt-center-panel{flex:1;min-width:400px;display:flex;flex-direction:column}

/* --- Tabs (matching forecast/backtest Elementor tabs) --- */
.bt-tabs-bar{display:flex;justify-content:center;gap:14px;margin:0;padding:0 0 15px;background:transparent}
.bt-tab-btn{padding:8px 9px;font-family:inherit;font-size:13px;font-weight:bold;color:#676767;cursor:pointer;border:1px solid #e5e7eb;background:#fff;border-radius:12px;transition:background .2s,color .2s,border-color .2s;white-space:nowrap}
.bt-tab-btn:hover{background:#f9fafb;border-color:#d1d5db;color:#676767}
.bt-tab-btn.active{background:#eceef1;border-color:#d1d5db;color:#676767}
.bt-tab-content{display:none;padding:0 16px 12px;overflow-y:auto;max-height:600px;min-height:120px}
.bt-tab-content.active{display:block}
#bt-tab-performance{padding:0;max-height:none;overflow:visible}
#bt-tab-trades{padding:0;max-height:none;overflow:visible;display:none}
#bt-tab-trades.active{display:flex;flex-direction:column}
.bt-tab-placeholder{text-align:center;color:#aaa;padding:40px 20px;margin-top:12px;font-size:13px}
.bt-tab-placeholder .ph-icon{font-size:32px;margin-bottom:8px;line-height:0}

/* === Loading overlay === */
.bt-loading{display:none;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.85);z-index:100;justify-content:center;align-items:center;font-size:16px;color:#555}
.bt-loading.active{display:flex}
.bt-loading .spinner{width:24px;height:24px;border:3px solid #e5e7eb;border-top-color:#2563eb;border-radius:50%;animation:btspin .8s linear infinite;margin-right:10px}
@keyframes btspin{to{transform:rotate(360deg)}}

/* === Right panel === */
#bt-right-panel{width:249px;min-width:249px;padding:2px 6px 8px;border-left:1px solid #e0e0e0;background:#fafafa;display:flex;flex-direction:column;gap:2px;overflow-y:auto}
.bt-empty{text-align:center;color:#999;padding:60px 20px;font-size:14px}
.bt-empty .icon{font-size:48px;margin-bottom:12px;line-height:0}
/* Summary chart containers */
.bt-sum-chart{width:100%;max-width:249px;margin:0 auto 3px;text-align:center}
#bt-sum-winrate{width:100%;max-width:249px;margin:0 auto;height:128px}
#bt-sum-pnl{width:100%;max-width:249px;margin:0 auto 3px;height:90px}
#bt-sum-cagr{width:100%;max-width:249px;margin:0 auto 3px;height:90px}
.bt-sum-grid{display:grid;grid-template-columns:50% 50%;grid-template-rows:auto auto;gap:2px;margin:0 auto 2px;max-width:249px}
.bt-sum-grid .gi:nth-child(1){grid-column:1;grid-row:1}
.bt-sum-grid .gi:nth-child(2){grid-column:1;grid-row:2}
.bt-sum-grid .gi:nth-child(3){grid-column:2;grid-row:1/span 2}
.gi{text-align:center;margin:0;padding:0}
.gi-inner{height:124px}
.bt-sum-grid .gi:nth-child(3) .gi-inner{height:272px}
.positive-value{border:2px solid #D3D3D3;border-radius:5px;padding:10px;box-sizing:border-box}
.negative-value{border:2px solid #dc3545;border-radius:5px;padding:10px;box-sizing:border-box}

/* === Trades tab: OHLC chart + splitter + table === */
#bt-trades-chart{width:100%;min-height:200px;position:relative;flex-shrink:0}
.bt-splitter{height:6px;background:#e5e7eb;cursor:row-resize;position:relative;z-index:10;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.bt-splitter:hover,.bt-splitter.active{background:#3498db}
.bt-splitter::after{content:'';width:30px;height:2px;background:#aaa;border-radius:1px}
.bt-splitter:hover::after,.bt-splitter.active::after{background:#fff}
#bt-trades-table-wrap{flex:1;overflow-y:auto;min-height:80px}
.bt-splitter-bottom{margin-bottom:200px}

/* Trades table - Predicted Data style */
.bt-trades-table{width:100%;border-collapse:collapse;font-size:12px}
.bt-trades-table th{background:#f3f4f6;font-weight:600;color:#555;padding:6px 10px;text-align:center;border-bottom:2px solid #e5e7eb;position:sticky;top:0;z-index:1;white-space:nowrap}
.bt-trades-table td{padding:5px 10px;border-bottom:1px solid #f0f0f0;text-align:center;white-space:nowrap}
.bt-trades-table tr:hover{background:#f9fafb}
.bt-trades-table tr.bt-trade-selected{background:#fffce5 !important}
.bt-trades-table tr{cursor:pointer}
.bt-trades-table .val-pos{color:#16a34a;font-weight:600}
.bt-trades-table .val-neg{color:#dc2626;font-weight:600}
.bt-trades-table .op-buy{color:#16a34a}
.bt-trades-table .op-sell{color:#dc2626}
.bt-trades-table .bt-dt-date,.bt-trades-table .bt-dt-time{display:block;text-align:right}

/* Allow the Max Run-up value label to render above the gauge SVG (pinned above the scale) */
#bt-sum-runup, #bt-sum-runup .highcharts-container, #bt-sum-runup svg{overflow:visible !important}

/* === Statistics tab === */
#bt-stats-wrap{padding:18px}
#bt-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:920px;margin:0 auto}
.bt-stat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px 14px 8px;box-shadow:0 1px 2px rgba(16,24,40,.05)}
.bt-stat-card-title{text-align:center;font-size:11px;font-weight:700;color:#555;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}
.bt-stat-chart{width:100%;height:200px}
.bt-stat-desc{font-size:11px;color:#6b7280;text-align:center;margin-top:6px;line-height:1.35}
@media(max-width:760px){#bt-stats-grid{grid-template-columns:1fr}}
/* --- Tablet / phone: panels stack (settings, charts, summary) --- */
@media(max-width:1100px){
#bt-page{flex-direction:column;min-height:0}
#bt-left-panel,#bt-right-panel{width:auto;min-width:0;border:none}
#bt-left-panel{order:1;padding:12px 14px;border-bottom:1px solid #e0e0e0}
#bt-center-panel{order:2;min-width:0}
#bt-right-panel{order:3;overflow:visible;border-top:1px solid #e0e0e0;padding:10px}
#bt-sum-wrap:not([style*="none"]){display:flex!important;flex-wrap:wrap;justify-content:center;gap:6px 16px}
#bt-sum-wrap>.bt-sum-chart,#bt-sum-wrap>.bt-sum-grid{width:249px;margin:0}
.bt-tabs-bar{justify-content:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:8px;padding:12px 10px;scrollbar-width:none}
.bt-tabs-bar::-webkit-scrollbar{display:none}
.bt-tab-btn{padding:9px 12px;flex-shrink:0}
/* small phones: the tabs wrap into two rows instead of a hidden horizontal scroll (opinion test 13, 3.4: Trade Settings not visible at 390 px) */
@media(max-width:600px){.bt-tabs-bar{flex-wrap:wrap;justify-content:center;overflow-x:visible;gap:6px;padding:10px 8px}.bt-tab-btn{padding:7px 10px;font-size:12.5px}}
.bt-tab-content{padding:0 10px 12px;max-height:none;overflow-x:auto}
#bt-area-chart{height:460px!important}
#bt-price-chart{height:420px!important}
#bt-bubble-chart{height:320px!important}
#bt-trades-chart{height:460px!important}
#bt-trades-table-wrap{overflow-x:auto}
}
@media(max-width:600px){
/* settings fold away so the chart starts near the top (opinion test 11, bug 25) */
#bt-left-panel.bt-folded>*:not(#bt-fold-toggle){display:none!important}
#bt-fold-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;font:inherit;font-size:14px;font-weight:700;color:#334155;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:10px 12px;margin:0 0 6px;cursor:pointer}
#bt-area-chart{height:360px!important}
#bt-price-chart{height:340px!important}
#bt-bubble-chart{height:280px!important}
#bt-trades-chart{height:380px!important}
#bt-stats-wrap{padding:10px}
.bt-select-btn,.bt-dropdown-search,.bt-dropdown-item{font-size:16px;padding-top:10px;padding-bottom:10px}
.bt-kv-table td:first-child{width:50%}
}

/* === Details & Properties tables (key-value, Predicted Data style) === */
.bt-kv-table{width:100%;max-width:600px;margin:0 auto;border-collapse:collapse;font-size:12px}
.bt-kv-table th{background:#eceff2;font-weight:600;color:#555;padding:6px 10px;text-align:left;border-bottom:2px solid #dbdee3;position:sticky;top:0;z-index:1}
.bt-kv-table td{padding:5px 10px;border-bottom:1px solid #f0f0f0}
.bt-kv-table td:first-child{font-weight:600;color:#555;width:45%}
.bt-kv-table td:last-child{color:#333}
.bt-kv-table tr:hover{background:#f9fafb}
.bt-kv-table tr.bt-kv-group td{background:transparent;font-weight:700;color:#1f2937;text-transform:uppercase;letter-spacing:.05em;font-size:11px;padding:16px 10px 6px;border-bottom:1px solid #e5e7eb}
.bt-kv-table tr.bt-kv-group:hover td{background:transparent}

/* === Symbol search input === */
.bt-symbol-search{width:100%;padding:8px 10px 8px 32px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;color:#374151;outline:none;box-sizing:border-box;transition:border-color .2s;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 10px center}
.bt-symbol-search:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.bt-symbol-results{display:none;position:absolute;top:100%;left:0;right:0;z-index:1000;background:#fff;border:1px solid #d1d5db;border-radius:6px;margin-top:2px;box-shadow:0 4px 16px rgba(0,0,0,.1);max-height:230px;overflow-y:auto}
.bt-symbol-results.open{display:block}
.bt-symbol-item{padding:7px 10px;font-size:13px;color:#374151;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bt-symbol-item:hover{background:#eff6ff}

/* === Portfolio: selected-symbol chips === */
.bt-symbol-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.bt-symbol-chip{display:inline-flex;align-items:center;gap:5px;background:#eef2ff;border:1px solid #c7d2fe;color:#3730a3;border-radius:14px;padding:3px 8px 3px 10px;font-size:12px;font-weight:600;max-width:100%}
.bt-symbol-chip .chip-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.bt-symbol-chip .chip-x{cursor:pointer;font-size:14px;line-height:1;color:#6366f1;font-weight:700}
.bt-symbol-chip .chip-x:hover{color:#dc2626}

/* === Portfolio: per-symbol breakdown table === */
.bt-persym-table{width:100%;max-width:760px;margin:0 auto;border-collapse:collapse;font-size:12px}
.bt-persym-table th{background:#f3f4f6;font-weight:600;color:#555;padding:7px 12px;text-align:center;border-bottom:2px solid #e5e7eb}
.bt-persym-table th:first-child{text-align:left}
.bt-persym-table td{padding:6px 12px;border-bottom:1px solid #f0f0f0;text-align:center}
.bt-persym-table td:first-child{text-align:left;font-weight:600;color:#374151}
.bt-persym-table tr:hover{background:#f9fafb}
.bt-persym-table .val-pos{color:#16a34a;font-weight:600}
.bt-persym-table .val-neg{color:#dc2626;font-weight:600}

/* === Settings (gear) button === */
#bt-settings-btn{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;padding:0;border:none;border-radius:6px;cursor:pointer;color:#fff !important;font-size:16px;transition:all .2s;margin-top:4px;margin-bottom:8px}
#bt-settings-btn svg{fill:#fff}

/* === Modal common styles (matches snippet 7 styling) === */
.bt-modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:9999;align-items:center;justify-content:center}
.bt-modal.active{display:flex}
.bt-modal .modal-content{background:#fff;padding:20px;max-width:400px;width:70%;position:relative;z-index:10001;pointer-events:auto;border-radius:4px}
.bt-modal .close-btn{position:absolute;top:10px;right:10px;background:transparent;border:none;font-size:24px;color:#999;cursor:pointer;z-index:10002}
.bt-modal .modal-title{font-size:16px;font-weight:bold;margin-bottom:16px;color:#333}
.bt-modal-footer{display:flex;justify-content:space-between;margin-top:20px;border-top:1px solid #eee;padding-top:15px}
.bt-modal-footer .left-buttons,.bt-modal-footer .right-buttons{display:flex;gap:10px}
.bt-modal-footer button{padding:7px 18px;border:none;border-radius:5px;font-size:13px;font-family:inherit;font-weight:normal;cursor:pointer;transition:all .2s;color:#fff}
.bt-modal-footer .btn-default{background:var(--global-palette-btn-bg, #16a34a)}
.bt-modal-footer .btn-default:hover{background:var(--global-palette-btn-bg-hover, #15803d)}
.bt-modal-footer .btn-ok{background:var(--global-palette-btn-bg, #16a34a)}
.bt-modal-footer .btn-ok:hover{background:var(--global-palette-btn-bg-hover, #15803d)}
.bt-modal-footer .btn-cancel{background:var(--global-palette-btn-bg, #16a34a)}
.bt-modal-footer .btn-cancel:hover{background:var(--global-palette-btn-bg-hover, #15803d)}

/* === Info tooltip (circle ? icon) === */
.bt-info-tip{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;background:#6b7280;color:#fff;font-size:10px;font-weight:700;cursor:help;margin-left:5px;position:relative;vertical-align:middle;line-height:1}
.bt-info-tip:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#333;color:#fff;font-size:11px;font-weight:400;padding:6px 10px;border-radius:4px;white-space:normal;width:220px;z-index:10003;line-height:1.4;text-align:left;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.bt-info-tip:hover::before{content:'';position:absolute;bottom:calc(100% + 2px);left:50%;transform:translateX(-50%);border:5px solid transparent;border-top-color:#333;z-index:10003}

/* === Modal form fields === */
.bt-modal-field{margin-bottom:12px}
.bt-modal-field label{display:block;font-weight:bold;font-size:13px;color:#333;margin-bottom:4px}
.bt-modal-field input{width:30%;padding:6px 10px;border:1px solid #d1d5db;border-radius:4px;font-size:13px;color:#333;box-sizing:border-box;outline:none}
.bt-modal-field input[type="text"]{width:100%}
#btPeriodFrom,#btPeriodTo{width:246px}
.flatpickr-calendar{transform:scale(0.8);transform-origin:top left}
.bt-modal-field input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}

/* === Modal lock overlay (non-Premium) === */
.bt-modal-lock-wrap{position:relative}
.bt-modal-lock-wrap .bt-modal-lock-fields{opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none}
.modal-content.bt-locked .modal-title{opacity:.45}
.bt-modal-lock-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;z-index:2;background:rgba(255,255,255,.72);border-radius:6px;cursor:pointer;padding:16px}
.bt-modal-lock-overlay .lock-icon{font-size:28px;margin-bottom:6px;opacity:.7}
.bt-modal-lock-overlay .lock-label{font-size:14px;font-weight:700;color:#333;margin-bottom:4px}
.bt-modal-lock-overlay .lock-sub{font-size:13px;color:#333;margin-bottom:12px;max-width:260px;line-height:1.45;font-weight:700}
.bt-modal-lock-overlay .lock-btn{display:inline-block;padding:8px 22px;background:#2563eb;color:#fff;font-weight:700;font-size:13px;border-radius:6px;border:none;cursor:pointer;transition:background .2s}
.bt-modal-lock-overlay .lock-btn:hover{background:#1d4ed8}
.bt-modal-footer-locked .btn-ok,.bt-modal-footer-locked .btn-default,.bt-modal-footer-locked .btn-cancel{display:none}

/* === Period modal presets === */
.bt-preset-btn{display:block;width:100%;padding:6px 10px;margin-bottom:5px;font-size:12px;text-align:left;background:#F5F5F5;border:1px solid #dee2e6;border-radius:6px;color:#333;cursor:pointer;transition:background .2s,color .2s}
.bt-preset-btn:hover{background:#E8E8E8;color:#333}
.bt-preset-btn.active{background:#E0E0E0;color:#333}

/* === Period display button === */
#bt-period-btn{padding:6px 14px;background:rgba(0,0,0,0.04) !important;color:#000 !important;border:1px solid #d0d0d0 !important;border-radius:0 !important;font-size:13px;cursor:pointer;font-weight:normal;box-shadow:none !important;text-decoration:none;width:auto !important;display:inline-block !important;align-self:flex-start !important;margin-top:8px;margin-bottom:8px}
#bt-period-btn:hover{background:#f7f7f7 !important;border-color:#bbb !important}

/* === Direction switch (long / short / both) ===
   !important throughout: the theme styles bare <button>s with its own green
   background/hover/focus, which otherwise competes with the active state. These
   rules make the switch deterministic and identical to the /backtests/ toggle. */
.bt-dir-seg{display:inline-flex;border:1px solid #d1d5db;border-radius:6px;overflow:hidden;margin-top:4px}
.bt-dir-seg .bt-dir-opt{padding:5px 14px !important;margin:0 !important;font-size:13px;font-family:inherit;background:#fff !important;color:#374151 !important;border:none !important;border-right:1px solid #d1d5db !important;border-radius:0 !important;box-shadow:none !important;cursor:pointer;outline:none;transition:background .15s}
.bt-dir-seg .bt-dir-opt:last-child{border-right:none !important}
.bt-dir-seg .bt-dir-opt:hover{background:#e6f4fb !important;color:#374151 !important}
.bt-dir-seg .bt-dir-opt:focus{background:#fff !important;color:#374151 !important}
.bt-dir-seg .bt-dir-opt.active,
.bt-dir-seg .bt-dir-opt.active:hover,
.bt-dir-seg .bt-dir-opt.active:focus{background:#0083c2 !important;color:#fff !important}

/* === Full-page loading overlay === */
.bt-loading-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.25);z-index:9999}
.bt-loading-overlay.active{display:flex;align-items:center;justify-content:center}
.bt-loading-overlay .loading-content{background:rgba(0,0,0,0.75);padding:20px 30px;border-radius:10px;color:#fff;text-align:center}
.bt-loading-overlay .lo-spinner{margin:0 auto 15px;width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #3498db;border-radius:50%;animation:btspin 1s linear infinite}

/* === Info toast === */
.bt-info-toast{position:fixed;top:20px;left:50%;transform:translateX(-50%);background:#f1f5f9;color:#475569;border:1px solid #cbd5e1;padding:14px 24px;border-radius:10px;font-size:14px;line-height:1.5;z-index:100001;box-shadow:0 4px 12px rgba(0,0,0,.1);opacity:0;transition:opacity .3s;pointer-events:none;max-width:420px;text-align:center}
.bt-info-toast.visible{opacity:1;pointer-events:auto}
.bt-info-toast .toast-icon{display:inline-block;margin-right:8px;font-size:16px;vertical-align:middle}

#bt-fold-toggle{display:none}
@media(max-width:600px){#bt-fold-toggle{display:flex}}
/* Direction tooltip in the narrow left panel: open to the right, not centred (owner 2026-11-15) */
.bt-dir-tip:hover::after{left:-4px;transform:none;width:230px;white-space:normal;text-transform:none;font-weight:400}
.bt-dir-tip:hover::before{left:3px;transform:none}
/* Linear / Log switch on the performance chart: small, the theme's button styles made it large */
#bt-scale-switch{top:4px!important;right:8px!important;gap:0!important}
#bt-scale-switch button{font-size:11.5px!important;line-height:1.3!important;padding:2px 7px!important;min-height:0!important;height:auto!important;border-radius:4px!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important;margin:0 0 0 2px!important}

/* open position in the Trades tab (QA test 1, 1.1) */
.bt-open-tag{display:inline-block;padding:1px 6px;border-radius:4px;background:#e0f2fe;color:#0369a1;font-size:11px;font-weight:700}
/* to-do 22 4.5: the Portfolio page's Trade Settings button had only the gear icon - visible label there */
#bt-settings-btn.bt-settings-labelled{width:auto;padding:0 10px;gap:6px}
#bt-settings-btn .bt-settings-lbl{font-size:13px;font-weight:600;white-space:nowrap}
/* to-do 22 5.1 A: watchlist star on the Symbol label line */
.bt-wl-star{float:right;margin-top:-22px;border:0;background:none;font-size:19px;line-height:1;color:#94a3b8;cursor:pointer;padding:0 2px}
.bt-wl-star:hover,.bt-wl-star.active{color:#f59e0b}
/* to-do 23 3.2 */
.bt-capped-note{margin:6px 0;padding:8px 12px;border:1px solid #fde68a;background:#fffbeb;color:#78350f;border-radius:8px;font-size:13px}
.bt-capped-note a{color:#0083c2;text-decoration:underline;margin-left:4px}
/* to-do 23 4.1: the Trades table (795 px) was cut off in its 766 px box at 1280 px */
@media (max-width:1440px){.bt-trades-table th,.bt-trades-table td{padding-left:6px;padding-right:6px}}
/* to-do 23 4.7: no backdrop blur on the lock overlays - Chrome mirrors the page content at the blur edges */
