.cost-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.cost-legend span::before {
  display: inline-block;
  width: 14px;
  margin-right: 6px;
  content: "";
}

.key-app::before { height: 9px; background: #ffc395; }
.key-db::before { height: 9px; background: #bcbee9; }
.key-budget::before { border-top: 2px dashed #f4f2ff; vertical-align: middle; }

.cost-chart { --budget: 33.3333%; }
.cost-row + .cost-row { margin-top: 18px; }

.cost-label, .cost-axis {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.cost-track {
  position: relative;
  display: flex;
  min-height: 32px;
  margin-top: 7px;
  background: #25232b;
  color: #201a22;
  font: 600 12px/32px system-ui, sans-serif;
  text-align: center;
  letter-spacing: 0;
}

.cost-track::after {
  position: absolute;
  inset: -2px auto -2px var(--budget);
  border-left: 2px dashed #f4f2ff;
  filter: drop-shadow(1px 0 #29242d);
  content: "";
}

.app-bar { width: var(--app); background: #ffc395; }
.db-bar { width: var(--db); background: #bcbee9; }
.cost-axis { margin-top: 6px; color: var(--muted); font-size: 11px; }

.table-wrap th:nth-child(2) { width: 27%; }
.table-wrap td { overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .cost-label { font-size: 12px; }
  .cost-track { font-size: 11px; }
}
