/* Let the chart, rather than an arbitrarily long strategy list, define the desktop
   panel height. Size containment keeps the legend out of grid track sizing; the
   stretched item then becomes its own accessible scroll region. */
@media (min-width: 981px) {
  .unit-chart-wrap {
    align-items: stretch;
  }

  .unit-legend-column {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    contain: size;
    scrollbar-color: color-mix(in srgb, var(--text-muted, #68737c) 35%, transparent) transparent;
    scrollbar-width: thin;
  }

  .unit-legend-column::-webkit-scrollbar {
    width: 7px;
  }

  .unit-legend-column::-webkit-scrollbar-track {
    background: transparent;
  }

  .unit-legend-column::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    background: color-mix(in srgb, var(--text-muted, #68737c) 35%, transparent);
    background-clip: padding-box;
  }

  .unit-sum-summary {
    position: sticky;
    z-index: 2;
    top: 0;
    box-shadow: 0 5px 12px color-mix(in srgb, var(--panel, #fff) 88%, transparent);
  }
}
