:root{color:#1d2433;font-synthesis:none;text-rendering:optimizelegibility;background:#eef2f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}.app-shell{min-height:100vh;padding:32px 20px}.top-bar{justify-content:space-between;align-items:center;gap:20px;max-width:1600px;margin:0 auto 24px;display:flex}.eyebrow{color:#5f6f85;letter-spacing:0;text-transform:uppercase;margin:0 0 4px;font-size:13px;font-weight:700}h1,h2{letter-spacing:0;margin:0}h1{font-size:34px;line-height:1.12}h2{font-size:18px}.status-pill{color:#36506f;background:#fff;border:1px solid #c9d3df;border-radius:6px;align-items:center;gap:8px;min-height:38px;padding:0 14px;font-size:14px;font-weight:700;display:inline-flex}.workspace{grid-template-columns:minmax(0,1fr) 340px;gap:20px;max-width:1600px;margin:0 auto;display:grid}.screen-tabs{border-bottom:1px solid #cbd5e1;gap:8px;max-width:1600px;margin:0 auto 20px;display:flex}.screen-tabs button{color:#506177;cursor:pointer;background:0 0;border:0;border-bottom:3px solid #0000;align-items:center;gap:8px;min-height:42px;padding:0 14px;font-weight:800;display:inline-flex}.screen-tabs button.active{color:#172033;border-bottom-color:#167f83}.screen-tabs button:hover{color:#172033}.compact-workspace{grid-template-columns:minmax(0,1fr) 320px}.market-screener-workspace{gap:20px;min-width:0;max-width:1600px;margin:0 auto;display:grid}.market-screener-form-row{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.market-screener-range-field{width:240px}.market-screener-params{white-space:pre-line}.market-screener-updated,.market-screener-total{color:#5f6f85;font-size:13px;font-weight:700}.market-screener-table-wrap{width:100%;max-width:100%;overflow-x:auto}.market-screener-table{width:max-content;min-width:100%}.market-screener-column-header{align-items:start;gap:6px;min-width:96px;display:grid}.market-screener-column-header .history-sort-header{justify-content:space-between;gap:6px}.market-screener-range-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px;display:grid}.market-screener-range-filter input{color:#223047;background:#fff;border:1px solid #cbd5e1;border-radius:4px;width:100%;min-width:0;height:24px;padding:3px 5px;font-size:11px;font-weight:700}.market-screener-symbol{color:#172033;white-space:nowrap;font-weight:900}.market-screener-symbol-content{align-items:center;gap:8px;display:inline-flex}.market-screener-logo{object-fit:contain;background:#fff;border-radius:50%;width:22px;height:22px}.market-screener-saved-actions{align-items:center;gap:6px;display:inline-flex}.market-screener-table tbody tr:hover td{background:#eef8f8}.market-screener-value{color:#172033;font-weight:700}.market-data-table td.market-screener-multiline{white-space:pre-line;line-height:1.35}.market-screener-line{display:block}.market-screener-ellipsis{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.market-screener-positive{color:#12804a}.market-screener-negative{color:#c92a2a}.panel{background:#fff;border:1px solid #d7dee8;border-radius:8px;box-shadow:0 14px 32px #2a364714}.strategy-panel{padding:18px}.run-panel{flex-direction:column;align-self:start;gap:14px;padding:18px;display:flex}.section-heading{color:#223047;align-items:center;gap:10px;min-height:28px;margin-bottom:16px;display:flex}.section-heading svg{color:#167f83}.field-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;display:grid}.field-grid>.field,.field-grid>.target-parameter-field{grid-column:span 3}.field-grid>.target-parameter-field-first{grid-column:1/span 3}.field-grid>.target-parameters-grid{grid-column:1/-1;margin-top:8px}.target-parameters-grid{grid-template-columns:repeat(5,minmax(112px,1fr));gap:8px;display:grid}.target-parameters-grid-futures{grid-template-columns:repeat(6,minmax(104px,1fr))}.spikes-target-parameters-grid{grid-template-columns:repeat(4,minmax(112px,1fr));margin-top:28px}.target-parameters-grid .target-parameter-field{min-width:0}.target-parameters-grid .target-parameter-field span{white-space:nowrap;font-size:11px}.target-parameters-grid .target-parameter-field input{height:32px;padding:0 8px}.field-grid>.multi-pair-field{grid-column:span 6}.trade-mode-toggle{background:#fff;border:1px solid #bdc8d6;border-radius:6px;grid-template-columns:1fr 1fr;width:calc(50% - 9px);min-width:220px;margin-bottom:12px;display:grid;overflow:hidden}.trade-mode-option{color:#4e5f76;cursor:pointer;letter-spacing:0;background:#d7dee8;border:0;min-height:38px;font-weight:900}.trade-mode-option+.trade-mode-option{border-left:1px solid #ffffff73}.trade-mode-option.active{color:#fff;box-shadow:inset 0 0 0 2px #ffffffc7}.trade-mode-long.active{background:#167f83}.trade-mode-short.active{background:#b42318}.trade-mode-option:hover{background:#c9d3df}.trade-mode-long.active:hover{background:#167f83}.trade-mode-short.active:hover{background:#b42318}.field{flex-direction:column;gap:5px;min-width:0;display:flex;position:relative}.multi-pair-field{background:#f7f9fb;border:1px solid #dbe3ec;border-radius:8px;padding:10px}.multi-pair-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:138px;display:grid;overflow-y:auto}.multi-pair-option{color:#223047;background:#fff;border:1px solid #dbe3ec;border-radius:6px;align-items:center;gap:6px;min-width:0;min-height:28px;padding:4px 6px;font-size:12px;font-weight:800;display:flex}.multi-pair-option input{flex:none;width:14px;height:14px}.multi-pair-option span{overflow-wrap:anywhere;min-width:0}.field>span,.toggle-row>span{color:#4e5f76;font-size:12px;font-weight:700}input,select{color:#172033;background:#fbfcfe;border:1px solid #bdc8d6;border-radius:6px;outline:none;width:100%;height:36px;padding:0 10px;font-size:13px}.market-data-select,.market-data-select option{font-size:12px}select{appearance:none;padding-right:36px}input:focus,select:focus{border-color:#167f83;box-shadow:0 0 0 3px #167f8329}input:disabled{color:#8391a3;background:#edf1f5}.select-icon{pointer-events:none;color:#66768a;position:absolute;bottom:10px;right:12px}.price-range,.trailing-field,.range-field{background:#f7f9fb;border:1px solid #dbe3ec;border-radius:8px;padding:10px}.field-grid>.price-range,.field-grid>.range-field{grid-column:span 4}.tabbed-field-heading{border-bottom:1px solid #dbe3ec;align-items:center;gap:2px;margin:-10px -10px 10px;padding:8px 10px 0;display:flex}.field-grid>.overlap-price-change-field{grid-column:1/-1}.dynamic-overlap-values{grid-template-columns:minmax(260px,2fr) minmax(120px,1fr) minmax(120px,1fr);gap:12px;display:grid}.dynamic-overlap-values label{gap:6px;display:grid}.dynamic-overlap-values label>span{color:#4e5f76;font-size:12px;font-weight:700}.tabbed-field-heading button{color:#66768a;font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-bottom:0;border-radius:6px 6px 0 0;padding:6px 10px;font-size:12px;font-weight:700}.tabbed-field-heading button.active{color:#167f83;background:#fff;border-color:#dbe3ec;margin-bottom:-1px}.split-inputs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.range-inputs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.order-filters{grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr));gap:12px;margin-top:18px;display:grid}.survival-mode-parameters,.additional-grid-levels{margin-top:12px}.additional-grid-levels-list{gap:8px;margin-top:10px;display:grid}.additional-grid-level-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 52px 30px;align-items:center;gap:8px;display:grid}.additional-grid-level-fixed-field{justify-content:flex-start;align-self:stretch}.additional-grid-level-fixed-field input{width:14px;height:14px;margin-top:10px;padding:0}.additional-grid-level-delete-button{align-self:center;margin-top:16px}.survival-mode-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.partial-sell-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-filter-group{background:#f7f9fb;border:1px solid #dbe3ec;border-radius:6px;padding:9px}.order-filter-heading{color:#4e5f76;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;display:flex}.order-filter-heading-actions{align-items:center;gap:6px;display:inline-flex}.take-profit-delete-button{color:#9f1f1f;cursor:pointer;background:#fff;border:1px solid #e0b4b4;border-radius:4px;height:24px;padding:0 8px;font-size:10px;font-weight:700}.take-profit-delete-button:hover{background:#fde8e8;border-color:#c84848}.order-filter-row{border-top:1px solid #dbe3ec;flex-wrap:nowrap;align-items:end;gap:6px;margin-top:8px;padding-top:8px;display:flex}.order-filter-row label{flex-direction:column;flex:96px;gap:2px;min-width:0;display:flex}.order-filter-row label:first-of-type{width:auto}.order-filter-row label:nth-of-type(2){flex:initial}.order-filter-row label:nth-of-type(3){width:auto}.order-filter-row .order-filter-field-type{flex:1.15 112px}.order-filter-row .order-filter-field-short{flex:0 0 58px}.order-filter-row .checkbox-field{white-space:nowrap;flex-direction:row;align-items:center;width:auto;min-height:28px;padding-top:13px}.order-filter-row .order-filter-required-field{flex:0 0 46px}.order-filter-group-indicator-only .order-filter-required-field,.order-filter-group-indicator-only .order-filter-actions,.order-filter-group-indicator-only .order-filter-row label:nth-last-child(3),.order-filter-group-indicator-only .order-filter-row label:nth-last-child(4){display:none}.order-filter-row .order-filter-checkbox-field{flex-direction:column;flex:0 0 44px;justify-content:flex-start;align-items:flex-start;min-height:0;padding-top:0}.order-filter-row .order-filter-checkbox-field input{width:14px;height:14px;margin-top:4px;padding:0}.order-filter-row label span{color:#66768a;font-size:10px;font-weight:600;line-height:1.1}.order-filter-row input,.order-filter-row select{width:100%;min-width:0;height:28px;padding:0 6px;font-size:11px}.order-filter-row .checkbox-field input{width:13px;height:13px;padding:0}.order-filter-name{color:#223047;text-overflow:ellipsis;white-space:nowrap;background:#fff;border:1px solid #dbe3ec;border-radius:4px;flex:0 0 24px;justify-content:center;align-items:center;height:28px;font-size:11px;font-weight:700;line-height:1;display:inline-flex;overflow:hidden}.order-filter-actions{flex:0 0 52px;align-self:end;align-items:end;gap:4px;display:flex}.order-filter-row .icon-button{align-self:end;width:24px;height:28px}.order-filter-row .icon-button svg{width:13px;height:13px}.order-filter-expression{grid-template-columns:70px minmax(0,1fr);align-items:center;gap:8px;margin-top:8px;display:grid}.order-filter-expression span{color:#66768a;font-size:10px;font-weight:600}.order-filter-expression input{height:28px;padding:0 8px;font-size:11px}.take-profit-range-row{border-top:1px solid #dbe3ec;grid-template-columns:70px 84px minmax(0,1fr);align-items:center;gap:8px;margin-top:8px;padding-top:8px;display:grid}.take-profit-range-row>span{color:#66768a;font-size:10px;font-weight:600}.take-profit-range-row .range-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}.take-profit-range-row input,.take-profit-range-row select{height:28px;padding:0 6px;font-size:11px}.take-profit-actions{justify-content:flex-start;display:flex}.take-profit-add-button{min-height:28px;padding:0 10px;font-size:11px}.order-filter-empty{color:#66768a;margin:8px 0 0;font-size:12px}.order-filter-history-lines{white-space:nowrap;gap:3px;min-width:140px;font-size:12px;line-height:1.2;display:grid}.order-filter-history-lines-compact{white-space:normal;min-width:0}.take-profit-history-lines{min-width:170px}.history-line-separator{min-height:8px}.order-filter-history-empty{color:#7b8ca3}.icon-button{color:#223047;cursor:pointer;background:#fff;border:1px solid #bdc8d6;border-radius:6px;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex}.icon-button:hover{color:#167f83;border-color:#167f83}.amount-field,.percent-field{background:#fbfcfe;border:1px solid #bdc8d6;border-radius:6px;align-items:center;height:36px;display:flex;overflow:hidden}.spikes-trade-mode-toggle{grid-column:1/-1;margin-bottom:0}.amount-field svg{color:#167f83;flex:none;margin-left:12px}.amount-field input,.percent-field input{box-shadow:none;border:0}.percent-field span{color:#5f6f85;flex:none;padding-right:12px;font-size:12px;font-weight:700}.toggle-row{justify-content:space-between;align-items:center;gap:14px;display:flex}.switch{width:46px;height:26px;display:inline-flex;position:relative}.switch input{opacity:0;width:1px;height:1px;position:absolute}.switch-track{cursor:pointer;background:#b5c0cd;border-radius:999px;width:46px;height:26px;transition:background .16s}.switch-track:after{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .16s;position:absolute;top:4px;left:4px;box-shadow:0 2px 6px #1a243240}.switch input:checked+.switch-track{background:#167f83}.switch input:checked+.switch-track:after{transform:translate(20px)}.summary{background:#f7f9fb;border:1px solid #dbe3ec;border-radius:8px;align-items:center;gap:12px;min-height:58px;padding:10px;display:flex}.summary svg{color:#167f83;flex:none}.summary div{flex-direction:column;min-width:0;display:flex}.summary strong{color:#1d2433;font-size:14px}.summary span{color:#617187;overflow-wrap:anywhere;font-size:12px}.primary-button{color:#fff;cursor:pointer;background:#167f83;border:0;border-radius:6px;justify-content:center;align-items:center;gap:8px;width:100%;height:40px;font-weight:800;display:inline-flex}.primary-button:hover{background:#126a6d}.primary-button:disabled{cursor:not-allowed;background:#8aa7aa}.secondary-button{color:#223047;cursor:pointer;background:#fff;border:1px solid #bdc8d6;border-radius:6px;justify-content:center;align-items:center;gap:8px;width:100%;height:38px;font-weight:800;display:inline-flex}.secondary-button:hover{color:#167f83;border-color:#167f83}.request-action-row{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.request-status{white-space:nowrap;font-size:13px;font-weight:700}.request-status-success{color:#167f83}.request-status-error{color:#b42318}.request-status-warning{color:#b7791f}.optimization-statistics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:6px;display:grid}.optimization-statistic{color:#4f5f75;background:#f8fafc;border:1px solid #d7dee8;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;min-height:30px;padding:5px 8px;font-size:12px;display:flex}.optimization-statistic strong{color:#223047;font-size:13px}.modal-backdrop{z-index:40;background:#1720336b;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal-dialog{background:#fff;border:1px solid #d7dee8;border-radius:8px;width:min(460px,100%);max-height:min(640px,100vh - 32px);padding:18px;overflow:auto;box-shadow:0 22px 60px #1720333d}.modal-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.modal-header .section-heading{margin-bottom:0}.calculator-dialog{flex-direction:column;gap:12px;display:flex}.calculator-metric{border-top:1px solid #dbe3ec;flex-direction:column;gap:10px;padding-top:4px;display:flex}.calculator-metric h3{color:#223047;margin:0;font-size:15px}.calculator-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;display:grid}.calculator-grid .field{gap:5px}.calculator-grid input{height:36px;padding:0 10px}.calculator-grid input[readonly]{color:#617187;background:#f7f9fb}.calculator-survival{background:#fbfdff;border:1px solid #dbe3ec;border-radius:6px;gap:8px;padding:8px 10px;display:grid}.calculator-survival .toggle-row{margin:0}.calculator-survival-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.calculator-result-row{grid-template-columns:1fr;gap:10px;display:grid}.calculator-result{background:#f7f9fb;border:1px solid #dbe3ec;border-radius:6px;justify-content:space-between;align-items:center;gap:12px;min-height:40px;padding:8px 10px;display:flex}.calculator-result span{color:#617187;font-size:13px}.calculator-result strong{color:#1d2433;font-size:15px}.calculator-warning{color:#6f4a00;background:#fff8e6;border:1px solid #f0c36a;border-radius:6px;padding:9px 10px;font-size:13px;font-weight:700}.calculator-levels{flex-direction:column;gap:6px;display:flex}.calculator-levels h4{color:#223047;margin:0;font-size:13px}.calculator-level-list{background:#f7f9fb;border:1px solid #dbe3ec;border-radius:6px;flex-direction:column;gap:4px;max-height:190px;padding:6px;display:flex;overflow:auto}.calculator-level-row{color:#617187;grid-template-columns:28px repeat(5,minmax(0,1fr));align-items:center;gap:8px;min-height:24px;font-size:12px;display:grid}.calculator-level-row strong{color:#1d2433;text-align:right;font-size:12px}.calculator-level-header{color:#4f5f75;border-bottom:1px solid #dbe3ec;padding-bottom:4px;font-weight:700}.calculator-level-total{color:#223047;border-top:1px solid #dbe3ec;padding-top:5px;font-weight:700}.saved-market-data{margin-top:0}.saved-market-data h3{color:#223047;margin:0 0 12px;font-size:16px}.saved-market-data-panel{grid-column:1/-1;min-width:0}.table-wrap{border:1px solid #dbe3ec;border-radius:8px;overflow-x:auto}.market-data-table{border-collapse:collapse;background:#fff;width:100%;min-width:820px}.market-data-table th,.market-data-table td{text-align:left;white-space:nowrap;border-bottom:1px solid #e4ebf3;padding:10px 12px;font-size:13px}.market-data-table th{color:#4e5f76;background:#f7f9fb;font-weight:800}.market-data-table tr:last-child td{border-bottom:0}.deals-table{table-layout:auto;min-width:1320px}.deals-table th{white-space:normal;vertical-align:bottom;max-width:96px}.deals-table td{white-space:nowrap}.deals-table .sort-btn{text-align:left;white-space:normal;align-items:flex-end;max-width:92px;min-height:32px;line-height:1.15}.deals-table .sort-indicator{flex:none}.deal-expand-button{color:#167f83;cursor:pointer;background:#fff;border:1px solid #b8c7d9;border-radius:6px;justify-content:center;align-items:center;width:22px;height:22px;font-size:16px;font-weight:800;line-height:1;display:inline-flex}.deal-expand-button:hover:not(:disabled){background:#edfafa;border-color:#167f83}.deal-expand-button:disabled{color:#9aa8ba;cursor:not-allowed;opacity:.55}.deal-result-button{cursor:pointer;font:inherit;background:0 0;border:0;padding:0;font-weight:800}.deal-result-button:hover:not(:disabled){text-decoration:underline}.deal-result-button:disabled{cursor:not-allowed;opacity:.65}.deal-result-button-success{color:#167f83}.deal-result-button-loss{color:#b42318}.deal-result-button-warning{color:#b7791f}.deal-result-button-progress{color:#6b5b00}.deal-orders-row>td{background:#f7fafc;padding:12px 16px}.orders-table{border-collapse:collapse;background:#fff;border:1px solid #dbe3ec;border-radius:8px;width:100%;min-width:720px;overflow:hidden}.orders-table th,.orders-table td{text-align:left;white-space:nowrap;border-bottom:1px solid #e4ebf3;padding:8px 10px;font-size:12px}.orders-table th{color:#4e5f76;background:#eef3f8;font-weight:800}.orders-table tr:last-child td{border-bottom:0}.order-side{align-items:center;min-width:36px;font-weight:800;display:inline-flex}.order-side-buy{color:#167f83}.order-side-sell{color:#b42318}.backtest-history-table{min-width:1620px}.backtest-history-table th.history-compact-header{white-space:normal;line-height:1.15}.backtest-history-table th.history-narrow-cell,.backtest-history-table td.history-narrow-cell{width:1%;padding-left:8px;padding-right:8px}.market-data-table td.spikes-detector-orders-cell{white-space:pre-line}.backtest-history-table th.spikes-detector-tp-cell,.backtest-history-table td.spikes-detector-tp-cell{white-space:normal;overflow-wrap:anywhere;word-break:break-word;width:1%;min-width:160px;padding-left:6px;padding-right:6px}.backtest-history-table td.spikes-detector-tp-cell .order-filter-history-lines,.backtest-history-table td.spikes-detector-tp-cell .take-profit-history-lines{white-space:normal;min-width:0}.backtest-history-table td.spikes-detector-tp-cell .order-filter-history-lines>span,.backtest-history-table td.spikes-detector-tp-cell .take-profit-history-lines>span{white-space:normal;overflow-wrap:anywhere;word-break:break-word}.backtest-history-table th.spikes-detector-targets-cell,.backtest-history-table td.spikes-detector-targets-cell{white-space:normal;overflow-wrap:anywhere;word-break:break-word;width:1%;min-width:80px;padding-left:6px;padding-right:6px}.backtest-history-table td.spikes-detector-targets-cell .order-filter-history-lines{white-space:normal;min-width:0}.backtest-history-table td.spikes-detector-targets-cell .order-filter-history-lines>span{white-space:normal;overflow-wrap:anywhere;word-break:break-word}.history-group-income-cell{text-align:center;vertical-align:middle;font-weight:800;border:2px solid #7f8fa6!important}.backtest-history-table tr.history-group-start>td{border-top:2px solid #7f8fa6}.backtest-history-table tr.history-group-end>td{border-bottom:2px solid #7f8fa6}.history-bulk-actions{color:#4e5f76;align-items:center;gap:10px;margin:0 0 10px;font-size:13px;font-weight:800;display:flex}.bulk-delete-button{color:#b42318;cursor:pointer;background:#fff7f6;border:1px solid #d7a29d;border-radius:6px;justify-content:center;align-items:center;height:30px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.bulk-rerun-button{color:#167f83;cursor:pointer;background:#edfafa;border:1px solid #9fc8cb;border-radius:6px;justify-content:center;align-items:center;height:30px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.bulk-candidates-filter-button{color:#1d4ed8;cursor:pointer;background:#fff;border:1px solid #93b4e8;border-radius:6px;justify-content:center;align-items:center;height:30px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.bulk-candidates-filter-button:hover{background:#eef5ff;border-color:#2563eb}.bulk-candidates-filter-button.is-active{color:#fff;background:#1d4ed8;border-color:#1d4ed8}.bulk-candidate-button{color:#1d4ed8;cursor:pointer;background:#eef5ff;border:1px solid #93b4e8;border-radius:6px;justify-content:center;align-items:center;height:30px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.bulk-compare-button{color:#6d28d9;cursor:pointer;background:#f7f2ff;border:1px solid #b7a2d9;border-radius:6px;justify-content:center;align-items:center;height:30px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.bulk-export-button{color:#167f83;cursor:pointer;background:#edfafa;border:1px solid #9fc8cb;border-radius:6px;justify-content:center;align-items:center;height:30px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.bulk-rerun-button:hover:not(:disabled),.bulk-export-button:hover:not(:disabled){background:#dff5f6;border-color:#167f83}.bulk-candidate-button:hover:not(:disabled){background:#dbeafe;border-color:#2563eb}.bulk-compare-button:hover:not(:disabled){background:#ede3ff;border-color:#7c3aed}.bulk-delete-button:hover:not(:disabled){background:#fde8e8}.bulk-rerun-button:disabled,.bulk-export-button:disabled,.bulk-candidate-button:disabled,.bulk-compare-button:disabled,.bulk-delete-button:disabled{color:#9aa8ba;cursor:not-allowed;background:#f3f5f7;border-color:#dbe3ec}.backtest-comparison-dialog{width:min(1400px,100%);max-height:min(760px,100vh - 32px)}.backtest-comparison-dialog .table-wrap{max-height:calc(min(760px,100vh - 32px) - 90px)}.comparison-table td{white-space:pre-line}.export-dialog-body{gap:12px;display:grid}.export-dialog-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.history-select-cell{text-align:center;width:34px;min-width:34px}.history-select-cell input{accent-color:#167f83;width:15px;height:15px}.history-market-filter{gap:4px;min-width:150px;display:grid}.history-market-filter select{color:#2f3a4a;background:#fff;border:1px solid #dbe3ec;border-radius:5px;width:100%;min-width:130px;height:26px;font-size:11px;font-weight:700}.history-sort-header{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}.history-sort-button{color:#9aa8ba;cursor:pointer;background:#fff;border:1px solid #dbe3ec;border-radius:4px;grid-template-rows:8px 8px;place-items:center;width:18px;height:18px;padding:0;display:inline-grid}.history-sort-button:hover{color:#617187;border-color:#9fc8cb}.history-sort-arrow{color:#b7c2d0;width:11px;height:11px}.history-sort-arrow-active{color:#167f83}.table-message-cell{text-align:center;color:#617187;padding:18px;font-size:13px;font-weight:800}.backtest-history-table tr.backtest-history-row-liquidated>td{background:#fde8e8}.backtest-history-table tr.backtest-history-row-not-enough-amount>td,.backtest-history-table tr.backtest-history-row-stop-loss>td,.deals-table tr.deal-row-stop-loss>td{background:#fff4cc}.deals-table tr.deal-row-survival-success>td,.backtest-history-table tr.backtest-history-row-survival-success>td{background:#e7f7ec}.backtest-history-table tr.backtest-history-row-candidate>td{background:#dbeafe}.table-message{color:#617187;margin:0;font-size:13px;font-weight:700}.table-message-error{color:#b42318}.delete-row-button{color:#b42318;cursor:pointer;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;font-size:16px;font-weight:800;line-height:1;display:inline-flex}.delete-row-button:hover{background:#b423181a}.delete-row-button+.delete-row-button{margin-left:6px}.delete-row-button:disabled{color:#c9a4a1;cursor:not-allowed}@media (width<=860px){.app-shell{padding:20px}.top-bar,.screen-tabs,.workspace{max-width:640px}.workspace{grid-template-columns:1fr}}.sort-btn{color:inherit;cursor:pointer;font:inherit;white-space:nowrap;background:0 0;border:0;align-items:center;gap:0;padding:0;font-weight:800;display:inline-flex}.sort-btn:hover{color:#167f83}.sort-indicator{color:#9aaabb;font-weight:400}.sort-btn:hover .sort-indicator{color:#167f83}.deals-count-btn{color:#167f83;cursor:pointer;font:inherit;text-underline-offset:2px;background:0 0;border:0;padding:0;font-weight:700;text-decoration:underline}.deals-count-btn:hover{color:#0f5b5e}.deals-screen{max-width:1600px;margin:0 auto}.deals-screen-panel{flex-direction:column;gap:20px;display:flex}.deals-screen-header{justify-content:space-between;align-items:center;gap:16px;display:flex}.deals-screen-header h2{color:#223047;margin:0;font-size:22px}.deals-screen-header p{color:#617187;margin:4px 0 0;font-size:13px;font-weight:700}.backtest-parameters-panel{background:#f7f9fb;border:1px solid #dbe3ec;border-radius:8px;padding:14px}.backtest-parameters-panel h3{color:#223047;margin:0 0 10px;font-size:14px}.backtest-parameters-panel dl{grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px 14px;margin:0;display:grid}.backtest-parameters-panel div{min-width:0}.backtest-parameters-panel dt{color:#7b8ca3;text-transform:uppercase;font-size:11px;font-weight:700}.backtest-parameters-panel dd{color:#223047;overflow-wrap:anywhere;gap:2px;margin:3px 0 0;font-size:13px;font-weight:700;display:grid}.back-button{color:#167f83;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;min-height:32px;margin-bottom:10px;padding:0;font-weight:800;display:inline-flex}.back-button:hover{color:#0f5b5e}.chart-panel{background:#f7f9fb;border:1px solid #dbe3ec;border-radius:8px;padding:12px}.daily-metrics-chart-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.chart-header{justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:4px;display:flex}.chart-header h3{color:#223047;margin:0;font-size:14px}.chart-header span{color:#167f83;font-size:15px;font-weight:800}.chart-controls{align-items:center;gap:10px;min-width:0;display:inline-flex}.chart-controls select{width:88px;height:34px;padding:0 28px 0 10px;font-size:13px;font-weight:800}.chart-tool-button{color:#4e5f76;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;place-items:center;width:34px;height:34px;display:inline-grid}.chart-tool-button:hover:not(:disabled),.chart-tool-button-active{color:#7c3aed;background:#f5f3ff;border-color:#7c3aed}.chart-tool-button:disabled{cursor:not-allowed;opacity:.55}.line-chart-panel{overflow:hidden}.line-chart-wrap{width:100%;min-width:0;position:relative}.line-chart-tooltip{z-index:5;color:#fff;pointer-events:none;background:#172033f0;border-radius:4px;gap:3px;min-width:190px;padding:7px 9px;font-size:11px;font-weight:800;line-height:1.2;display:grid;position:absolute;transform:translate(-50%,calc(-100% - 10px))}.tradingview-chart-panel{padding:12px 12px 16px}.tradingview-chart-layout{grid-template-columns:minmax(0,1fr) 220px;align-items:start;gap:12px;display:grid}.tradingview-chart-wrap{background:#f7f9fb;border:1px solid #dbe3ec;border-radius:6px;width:100%;position:relative;overflow-x:auto}.tradingview-time-tooltip{z-index:6;color:#fff;pointer-events:none;white-space:nowrap;background:#172033f0;border-radius:4px;flex-direction:column;gap:3px;padding:6px 8px;font-size:11px;font-weight:800;line-height:1.2;display:flex;position:absolute;transform:translate(-50%,calc(-100% - 10px))}.tradingview-ruler-label{z-index:7;color:#302159;pointer-events:none;background:#fffffff0;border:1px solid #7c3aed59;border-radius:6px;gap:3px;min-width:220px;padding:8px 10px;font-size:12px;font-weight:800;line-height:1.25;display:grid;position:absolute;transform:translate(12px,-50%);box-shadow:0 8px 22px #1f29371f}.tradingview-chart-wrap-with-panes{padding-right:54px}.indicator-pane-value-labels{z-index:3;color:#4e5f76;pointer-events:none;align-content:space-between;justify-items:end;width:46px;padding:4px 0;font-size:10px;font-weight:700;line-height:1;display:grid;position:absolute;right:4px}.indicator-pane-value-labels span{background:#f7f9fbd1;border-radius:3px;padding:1px 3px}.indicator-pane-wrap{border-top:1px solid #dbe3ec}.indicator-menu{background:#fff;border:1px solid #dbe3ec;border-radius:6px;min-width:0;max-height:840px;padding:10px;overflow-y:auto}.indicator-search{gap:6px;margin-bottom:8px;display:grid}.indicator-search>span{color:#4e5f76;text-transform:uppercase;font-size:11px;font-weight:800}.indicator-search input{width:100%;min-width:0;height:32px;padding:0 10px;font-size:12px;font-weight:700}.indicator-group-list{gap:4px;margin-top:6px;display:grid}.indicator-group{border-top:1px solid #e4ebf3}.indicator-group-button,.indicator-option{color:#223047;cursor:pointer;text-align:left;background:0 0;border:0;width:100%}.indicator-group-button{grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:6px;padding:7px 0;font-size:12px;display:grid}.indicator-group-button span{color:#617187;font-weight:900}.indicator-group-button strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.indicator-group-button em{color:#7b8ca3;font-size:11px;font-style:normal;font-weight:800}.indicator-category{gap:2px;padding:0 0 7px 22px;display:grid}.indicator-category-title{color:#7b8ca3;text-transform:uppercase;margin:5px 0 1px;font-size:10px;font-weight:900}.indicator-option{border-radius:6px;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px;padding:4px 6px;font-size:11px;font-weight:500;display:grid}.indicator-option:hover{background:#edf3f8}.indicator-option-active{color:#167f83;background:#e6f6f7}.indicator-option span{overflow-wrap:anywhere;white-space:normal;line-height:1.15}.indicator-option small{color:#7b8ca3;font-size:10px;font-weight:600;line-height:1.15}.indicator-menu-summary{color:#617187;gap:4px;margin-top:10px;font-size:11px;font-weight:700;display:grid}.indicator-menu-summary strong{color:#223047;font-size:12px}.indicator-settings-card{background:#fbfdff;border:1px solid #dbe3ec;border-radius:6px;margin-top:10px;padding:8px}.indicator-settings-card-header{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:6px;display:grid}.indicator-settings-title{gap:2px;display:grid}.indicator-settings-card-header strong{color:#223047;font-size:11px;line-height:1.15}.indicator-settings-card-header span{color:#7b8ca3;font-size:10px;font-weight:600}.indicator-settings-actions{align-items:center;gap:4px;display:flex}.indicator-settings-action-button,.indicator-remove-button{color:#b42318;cursor:pointer;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:14px;font-weight:700;line-height:1;display:inline-flex}.indicator-settings-action-button{color:#4e5f76}.indicator-settings-action-button:hover{color:#167f83;background:#edf3f8}.indicator-remove-button:hover{background:#b423181a}.indicator-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;margin-top:8px;display:grid}.indicator-settings h4{color:#223047;grid-column:1/-1;margin:0;font-size:11px;line-height:1.15}.indicator-setting{gap:3px;min-width:0;display:grid}.indicator-setting>span{color:#7b8ca3;font-size:10px;font-weight:600;line-height:1.15}.indicator-setting input,.indicator-setting select{width:100%;min-width:0;height:28px;padding:0 7px;font-size:11px;font-weight:600}.indicator-interval-setting-overridden{background:#fff7e6;border:1px solid #f2b84b;border-radius:6px;padding:5px}.indicator-interval-setting-overridden>span{color:#9a6700;font-weight:800}.indicator-setting-checkbox{grid-template-columns:18px minmax(0,1fr);align-items:center;padding-top:14px}.indicator-setting-checkbox input{width:14px;height:14px;padding:0}.indicator-menu-error{color:#b42318;margin:12px 0 0;font-size:12px;font-weight:700}.tradingview-chart-wrap table{border-spacing:0}.login-page{background:#eef2f6;place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{background:#fff;border:1px solid #c9d3df;border-radius:8px;gap:16px;width:min(100%,380px);padding:32px;display:grid;box-shadow:0 10px 24px #1720331a}.login-brand{color:#167f83;align-items:center;gap:9px;font-size:14px;font-weight:800;display:flex}.login-card h1,.login-card p{margin:0}.login-card h1{color:#172033;font-size:28px}.login-card p{color:#5f6f85;margin-top:-9px;font-size:13px}.login-field{color:#36506f;gap:6px;font-size:12px;font-weight:700;display:grid}.login-field input{color:#223047;height:38px;font:inherit;background:#fff;border:1px solid #c9d3df;border-radius:6px;padding:0 10px}.login-field input:focus{border-color:#167f83;outline:2px solid #167f8340}.login-submit{color:#fff;cursor:pointer;background:#167f83;border:0;border-radius:6px;height:40px;font-weight:800}.login-submit:hover{background:#126a6d}.login-message{color:#126a6d;background:#edfafa;border:1px solid #b9dfe1;border-radius:6px;padding:9px 10px;font-size:12px;font-weight:700}.login-message-error{color:#b91c1c;background:#fde8e8;border-color:#f0b6b6}@media (width<=620px){.top-bar{flex-direction:column;align-items:flex-start}h1{font-size:28px}.screen-tabs{overflow-x:auto}.screen-tabs button{flex:none}.field-grid,.split-inputs,.range-inputs,.target-parameters-grid,.multi-pair-options,.order-filters,.daily-metrics-chart-row,.backtest-parameters-panel dl{grid-template-columns:1fr}.field-grid>.field,.field-grid>.multi-pair-field,.field-grid>.price-range,.field-grid>.range-field,.field-grid>.overlap-price-change-field,.field-grid>.target-parameter-field,.field-grid>.target-parameter-field-first,.field-grid>.target-parameters-grid{grid-column:1/-1}.trade-mode-toggle{width:100%}.strategy-panel,.run-panel{padding:18px}.tradingview-chart-layout{grid-template-columns:1fr}}
