/* 23.11.2026: the strategy pack's indicator pane and typed source input. */
#bots-indicator { height: 140px; min-width: 0; direction: ltr; }
#bots-pack-legend, #bots-indicator-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 14px; color: var(--muted); font-size: 11px; }
#bots-indicator-legend { padding: 6px 14px 0; border-block-start: 1px solid var(--border); }
#bots-pack-legend > span, #bots-indicator-legend > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
#bots-pack-legend > span::before, #bots-indicator-legend > span::before { content: ''; flex: 0 0 12px; height: 2px; border-radius: 2px; background: var(--key); }
.bots-properties select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 34px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface2); color: var(--text); font: inherit; font-size: 13px; text-align: start; }
.bots-properties select[aria-invalid='true'] { border-color: var(--red); }

/* 23.11.2026: eight cards share one height and retain gaps between every row. */
.bots-catalog.bots-catalog-pack { grid-auto-rows: 1fr; row-gap: 18px; }
.bots-catalog-pack > .bots-card { grid-row: auto; grid-template-rows: minmax(min-content, 1fr) auto minmax(142px, max-content) auto auto; }
.bots-catalog-pack .bots-card-heading { display: block; grid-row: 1; grid-template-rows: none; }
.bots-catalog-pack .bots-card-history { grid-row: 2; }
.bots-catalog-pack .bots-preview, .bots-catalog-pack .bots-card-status { grid-row: 3; }
.bots-catalog-pack .bots-card-stats { grid-row: 4; }
.bots-catalog-pack .bots-card-footer { grid-row: 5; }
.bots-catalog-pack > .bots-card::before { content: none; display: none; }

/* 24.11.2026: use the full catalog width and keep asset selection compact. */
.bots-catalog.bots-catalog-pack { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bots-controls select#bots-asset { width: 220px; min-width: 170px; max-width: 260px; }
@supports (field-sizing: content) {
  .bots-controls select#bots-asset { field-sizing: content; width: auto; }
}
@media (max-width: 760px) {
  .bots-catalog.bots-catalog-pack { grid-template-columns: minmax(0, 1fr); }
  .bots-controls { max-width: 100%; }
  .bots-controls select#bots-asset { max-width: min(260px, calc(100vw - 20px)); }
}
/* 24.11.2026: the desktop equity chart fills the statistics panel's height. */
@media (min-width: 761px) {
  .bots-results { align-items: stretch; }
  .bots-equity-panel { display: flex; flex-direction: column; }
  .bots-equity-panel > .bots-panel-heading, .bots-equity-panel > .bots-coverage { flex: 0 0 auto; }
  .bots-equity-panel > .bots-equity-view { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 260px; }
  .bots-equity-panel .bots-equity { flex: 1 1 auto; height: auto; min-height: 260px; }
}
