.legend-bar {
  display: flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.legend-bar-group {
  flex: 1;
  padding: 12px 16px 14px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.legend-bar-group:last-child {
  border-right: none;
}

.legend-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-fields-list {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 6px;
}

.legend-fields-list.two-col {
  grid-template-columns: 1fr 1fr;
}

.legend-field {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 2px 0 2px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  position: relative;
}

.legend-field .name {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend-field.done {
  color: var(--ink);
}

.legend-field .req-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.legend-field .check {
  width: 12px;
  height: 12px;
  color: var(--ledger);
  flex-shrink: 0;
  visibility: hidden;
}

.legend-field.done .check {
  visibility: visible;
}
