/* Winston V3 — allocation donut + legend. */

.donut-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.donut-total {
  font-family: var(--font-mono);
  font-size: var(--type-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}
.donut-sub {
  font-size: var(--type-sm);
  margin-top: 2px;
}

.donut-legend {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.donut-legend-row {
  display: grid;
  grid-template-columns: 16px 1fr auto auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--type-sm);
}
.donut-legend-row:last-child { border-bottom: none; }
.donut-legend-swatch {
  width: 12px; height: 12px;
  border-radius: var(--radius-xs);
}
.donut-legend-label { color: var(--ink); font-weight: var(--weight-medium); }
.donut-legend-pct   { color: var(--ink-muted); min-width: 40px; text-align: right; }
.donut-legend-value { color: var(--ink); font-weight: var(--weight-semi); min-width: 80px; text-align: right; }
