/* Signal and Expert data surfaces; the shared direct-panel shell owns toolbar/drawers. */
.strategy-module.strategy-direct-content .strategy-body{gap:5px;padding:6px;overflow:hidden}
.strategy-module.strategy-direct-content .strategy-body>.strategy-primary-view{flex:1 1 0;min-height:0;min-width:0}
.strategy-module.strategy-direct-content .strategy-metrics{display:flex;flex-wrap:nowrap;gap:0;flex:none;border-bottom:1px solid var(--line);background:var(--panel-alt)}
.strategy-module.strategy-direct-content .strategy-metric{flex:1;min-width:0;padding:5px 8px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent}
.strategy-module.strategy-direct-content .strategy-metric:last-child{border-right:0}
.strategy-module.strategy-direct-content .strategy-metric span{font-size:var(--dte-text-caption,9px);line-height:1.2;margin-bottom:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.strategy-module.strategy-direct-content .strategy-metric strong{font:600 var(--dte-text-metric,14px)/1.2 var(--mono);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.strategy-module.strategy-direct-content .strategy-table-wrap{border-radius:0;min-height:0}
.strategy-module.strategy-direct-content .strategy-table-wrap table{min-width:380px;font-family:var(--mono)}
.strategy-module.strategy-direct-content .strategy-table-wrap th,.strategy-module.strategy-direct-content .strategy-table-wrap td{padding:5px 7px;font-size:var(--dte-text-data,10px);line-height:1.35}
.strategy-module.strategy-direct-content .strategy-table-wrap th{font-size:var(--dte-text-caption,9px)}
.strategy-module.strategy-direct-content .strategy-table-wrap td:first-child{font-weight:600}
.strategy-module.strategy-direct-content .strategy-table-wrap td .strategy-button{min-height:19px;padding:2px 5px;font-size:var(--dte-text-caption,9px)}
.strategy-module.strategy-direct-content .strategy-row-detail{position:absolute;inset:32px 5px 24px;z-index:6;overflow:auto;padding:10px;background:var(--panel);box-shadow:0 8px 24px #0003}
.strategy-module.strategy-direct-content .strategy-direct-plot{display:flex;flex-direction:column;min-width:0;min-height:60px;margin:0;overflow:hidden;background:var(--panel-alt);border:1px solid var(--line)}
.strategy-module.strategy-direct-content .strategy-direct-plot-surface{flex:1;min-width:0;min-height:0;overflow:hidden}
.strategy-module.strategy-direct-content .strategy-direct-plot svg{width:100%;height:100%;display:block;overflow:hidden}
.strategy-module.strategy-direct-content .strategy-direct-plot figcaption{flex:none;line-height:1.4;min-height:13px;padding:2px 6px;font-size:var(--dte-text-caption,9px);color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.strategy-module.strategy-direct-content .strategy-plot-grid{stroke:var(--line);stroke-width:1}
.strategy-module.strategy-direct-content .strategy-plot-area{fill:var(--primary);opacity:.12}
.strategy-module.strategy-direct-content .strategy-plot-line{fill:none;stroke:var(--primary);stroke-width:1.5}
.strategy-module.strategy-direct-content .strategy-policy-preview{padding:0;border-radius:0;background:var(--panel);overflow:auto;border:1px solid var(--line)}
.strategy-module.strategy-direct-content .strategy-policy-caption{font-size:var(--dte-text-caption,9px);color:var(--muted);padding:6px 8px;letter-spacing:.35px;border-bottom:1px solid var(--line)}
.strategy-module.strategy-direct-content .strategy-policy-values{display:grid;grid-template-columns:minmax(100px,1fr) minmax(100px,1.2fr);margin:0;font:var(--dte-text-data,10px)/1.4 var(--mono)}
.strategy-module.strategy-direct-content .strategy-policy-values dt,.strategy-module.strategy-direct-content .strategy-policy-values dd{margin:0;padding:7px 8px;border-bottom:1px solid var(--line);min-width:0;overflow-wrap:anywhere}
.strategy-module.strategy-direct-content .strategy-policy-values dt{color:var(--muted);background:var(--panel-alt)}
.strategy-module.strategy-direct-content .strategy-policy-values dd{font-weight:600}
.strategy-module.strategy-direct-content .strategy-policy-samples{padding:7px 8px;font-size:var(--dte-text-data,10px)}
.strategy-module.strategy-direct-content .strategy-policy-samples>strong{font-size:var(--dte-text-caption,9px);color:var(--muted)}
.strategy-module.strategy-direct-content .strategy-policy-samples>div{display:grid;grid-template-columns:1fr 1.2fr .7fr;gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}
.strategy-module.strategy-direct-content .strategy-test-output{display:flex;flex-direction:column;gap:5px;min-height:0;overflow:hidden}
.strategy-module.strategy-direct-content .strategy-test-output>.strategy-direct-plot{flex:1;min-height:0}
.strategy-module.strategy-direct-content .strategy-test-result{padding:12px;font-size:var(--dte-text-body,13px);line-height:1.5;border-left:3px solid var(--primary);background:var(--panel-alt)}
.strategy-module.strategy-direct-content .strategy-editor{flex:1;min-height:0;resize:none;font:var(--dte-text-small,10px)/1.7 var(--mono);padding:7px 9px;border-radius:0;tab-size:2}
.strategy-module.strategy-direct-content .strategy-run-state{font:600 var(--dte-text-metric,14px)/1.5 var(--mono);border-bottom:1px solid var(--line);padding:3px 5px}
.strategy-module.strategy-direct-content .strategy-console{flex:1;min-height:0;max-height:none;border-radius:0;margin:0;padding:6px 8px;font:var(--dte-text-data,10px)/1.8 var(--mono)}
.strategy-module.strategy-direct-content .strategy-actions{flex:none;gap:4px}
.strategy-module.strategy-direct-content .strategy-form-error{margin:0;padding:6px 8px;border:1px solid var(--red);border-left-width:3px;color:var(--red);background:var(--panel);font-size:var(--dte-text-small,10px);line-height:1.4}
.strategy-module.strategy-direct-content [data-panel-settings] .strategy-policy-preview{max-height:260px;min-height:80px;overflow:auto}
.strategy-module.strategy-direct-content [data-panel-settings] .strategy-fields{grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px}
.strategy-module.strategy-direct-content .strategy-body>.strategy-button{align-self:flex-start;flex:none}
@container(max-width:370px){.strategy-module.strategy-direct-content .strategy-body{padding:4px;gap:4px}.strategy-module.strategy-direct-content .strategy-metric{padding:4px 5px}.strategy-module.strategy-direct-content .strategy-metric strong{font-size:var(--dte-text-metric,14px)}.strategy-module.strategy-direct-content .strategy-policy-values{grid-template-columns:minmax(95px,1fr) minmax(95px,1fr)}}
