/* Visual allocation summary used by the Entry & Average Down Plan calculator. */

.allocation-bar {
  display: flex;
  width: 100%;
  height: 12px;
  margin: 2px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.allocation-bar span {
  display: block;
  min-width: 0;
  transition: width 180ms ease;
}

.allocation-bar__initial { background: var(--accent); }
.allocation-bar__average { background: var(--accent-2); }
.allocation-bar__cash { background: #53677c; }

.allocation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 20px;
  color: #8296aa;
  font-size: 0.7rem;
}

.allocation-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot--initial { background: var(--accent); }
.legend-dot--average { background: var(--accent-2); }
.legend-dot--cash { background: #53677c; }

@media (prefers-reduced-motion: reduce) {
  .allocation-bar span { transition: none; }
}
