.trading-page .process-hero h1{overflow-wrap:anywhere;hyphens:auto}
/* Изолированное оформление графиков и контуров страницы алгоритмической торговли. */
.trading-demo{padding:24px;overflow:hidden}.trading-selector label{display:grid;gap:8px;font-size:13px;color:var(--muted)}.trading-selector select{width:100%;min-width:0;border:1px solid #d5e3e9;background:white;border-radius:8px;padding:12px;color:var(--ink);font:inherit}.trading-analysis{margin-top:28px}.trading-analysis h4{margin:0 0 16px;font-size:19px}.trading-controls{margin:16px 0 22px;gap:8px;flex-wrap:wrap}.trading-controls button{margin:0;min-height:42px}.trading-data-note{font-size:12px;color:var(--muted);margin:0 0 16px}.trading-dashboard{display:grid;grid-template-columns:1.25fr 1fr;gap:20px;background:#fff;border:1px solid #c2dde0;border-radius:14px;padding:20px}.trading-chart{display:block;width:100%;height:auto;background:#fff;border-radius:10px;overflow:visible}.trading-chart text{font-family:inherit;font-size:13px;fill:#607b8b}.trading-chart .chart-grid{stroke:#e2ecf0;stroke-dasharray:3 5}.trading-chart .chart-price{stroke:#4a87ff}.trading-chart .chart-fast{stroke:#00877f}.trading-chart .chart-slow{stroke:#8b99ac;stroke-dasharray:5 4}.trading-chart .chart-entry{stroke:#8765da;stroke-dasharray:7 4}.trading-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;color:#536e80;margin-top:14px}.trading-legend span:before{content:'';display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:50%;background:#4a87ff}.trading-legend .fast:before{background:#00877f}.trading-legend .slow:before{background:#8b99ac}.trading-legend .entry:before{background:#8765da}.trading-metrics,.trading-research-metrics{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0}.trading-metrics dt,.trading-research-metrics dt{font-size:11px;color:#607b8b;margin-bottom:5px}.trading-metrics dd,.trading-research-metrics dd{margin:0;font-size:17px;font-weight:700;overflow-wrap:anywhere;color:#152333}.trading-equation{margin:20px 0;color:#42596b;font-size:14px;line-height:1.9}.trading-equation strong{color:#007f78}.trading-flow{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:16px 0 22px;padding:0}.trading-flow li{position:relative;min-width:0;padding:10px;background:#fff;border:1px solid #d4e4e9;border-radius:10px;min-height:108px}.trading-flow strong{display:block;color:#163348;font-size:12px;margin-bottom:7px}.trading-flow span{font-size:11px;color:#607b8b;line-height:1.6}.trading-flow li.is-revealed{border-color:#008a81;background:#e9f6f2}.trading-flow li.is-blocked{background:#f0edfa;border-color:#967dcd}.trading-analysis>.capability-status{min-height:148px}.trading-research-panel{padding:20px;background:#fff;border:1px solid #c2dde0;border-radius:14px;margin-bottom:22px}.trading-research-heading{min-height:85px}.trading-research-heading h4{margin:0 0 8px}.trading-research-heading p,.trading-research-note{font-size:12px;line-height:1.7;color:#607b8b}.trading-research-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin:20px 0}.trading-phases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.trading-phases>div{border:1px solid #d4e1ee;background:#f3f7fb;padding:12px 8px;border-radius:8px;display:grid;gap:5px;font-size:12px}.trading-phases span{font-size:11px;color:#607b8b}.trading-phases .is-current{border-color:#4584ff;background:#eaf0ff}.trading-phases .is-complete{border-color:#00877f;background:#e7f4f1}.trading-route{margin-top:32px;border-top:1px solid #d4e4e9;padding-top:24px}.trading-route>summary{color:#007f78;font-size:18px;font-weight:700;cursor:pointer;padding:0 0 2px}.trading-route>.capability-status{min-height:145px;margin-top:22px}.trading-graph{margin-top:24px;padding:12px 28px}.trading-graph>.capability-graph__nodes{display:grid;grid-template-columns:1fr 1fr;gap:46px 34px;position:relative}.trading-node{min-height:128px;min-width:0;background:white}.trading-node small{display:block;line-height:1.65;margin-top:8px}.trading-node p{font-size:12px;line-height:1.6;color:#587786;margin:10px 0 0;min-height:39px;overflow-wrap:anywhere}.trading-node.is-complete{background:#e7f4f1;border-color:#00877f}.trading-node.is-current{border-color:#00877f;box-shadow:0 0 0 2px #00877f26;background:#effaf7}.trading-node.is-blocked{border-color:#8d71be;background:#f3effa}.trading-node.is-dimmed{opacity:.55}.trading-graph [data-node=loader],.trading-graph [data-node=risk],.trading-graph [data-node=history]{grid-column:1/-1}.trading-live[data-variant=A] [data-node=execution]{grid-column:1/-1}.trading-research [data-node=idea]{grid-area:1/1}.trading-research [data-node=backtest]{grid-area:1/2}.trading-research [data-node=features]{grid-area:2/2}.trading-research [data-node=train]{grid-area:2/1}.trading-research [data-node=validate]{grid-area:3/1}.trading-research [data-node=test]{grid-area:3/2}.trading-research [data-node=stress]{grid-area:4/2}.trading-research [data-node=paper]{grid-area:4/1}.trading-graph path{fill:none;stroke:#85ada5;stroke-width:1.8}.trading-graph path.is-used{stroke:#00877f;stroke-width:2.4}.trading-graph path.is-blocked{stroke:#8d71be;stroke-dasharray:6 4}.trading-table{width:100%;margin:22px 0;background:white;border:1px solid #d5e3e9;border-radius:12px;overflow:hidden}.trading-table table{width:100%;border-collapse:collapse;font-size:14px}.trading-table th,.trading-table td{padding:16px;text-align:left;vertical-align:top;border-bottom:1px solid #d5e3e9;overflow-wrap:anywhere}.trading-table th{background:#f6f9fb;font-size:12px;color:#536e80}.trading-table tr:last-child td{border:0}.trading-demo [hidden]{display:none!important}
@media(max-width:760px){.trading-demo{padding:16px}.trading-dashboard{grid-template-columns:1fr;padding:14px}.trading-flow{grid-template-columns:1fr}.trading-flow li{min-height:110px}.trading-graph{padding:10px 26px}.trading-graph>.capability-graph__nodes{grid-template-columns:1fr;gap:38px}.trading-graph [data-node]{grid-area:auto!important;grid-column:1!important}.trading-node{min-height:130px}.trading-research-panel{padding:14px}.trading-table th,.trading-table td{padding:12px;font-size:12px}.trading-research-heading{min-height:95px}.trading-phases{grid-template-columns:1fr}.trading-research-metrics{gap:7px}.trading-research-metrics dd{font-size:16px}.trading-analysis>.capability-status,.trading-route>.capability-status{min-height:190px}}
@media(prefers-reduced-motion:reduce){.trading-demo *{transition:none!important;animation:none!important}}

.trading-controls [data-analysis-start],.trading-controls [data-route-start]{background:#087c77;color:white;border-color:#087c77}

/* Свечи и направление обработки читаются также в исходном состоянии. */
.trading-chart .candle-wick{stroke:#24382f;stroke-width:1}
.trading-chart .candle-body{stroke:#24382f;stroke-width:.7}
.trading-chart .is-up .candle-body{fill:#42b866}
.trading-chart .is-down .candle-body{fill:#e45c58}
.trading-legend .candles:before{background:linear-gradient(90deg,#42b866 50%,#e45c58 50%);border-radius:1px}
.trading-flow li:not(:last-child):after{content:'→';position:absolute;right:-20px;top:35px;color:#8baaa9;font-size:19px;line-height:1}
.trading-flow li.is-revealed:after{color:#00877f}
/* Невысокий исследовательский экран объединяет кривые, метрики и фазы. */
.trading-research-panel{padding:12px;margin-bottom:8px}
.trading-research-heading{min-height:0}
.trading-research-heading h4{margin-bottom:4px;font-size:17px}
.trading-research-heading p{margin:0 0 8px}
.trading-equity-chart{height:165px}
.trading-research-panel .trading-legend{margin-top:8px}
.trading-research-metrics{margin:8px 0;gap:10px}
.trading-phases>div{padding:6px 8px;gap:3px}
.trading-research-note{margin:8px 0 0;line-height:1.5}
.trading-demo[data-scenario-variant=C] .trading-analysis>h4{margin-bottom:12px}
.trading-demo[data-scenario-variant=C] .trading-analysis>.trading-controls{margin:10px 0 8px;padding-bottom:0;border-bottom:0}
.trading-demo[data-scenario-variant=C] .trading-data-note{margin-bottom:12px}
.trading-demo[data-scenario-variant=C] .trading-analysis>.capability-status{min-height:90px;padding:14px}
@media(max-width:760px){
 .trading-flow{gap:26px}
 .trading-flow li{min-height:0;padding:12px}
 .trading-flow li:not(:last-child):after{content:'↓';top:auto;right:calc(50% - 6px);bottom:-24px}
 .trading-equity-chart{height:auto}
 .trading-research-heading{min-height:0}
 .trading-demo[data-scenario-variant=C] .trading-analysis>.capability-status{min-height:155px}
}

/* Завершение исследовательского маршрута после тестирования и согласования. */
.trading-research [data-node=real]{grid-area:5/1/6/3}
@media(max-width:760px){.trading-research [data-node=real]{grid-area:auto}}
