/* Strategy controls share the backtest cards and inline panels; result scopes stay independent. */
.strategy-workspace-cards{margin-bottom:0}
.strategy-workspace-card{cursor:pointer;font:inherit}
.strategy-workspace-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.strategy-workspace-result{margin-top:28px;scroll-margin-top:24px;min-width:0}
.strategy-workspace-result>.strategy-header,.strategy-workspace-result>.allocation-result-header{margin-bottom:14px;gap:16px;flex-wrap:wrap}
.strategy-workspace-result h2{font-size:var(--text-xl)}
.strategy-workspace-result .backtest-empty .empty-process{display:none}
.strategy-workspace-result .backtest-empty .empty-state{padding-block:28px}
.strategy-config-panel{scroll-margin-top:24px}
.strategy-config-panel .strategy-definition-list{padding:0}
.strategy-config-panel .strategy-definition{padding:20px 0}
.strategy-config-panel .strategy-definition:last-child{padding-bottom:4px}
.strategy-config-panel #allocation-strategy-picker{margin:18px 0}
.strategy-config-panel #allocation-form>.form-grid{margin-top:18px}
.strategy-config-panel .live-config{max-width:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--form-gap)}
.strategy-config-panel .live-config-summary,.strategy-config-panel .live-config-error,.strategy-config-panel .live-config .form-actions{grid-column:1/-1}
.strategy-config-panel .live-config>.field{margin:0}
@media(max-width:760px){.strategy-workspace-result .input{width:100%;max-width:100%}.strategy-workspace-result{margin-top:24px}.strategy-config-panel .live-config{grid-template-columns:1fr}}

/* Panel headers use a responsive inset. The standalone note starts at the section edge. */
#allocation-result {
  --allocation-inset: 24px;
}
#allocation-result > .panel > .panel-header {
  padding-inline: var(--allocation-inset);
}
#allocation-result > .panel > .panel-header h2 {
  font-size: var(--text-lg);
  font-weight: 600;
}
#allocation-result > .results-stats:has(+ .research-limits) {
  margin-bottom: 0;
}
#allocation-result > .research-limits {
  margin: 0 !important;
  padding: 12px 0 20px;
}
#strategy-library-results #backtest-result > .diagnostics > summary {
  font-size: var(--text-xs);
}
.strategy-workspace-result > :is(.strategy-header, .allocation-result-header) > h2 {
  font-family: var(--font);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-heading);
  color: var(--text);
}
@media (max-width: 800px) {
  #allocation-result { --allocation-inset: 20px; }
}
@media (max-width: 560px) {
  #allocation-result { --allocation-inset: 16px; }
}
