main.pro {
  max-width: 1080px;
}

table.pro-table {
  font-size: 0.82rem;
}

table.pro-table th,
table.pro-table td {
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

table.pro-table th:first-child,
table.pro-table td:first-child {
  padding-left: 0;
}

table.pro-table th:last-child,
table.pro-table td:last-child {
  padding-right: 0;
}

svg.sparkline {
  width: 84px;
  height: 28px;
  display: block;
  margin: 0 auto;
}

svg.sparkline polyline {
  fill: none;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

svg.sparkline.up polyline { stroke: var(--up); }
svg.sparkline.down polyline { stroke: var(--down); }
svg.sparkline.flat polyline { stroke: var(--ink-dim); }

.gain-loss.up { color: var(--up); }
.gain-loss.down { color: var(--down); }
.gain-loss.flat { color: var(--ink-dim); }

.allocation {
  margin-top: 2.5rem;
}

.allocation h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.allocation-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 0.9rem;
}

.allocation-segment {
  height: 100%;
}

.allocation-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
}

.allocation-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.allocation-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.allocation-legend-item .pct {
  color: var(--ink-dim);
  margin-left: auto;
}
